Repository navigation
feat(apps/cli): ctm grid-smoke v1 — coverage battery for grid-shipped substrate commands - #1564
Merged
Merged
Conversation
…rid-smoke` v1 + wire-contract test Earlier today PR #1561 (`ctm generate` + the wire-contract regression test) was retargeted from `main` to `canary` via `gh pr edit`, but the retarget didn't take effect on merge — the squash ended up on `main`. Canary's `apps/cli/src/main.rs` only had `Metrics`. A direct cherry-pick of the squash commit was infeasible (the feat/ctm-ai-generate branch was based on an old main, so the squash diff carried 2386 files / 182k+ insertions of main↔canary divergence). Reconciliation by re-applying the relevant files directly from `origin/main`: - apps/cli/src/main.rs: full version from main (includes `Generate` subcommand, current_thread runtime, AircIpcTransport direct import) PLUS the grid-smoke wiring from this PR. - apps/cli/README.md: main's two-row table extended with the grid-smoke row. - core/continuum-core/tests/cli_wire_contract.rs: 3-test wire-contract regression file (the negative test pinning PR #1561 R1's "object content shape would fail to decode as MessageContent" bug). - apps/cli/src/grid_smoke.rs: the grid-smoke module landing on this PR (the original v1 from the previous commit on this branch; unchanged). Net effect on canary, vs PRE-reconciliation canary HEAD: - `ctm generate` works (PR #1561's CLI work back where it should be) - `ctm grid-smoke` v1 lands (this PR's new feature) - `cli_wire_contract.rs` regression test pins the wire shape (R1 follow-up from PR #1561) Verified: cargo build -p continuum-cli -> clean (2.33s) cargo test -p continuum-core --features metal,accelerate --test cli_wire_contract -> 3/3 passed (0.00s) ctm --help shows all three subcommands. ## Process note Joel called this out: I'd been moving too fast and let `main` drift ahead of `canary`. Going forward I'll verify the merge-target after every squash merge — `gh pr view <num> --json mergeCommit,baseRefName` catches retarget-didn't-stick before the next PR is built on a stale canary. Co-Authored-By: Claude Opus 4.7 <[email protected]>
joelteply
force-pushed
the
feat/ctm-grid-smoke
branch
from
June 9, 2026 02:59
957cfc8 to
c031151
Compare
joelteply
added a commit
that referenced
this pull request
Jun 9, 2026
…ode + docs Joel called this out: is 5090 coded into the repo? Yes — GPU-specific narrative and operator-personal labels leaked into substrate source, test fixtures, and doc-strings across today's PRs (#1560, #1561, #1563, #1564). None were load-bearing, but the repo should be hardware-agnostic. Replacements (one PR, surgical edits): core/continuum-core/src/inference/airc_remote/adapter.rs - doc: "route to Joel's 5090" -> generic remote-inference-peer description - test fixture: "joels-5090" -> "test-remote-peer" core/continuum-core/src/inference/airc_remote/transport.rs - test fixture: "joels-5090" (2 sites) -> "test-remote-peer" core/continuum-core/tests/airc_remote_inference_roundtrip.rs - doc: "airc://<rtx5090>/ai/generate" -> "airc://<remote-peer>/ai/generate" - peer labels generic: "remote inference host" / "local caller" - canned response: "pong from the remote peer" / "test-model" / "test-remote-llamacpp" apps/cli/src/main.rs - Generate doc: "(e.g., the operator's 5090)" -> generic GPU-rich grid host apps/cli/src/grid_smoke.rs - module doc + ai/generate row comment: "constrained-locally host dispatches at a GPU-rich peer" / "If the target is a GPU host running a real LLM" Out of scope: - Older codebase doctrine attributions ("Joel's never-swallow-errors") stay — those name doctrine origin, fine. - Task #85 mentioning 5090 stays — it's a real airc bug ticket about that hardware. Verified: grep -rn "5090|joels-" on touched files -> zero hits cargo check -p continuum-cli -> clean (1.94s) The pattern lesson: any hardware-specific identity is narrative scaffolding, not substrate truth. The substrate is hardware-agnostic; tests use neutral labels; docs describe categories, not specific units. Co-Authored-By: Claude Opus 4.7 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 9, 2026
…ode + docs (#1565) Joel called this out: is 5090 coded into the repo? Yes — GPU-specific narrative and operator-personal labels leaked into substrate source, test fixtures, and doc-strings across today's PRs (#1560, #1561, #1563, #1564). None were load-bearing, but the repo should be hardware-agnostic. Replacements (one PR, surgical edits): core/continuum-core/src/inference/airc_remote/adapter.rs - doc: "route to Joel's 5090" -> generic remote-inference-peer description - test fixture: "joels-5090" -> "test-remote-peer" core/continuum-core/src/inference/airc_remote/transport.rs - test fixture: "joels-5090" (2 sites) -> "test-remote-peer" core/continuum-core/tests/airc_remote_inference_roundtrip.rs - doc: "airc://<rtx5090>/ai/generate" -> "airc://<remote-peer>/ai/generate" - peer labels generic: "remote inference host" / "local caller" - canned response: "pong from the remote peer" / "test-model" / "test-remote-llamacpp" apps/cli/src/main.rs - Generate doc: "(e.g., the operator's 5090)" -> generic GPU-rich grid host apps/cli/src/grid_smoke.rs - module doc + ai/generate row comment: "constrained-locally host dispatches at a GPU-rich peer" / "If the target is a GPU host running a real LLM" Out of scope: - Older codebase doctrine attributions ("Joel's never-swallow-errors") stay — those name doctrine origin, fine. - Task #85 mentioning 5090 stays — it's a real airc bug ticket about that hardware. Verified: grep -rn "5090|joels-" on touched files -> zero hits cargo check -p continuum-cli -> clean (1.94s) The pattern lesson: any hardware-specific identity is narrative scaffolding, not substrate truth. The substrate is hardware-agnostic; tests use neutral labels; docs describe categories, not specific units. Co-authored-by: Claude Opus 4.7 <[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.
What this PR adds
ctm grid-smoke— a coverage battery that systematically dispatches grid-shipped substrate commands at a target peer and reports pass/fail + wall-clock latency per row.Nonzero exit on any spec failure so CI / scripts can gate on the report directly.
Why this exists
PR #1563 closed the wire proof for
ai/generateend-to-end through the real substrate stack. The Tron-grid frame says ANY substrate command should compose across the grid — and what's still missing is a systematic battery that says: for each grid-eligible command, does it work against the target peer right now?This PR is the v1 of that battery. Single-hop only (caller → target peer → caller). v2 adds multi-hop composition (M → A → B → C), fan-out, and mixed-modality chains via probe-trace ingestion.
Design (forward-compatible to v2)
The v2 variants are declared now so v2 is an additive enum extension, not a rewrite. The unused fields carry
#[allow(dead_code)]with a doc-comment naming why.The v1 battery (3 rows, each proves a different stack layer)
runtime/metrics/all— substrate alive. If this fails, the rest is meaningless.ai/providers/list— AI subsystem alive + introspectable. Distinguishes "no adapter registered" from "unreachable peer".ai/generate (one-word reply)— real inference dispatch. The validator just confirms wire-shape; the operator reads the summary line to see WHO answered (qwen3.5? heuristic? Claude?).Adding rows = appending to
default_battery(). No new test crate per command.What v2 adds (NOT in this PR)
~/.continuum/probes/*.jsonlfrom local AND adebug/probes/listdispatch at remote — reconstruct the dispatch chain, validate againstChainShape::CompositionVerified
cargo build -p continuum-cliclean (2.04s)ctm --help+ctm grid-smoke --helprender correctlyDoctrinal alignment
[[host-the-seemingly-impossible]]— the Tron-grid frame at the CLI seam[[commands-are-kernel-level-and-compose]]— harness doesn't care WHICH command; sameCommands.execute()primitive[[no-fallbacks-ever]]— failure rows surface the dispatch error verbatim; nonzero exit means failure is loudNote: canary drift
While building this I noticed PR #1561 (
ctm generate) ended up squash-merged tomainnotcanarydespite the retarget. Canary'sapps/cli/src/main.rsonly hasMetrics. This PR builds on canary's actual state and doesn't reintroduceGenerate; a follow-up PR will need to bringctm generateback to canary (cherry-pick frommainor re-PR). The grid-smoke battery usesai/generatevia the underlyingConnectionseam regardless — independent of whether thectm generateCLI subcommand exists.🤖 Generated with Claude Code