Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
84c1fc1
mason: freeze withdrawals for provably gone tasks
ualtinok Nov 18, 2026
b05dfeb
mason: confirm recorded task scopes are empty before freezing withdrawal
ualtinok Nov 18, 2026
d47f1d6
mason: extract withdrawal liveness checks from task registry
ualtinok Nov 18, 2026
dbe9467
mason: lower registry size pin after liveness extraction
ualtinok Nov 18, 2026
be678a7
mason: retain announced display pull records across restarts
ualtinok Nov 18, 2026
2d4d596
mason: fix display cache schema-version test helper
ualtinok Nov 18, 2026
f57d63c
mason: wait for display store locks and prove sustained deferrals
ualtinok Nov 18, 2026
4f7cebe
mason: derive display startup paths inside display module
ualtinok Nov 18, 2026
f27f64b
mason: support storage leases on older Linux kernels (#1468)
ualtinok Nov 18, 2026
eab3d59
mason: ratchet the storage persistence file size pin
ualtinok Nov 18, 2026
a6ce024
shells: admit the person's desktop app paired from another computer
ualtinok Nov 18, 2026
ca2b92b
mason: install ONNX Runtime from NuGet
ualtinok Nov 18, 2026
f1b0a29
mason: fetch benchmark ONNX Runtime from NuGet
ualtinok Nov 18, 2026
19aea48
mason: propose revised manual ONNX Runtime links
ualtinok Nov 18, 2026
b49af65
test: name the synthetic cgroup mount in the withdraw recovery fixture
ualtinok Nov 18, 2026
9547be4
semantic_index: move the ONNX Runtime mismatch wording into its own m…
ualtinok Nov 18, 2026
ad48fd3
mason: read extended federated route stamps
ualtinok Nov 18, 2026
32460ca
docs: exactness gate jobs request 32 GB, the build-server cap
ualtinok Nov 18, 2026
d026662
mason: mark AFT's read-only tools and enforce fork_id calls (tool-pro…
ualtinok Nov 18, 2026
7a9c53c
mason: disable automatic Git maintenance in publication fixture
ualtinok Nov 18, 2026
f577d56
test: pin subc-protocol 0.37.4 in launch provenance tests; confine ca…
ualtinok Nov 18, 2026
6395f56
bench: batch 18 search-quality descriptor (engine_unwired: semantic_i…
ualtinok Nov 18, 2026
9beec44
sandbox: let macOS workers run the build-slot launcher and follow sib…
ualtinok Nov 18, 2026
8659802
mason: handle collected task scopes and isolate reconnect polling
ualtinok Nov 18, 2026
039131e
style: rustfmt the macOS build-slot sandbox change
ualtinok Nov 18, 2026
4bc84ec
sandbox: grant the build-slot launcher on the relaxed worker profile too
ualtinok Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed AFT startup on older Linux kernels, including RHEL 8, while preserving storage lease mount-boundary checks.
1 change: 1 addition & 0 deletions .alfonso/release-notes/next/onnxruntime-nuget-source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Restore automatic setup for local meaning search by downloading only the ONNX Runtime library your platform needs from Microsoft's NuGet package.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions benchmarks/aft-search/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
unzip \
git \
python3 \
python3-venv \
Expand All @@ -16,14 +17,14 @@ RUN set -eux; \
arch="$(uname -m)"; \
case "$arch" in \
x86_64|amd64) ort_arch="x64" ;; \
aarch64|arm64) ort_arch="aarch64" ;; \
aarch64|arm64) ort_arch="arm64" ;; \
*) echo "Unsupported ONNX Runtime arch: $arch" >&2; exit 1 ;; \
esac; \
url="https://github.com/microsoft/onnxruntime/releases/download/v${ORT_VERSION}/onnxruntime-linux-${ort_arch}-${ORT_VERSION}.tgz"; \
mkdir -p /opt/onnxruntime; \
curl -fsSL "$url" -o /tmp/onnxruntime.tgz; \
tar -xzf /tmp/onnxruntime.tgz -C /opt/onnxruntime --strip-components=1; \
rm /tmp/onnxruntime.tgz
url="https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime/${ORT_VERSION}/microsoft.ml.onnxruntime.${ORT_VERSION}.nupkg"; \
mkdir -p /opt/onnxruntime/lib; \
curl -fsSL "$url" -o /tmp/onnxruntime.nupkg; \
unzip -p /tmp/onnxruntime.nupkg "runtimes/linux-${ort_arch}/native/libonnxruntime.so" > /opt/onnxruntime/lib/libonnxruntime.so; \
rm /tmp/onnxruntime.nupkg
ENV ORT_DYLIB_PATH="/opt/onnxruntime/lib/libonnxruntime.so"
ENV LD_LIBRARY_PATH="/opt/onnxruntime/lib"

Expand Down
102 changes: 102 additions & 0 deletions benchmarks/aft-search/slice-descriptors/ci-speed-post066-batch-18.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"slice_class": "engine_unwired",
"targeted_mechanism": "none",
"kind": "harness",
"fixtures": [
"crates/aft/src/semantic_index.rs",
"crates/aft/tests/integration/tool_call_parity_test.rs"
],
"pattern_counts": {
"followup-census:910002": {
"candidate_files": {
"before": 3,
"after": 6
},
"files_examined": {
"before": 3,
"after": 6
}
},
"followup-census:910003": {
"candidate_files": {
"before": 972,
"after": 860
},
"files_examined": {
"before": 972,
"after": 860
}
},
"followup-census:910004": {
"candidate_files": {
"before": 972,
"after": 860
},
"files_examined": {
"before": 972,
"after": 860
}
},
"followup-census:910005": {
"candidate_files": {
"before": 194,
"after": 141
},
"files_examined": {
"before": 194,
"after": 141
}
},
"followup-census:910010": {
"candidate_files": {
"before": 6,
"after": 19
},
"files_examined": {
"before": 6,
"after": 19
}
},
"followup-census:910011": {
"candidate_files": {
"before": 942,
"after": 729
},
"files_examined": {
"before": 942,
"after": 729
}
},
"followup-census:910012": {
"candidate_files": {
"before": 1031,
"after": 730
},
"files_examined": {
"before": 1031,
"after": 730
}
},
"followup-census:910013": {
"candidate_files": {
"before": 908,
"after": 45
},
"files_examined": {
"before": 908,
"after": 45
}
},
"followup-census:910014": {
"candidate_files": {
"before": 1011,
"after": 24
},
"files_examined": {
"before": 1011,
"after": 24
}
}
},
"note": "Batch 18's only ranking-fence change is in semantic_index.rs, and it doesn't touch ranking. ONNX Runtime now installs from Microsoft's NuGet package (the GitHub download is gone), and the runtime-mismatch hint text moved into its own submodule with the approved new links. No embedding, chunking or scoring code changed, and no tool-call parity fixture changed. Every ranked row must remain byte-equal. The declared pattern-count transitions are inherited, not caused by this batch: the committed reference still records the older pattern-lane counts for nine followup-census rows, and main produces the new ones. They are the transitions ci-speed-post066-batch-17.json declared."
}
12 changes: 6 additions & 6 deletions benchmarks/codegraph-replication/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ RUN set -eux; \
arch="$(uname -m)"; \
case "$arch" in \
x86_64|amd64) ort_arch="x64" ;; \
aarch64|arm64) ort_arch="aarch64" ;; \
aarch64|arm64) ort_arch="arm64" ;; \
*) echo "Unsupported ONNX Runtime arch: $arch" >&2; exit 1 ;; \
esac; \
url="https://github.com/microsoft/onnxruntime/releases/download/v${ORT_VERSION}/onnxruntime-linux-${ort_arch}-${ORT_VERSION}.tgz"; \
mkdir -p /opt/onnxruntime; \
curl -fsSL "$url" -o /tmp/onnxruntime.tgz; \
tar -xzf /tmp/onnxruntime.tgz -C /opt/onnxruntime --strip-components=1; \
rm /tmp/onnxruntime.tgz
url="https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime/${ORT_VERSION}/microsoft.ml.onnxruntime.${ORT_VERSION}.nupkg"; \
mkdir -p /opt/onnxruntime/lib; \
curl -fsSL "$url" -o /tmp/onnxruntime.nupkg; \
unzip -p /tmp/onnxruntime.nupkg "runtimes/linux-${ort_arch}/native/libonnxruntime.so" > /opt/onnxruntime/lib/libonnxruntime.so; \
rm /tmp/onnxruntime.nupkg
ENV ORT_DYLIB_PATH="/opt/onnxruntime/lib/libonnxruntime.so"
ENV LD_LIBRARY_PATH="/opt/onnxruntime/lib"
ENV PATH="/root/.bun/bin:${PATH}"
Expand Down
12 changes: 6 additions & 6 deletions benchmarks/codegraph-vs-aft-agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ RUN set -eux; \
arch="$(uname -m)"; \
case "$arch" in \
x86_64|amd64) ort_arch="x64" ;; \
aarch64|arm64) ort_arch="aarch64" ;; \
aarch64|arm64) ort_arch="arm64" ;; \
*) echo "Unsupported ONNX Runtime arch: $arch" >&2; exit 1 ;; \
esac; \
url="https://github.com/microsoft/onnxruntime/releases/download/v${ORT_VERSION}/onnxruntime-linux-${ort_arch}-${ORT_VERSION}.tgz"; \
mkdir -p /opt/onnxruntime; \
curl -fsSL "$url" -o /tmp/onnxruntime.tgz; \
tar -xzf /tmp/onnxruntime.tgz -C /opt/onnxruntime --strip-components=1; \
rm /tmp/onnxruntime.tgz
url="https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime/${ORT_VERSION}/microsoft.ml.onnxruntime.${ORT_VERSION}.nupkg"; \
mkdir -p /opt/onnxruntime/lib; \
curl -fsSL "$url" -o /tmp/onnxruntime.nupkg; \
unzip -p /tmp/onnxruntime.nupkg "runtimes/linux-${ort_arch}/native/libonnxruntime.so" > /opt/onnxruntime/lib/libonnxruntime.so; \
rm /tmp/onnxruntime.nupkg
ENV ORT_DYLIB_PATH="/opt/onnxruntime/lib/libonnxruntime.so"
ENV LD_LIBRARY_PATH="/opt/onnxruntime/lib"
ENV PATH="/root/.bun/bin:/root/.opencode/bin:${PATH}"
Expand Down
12 changes: 6 additions & 6 deletions benchmarks/codegraph-vs-aft-retrieval/Dockerfile.aft
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ RUN set -eux; \
arch="$(uname -m)"; \
case "$arch" in \
x86_64|amd64) ort_arch="x64" ;; \
aarch64|arm64) ort_arch="aarch64" ;; \
aarch64|arm64) ort_arch="arm64" ;; \
*) echo "Unsupported ONNX Runtime arch: $arch" >&2; exit 1 ;; \
esac; \
url="https://github.com/microsoft/onnxruntime/releases/download/v${ORT_VERSION}/onnxruntime-linux-${ort_arch}-${ORT_VERSION}.tgz"; \
mkdir -p /opt/onnxruntime; \
curl -fsSL "$url" -o /tmp/onnxruntime.tgz; \
tar -xzf /tmp/onnxruntime.tgz -C /opt/onnxruntime --strip-components=1; \
rm /tmp/onnxruntime.tgz
url="https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime/${ORT_VERSION}/microsoft.ml.onnxruntime.${ORT_VERSION}.nupkg"; \
mkdir -p /opt/onnxruntime/lib; \
curl -fsSL "$url" -o /tmp/onnxruntime.nupkg; \
unzip -p /tmp/onnxruntime.nupkg "runtimes/linux-${ort_arch}/native/libonnxruntime.so" > /opt/onnxruntime/lib/libonnxruntime.so; \
rm /tmp/onnxruntime.nupkg
ENV ORT_DYLIB_PATH="/opt/onnxruntime/lib/libonnxruntime.so"
ENV LD_LIBRARY_PATH="/opt/onnxruntime/lib"
ENV PATH="/root/.bun/bin:${PATH}"
Expand Down
12 changes: 6 additions & 6 deletions benchmarks/settle-time/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ RUN set -eux; \
arch="$(uname -m)"; \
case "$arch" in \
x86_64|amd64) ort_arch="x64" ;; \
aarch64|arm64) ort_arch="aarch64" ;; \
aarch64|arm64) ort_arch="arm64" ;; \
*) echo "Unsupported ONNX Runtime arch: $arch" >&2; exit 1 ;; \
esac; \
url="https://github.com/microsoft/onnxruntime/releases/download/v${ORT_VERSION}/onnxruntime-linux-${ort_arch}-${ORT_VERSION}.tgz"; \
mkdir -p /opt/onnxruntime; \
curl -fsSL "$url" -o /tmp/onnxruntime.tgz; \
tar -xzf /tmp/onnxruntime.tgz -C /opt/onnxruntime --strip-components=1; \
rm /tmp/onnxruntime.tgz
url="https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime/${ORT_VERSION}/microsoft.ml.onnxruntime.${ORT_VERSION}.nupkg"; \
mkdir -p /opt/onnxruntime/lib; \
curl -fsSL "$url" -o /tmp/onnxruntime.nupkg; \
unzip -p /tmp/onnxruntime.nupkg "runtimes/linux-${ort_arch}/native/libonnxruntime.so" > /opt/onnxruntime/lib/libonnxruntime.so; \
rm /tmp/onnxruntime.nupkg

ENV ORT_DYLIB_PATH="/opt/onnxruntime/lib/libonnxruntime.so"
ENV LD_LIBRARY_PATH="/opt/onnxruntime/lib"
Expand Down
8 changes: 4 additions & 4 deletions crates/aft/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ markup5ever_rcdom = "0.38"
# the protocol's control bodies must agree on the wire-v2 epoch envelope. Tokio
# runs only at the --subc transport edge; AFT's command core stays synchronous.
cortexkit-persona = "=0.3.0"
cortexkit-role-tool-provider = "=0.15.10"
cortexkit-role-tool-provider = "=0.15.12"
cortexkit-role-llm-runner = "=0.8.53"
cortexkit-role-tool-display = "=0.1.9"
cortexkit-role-agent-data = "=0.2.4"
Expand All @@ -279,7 +279,7 @@ cortexkit-bus-client = "=0.1.2"
cortexkit-bus-naming = "=0.4.6"
async-nats = { version = "0.50", default-features = false, features = ["jetstream", "ring"] }
jsonschema = { version = "0.33", default-features = false }
subc-protocol = "=0.37.2"
subc-protocol = "=0.37.4"
subc-control = "=0.41.0"
subc-transport = "=0.18.0"
subc-client-rs = "=0.41.0"
Expand Down Expand Up @@ -322,8 +322,8 @@ windows-sys = { version = "0.61", features = [
[dev-dependencies]
cortexkit-test-support = "=0.1.14"
graphql-parser = "0.4.1"
cortexkit-role-tool-provider-conformance = "=0.15.11"
cortexkit-role-tool-provider = { version = "=0.15.10", features = ["test-vectors"] }
cortexkit-role-tool-provider-conformance = "=0.15.13"
cortexkit-role-tool-provider = { version = "=0.15.12", features = ["test-vectors"] }
cortexkit-role-agent-data = { version = "=0.2.4", features = ["test-vectors"] }
cortexkit-role-harness = "=0.1.0"
async-trait = "0.1"
Expand Down
55 changes: 53 additions & 2 deletions crates/aft/src/access_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,56 @@ pub(crate) enum AskRoute {
/// naming the permission and the path. Allow and deny decisions are
/// unaffected.
Unavailable,
/// A fork call (tool-provider/v1 `fork_id`) to the read-only tool `tool`:
/// it must never ask the person, so an `ask` refuses with
/// `fork_call_refused {tool, reason: "approval_required"}` and no card is
/// raised. Allow and deny decisions are unaffected.
Fork { tool: String },
}

/// Refusal for a codemode call that would need a permission ask.
pub(crate) const PERMISSION_ASK_UNAVAILABLE: &str = "permission_ask_unavailable";

/// The refusal for an `ask` on a route that cannot put the question to anyone:
/// [`AskRoute::Unavailable`] (a codemode program) or [`AskRoute::Fork`]. Any
/// other route answers `None`.
pub(crate) fn unasked_refusal(
route: &AskRoute,
req_id: &str,
original: &Path,
identity: &Path,
operation: AccessOperation,
) -> Option<crate::protocol::Response> {
match route {
AskRoute::Unavailable => {
let verb = match operation {
AccessOperation::Read => "read",
AccessOperation::Write => "write",
};
Some(crate::protocol::Response::error_with_data(
req_id,
PERMISSION_ASK_UNAVAILABLE,
format!(
"{verb} access to '{}' needs permission, and a codemode program can't ask for it",
original.display()
),
serde_json::json!({"permission": operation, "resource": identity}),
))
}
AskRoute::Fork { tool } => {
let error =
cortexkit_role_tool_provider::errors::fork_call_refused(tool, "approval_required");
Some(crate::protocol::Response::error_with_data(
req_id,
&error.code,
error.message,
serde_json::json!({"detail": error.detail}),
))
}
_ => None,
}
}

#[path = "access_policy_plugin.rs"]
pub(crate) mod plugin;
pub(crate) mod prefrontal;
Expand Down Expand Up @@ -374,14 +419,20 @@ pub(crate) const ACCESS_ASK_REQUIRED: &str = "access_ask_required";
/// with, then retries) or a worker call held for consent through Cingulate
/// (`access_ask_required`). A handler that folds errors into a phase failure
/// or a batch entry must return such a response unchanged, or nobody can be
/// asked and the call can never run.
/// asked and the call can never run. A fork call's refusal in place of an ask
/// (`fork_call_refused`) is kept whole the same way, so the caller gets the
/// refusal rather than a partial result.
pub(crate) fn is_access_request(response: &crate::protocol::Response) -> bool {
matches!(
response
.data
.get("code")
.and_then(serde_json::Value::as_str),
Some(crate::protocol::ERROR_PERMISSION_REQUIRED | ACCESS_ASK_REQUIRED)
Some(
crate::protocol::ERROR_PERMISSION_REQUIRED
| ACCESS_ASK_REQUIRED
| cortexkit_role_tool_provider::errors::FORK_CALL_REFUSED
)
)
}

Expand Down
Loading
Loading