Repository navigation
feat(grid): install the generic cross-grid transport — it was built, green, and never turned on - #3690
Merged
Conversation
…green, and never turned on
Generic command-over-airc was 100% built and 0% installed.
wire AircCommandRequest — arbitrary path + params BUILT
receiver CommandRequestHandler::execute_command_request —
CommandUri::local(path) then execute_with_caller for
ANY path, AuthPolicy seeing the remote caller BUILT
sender AircTransport — packages any non-Local RouteDecision,
sends, awaits the reply, decodes AircCommandResponse BUILT
mapper command_request_from_route_decision — Peer/Room/Bcast BUILT
install CommandExecutor::with_remote_transport(AircTransport) ONLY IN
#[cfg(test)]
The only `with_remote_transport` call in the entire crate was inside a test
module. So the general mechanism was dark in production while a PARALLEL one
was wired: `AircInterceptor`, which hard-refuses every command except
`ai/generate` with
"airc routing for '{command}' isn't wired yet — generic
command-over-airc is the follow-up (mirrors grid dispatch)"
That follow-up already existed, one module over, fully implemented. The
substrate could only hop inference to a peer not because the capability was
missing but because it was never turned on — and the error message sent every
reader looking for work that was already done.
This installs it. `LateBoundAircTransport` shares the SAME
`Arc<OnceCell<Arc<Airc>>>` the interceptor already uses, rather than attaching
a second handle: `with_remote_transport` is consumed during synchronous
executor construction while `Airc::attach_as` is async, which is precisely the
problem that cell exists to solve. One late-bind mechanism, one place it can
be wrong.
Until the cell fills, dispatch fails LOUD. It must never decline — a decline
falls through to local execution, and a peer-addressed command silently
running HERE is a wrong answer wearing a success.
NOT VALIDATED LOCALLY, and I will not imply otherwise: this Windows box cannot
build `core/llama` (bundled cmake 3.30.5 knows generators only up to "Visual
Studio 17 2022"; this host has VS 18 2026), and llama is a hard dependency
rather than feature-gated, so `cargo check -p continuum-core` dies in the build
script before reaching this code. That is the `Mod-CMake` item in the install
plan, not this PR. CI is the gate here.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
enabled auto-merge (squash)
September 4, 2026 16:30
joelteply
added a commit
that referenced
this pull request
Sep 22, 2026
… owns the remote transport (card 4fb5895c, the #3690 measurement) (#4338) * fix(ipc): a peer- or room-addressed command reaches the executor that owns the remote transport Card 4fb5895c (the #3690 measurement, run 2026-09-22 on ad52928): `continuum 'airc://<peer>/ping'` answered "Unknown command … did you mean: ping", and `ping {"aircPeer": …}` was refused by the interceptor as "isn't wired yet — only ai/generate hops". Neither ran locally (the forbidden outcome), but no public entry reached the peer either. Mechanism: the IPC handler hands the wire name straight to `Runtime::route_command`, which is name-based — it never builds a `CommandUri`, so the URI grammar (`airc://[peer[@node]][:env]/path`, `airc://room:<uuid>/path`) was reachable only by in-process callers (`InProcessTransport` → `CommandExecutor::execute_with_caller`). #3690's generic transport (`LateBoundAircTransport` on the executor) was installed and unreachable from the CLI, MCP, and every IPC client. - `ServerState` holds the ONE `Arc<CommandExecutor>` the server already builds; `addressed_elsewhere(cmd)` parses the name as a `CommandUri` and sends a `Peer`/`Room` form to `execute_with_caller`, which owns the remote transport. A bare name, the explicit-local spelling, and a string that fails to parse stay on the name route byte-for-byte, so nothing that works today changes route and garbage still gets the registry's own "did you mean" sentence. - `AircInterceptor`: the refusal for a non-`ai/generate` verb carrying `aircPeer` now names the working form (`airc://<peer>/<verb>`) instead of "isn't wired yet". Test (ipc::tests): a peer URI and a room URI leave the name route; bare names, `airc:///ping`, and `airc://` stay on it. What it catches: a remote address dispatching locally under a remote name — the (c) outcome the measurement pre-registered as the one that must never happen. Receipts: ipc::tests::a_peer_or_room + routing::command_uri + airc_interceptor 40/40, REAL_EXIT 0. Live proof still owed: `continuum 'airc://<peer>/ping'` returning the PEER's buildSha once a node carries this build. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(ipc): put addressed_elsewhere above ServerState's allow(dead_code), not between the attribute and the struct Linux CI on f818afc: rustc warnings 76 (baseline 75). The new fn was inserted between `#[allow(dead_code)]` and `struct ServerState`, so the attribute attached to the fn and the struct's never-read `voice_service` surfaced. Moved the fn above the struct's doc block; the attribute is back on the struct it was written for. No baseline bump. Receipts: cargo check shows 0 warnings in ipc/mod.rs on this tree; ipc::tests::a_peer_or_room 1/1, REAL_EXIT 0. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generic command-over-airc was 100% built and 0% installed
AircCommandRequest— arbitrary path + paramsCommandRequestHandler::execute_command_request—CommandUri::local(path)→execute_with_callerfor any path, AuthPolicy seeing the remote callerAircTransport— packages any non-LocalRouteDecision, sends, awaits, decodescommand_request_from_route_decision— Peer / Room / BroadcastCommandExecutor::with_remote_transport(AircTransport)#[cfg(test)]The only
with_remote_transportcall in the entire crate lives in a test module.So the general mechanism was dark in production while a parallel one was wired —
AircInterceptor, which hard-refuses every command exceptai/generate:That follow-up already existed, one module over, fully implemented. The substrate could only hop inference to a peer not because the capability was missing, but because it was never turned on — and the error message sent every reader looking for work that was already done.
The change
Install it.
LateBoundAircTransportshares the sameArc<OnceCell<Arc<Airc>>>the interceptor already uses rather than attaching a second handle —with_remote_transportis consumed during synchronous executor construction whileAirc::attach_asis async, which is exactly the problem that cell exists to solve. One late-bind mechanism, one place it can be wrong.Until the cell fills, dispatch fails loud. It must never decline: a decline falls through to local execution, and a peer-addressed command silently running here is a wrong answer wearing a success.
Not validated locally — stated plainly
This Windows box cannot build
core/llama: bundled cmake 3.30.5 knows generators only up toVisual Studio 17 2022, and this host has VS 18 2026.llamais a hard dependency, not feature-gated, socargo check -p continuum-coredies in the build script before reaching this code. That's theMod-CMakeitem in the install plan, not this PR.CI is the gate here. I'd rather say that than imply a check I couldn't run.
Follow-up this exposes
With the transport installed,
AircInterceptor'sai/generatespecial case is now redundant with the general path — worth retiring in its own PR rather than bundling into this one. Separately: grid node selection (find_gpu_node+ the eligibility filter) and airc dispatch still have zero references to each other — two routing stacks with no join key.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc