Repository navigation
test(#1132 PR-1): canary smoke for AIRC + queue lifecycle - #1135
Merged
Merged
Conversation
Continuum#1132 asked for a canary end-to-end smoke matrix that chains together the recent boundary work — AIRC primitives, queue lifecycle, JTAG, persona/chat, ts-rs, Docker. This PR delivers the AIRC + queue- lifecycle slice; other slices stay open for peer follow-ups in their respective territories (sibling tab #1 is taking PR-2 ts-rs export sync ratchet per airc broadcast). Changes ------- scripts/ci/canary-smoke-airc-queue.sh — new runnable shell gate. Six checks against the installed airc binary, all dry-run / fake-gh so no real GitHub writes and no real AIRC mesh traffic: 1. airc --help works (binary present, every cmd_*.sh module sourced without parse error) 2. queue --help lists every documented core verb (add/list/claim/ release/set-status/nudge/adopt). Catches dispatch ↔ help drift. 3. queue add --dry-run emits airc-queue-card-v1 envelope (catches card-body schema regressions). 4. queue claim --dry-run writes a status-log entry (catches _airc_queue_mutate_card status-log path regressions). 5. queue set-status review --dry-run + bad-status rejection with canonical list (catches enum guard regressions). 6. queue close-merged --dry-run parses PR refs + would-close summary (catches the airc#576 ref parser regressing). Soft-skip if the verb isn't in the installed airc build — airc#581 is the in-flight PR; the smoke runs against whatever airc is on canary right now. Design choices -------------- - Dry-run only. Live-mode roundtrips need a test room/repo; deferred to a follow-up when the canary smoke matrix has a budget for ephemeral test fixtures. - Fake-gh shim under a temp PATH (and AIRC_GH_BIN env override — the airc dispatcher wraps every gh call through airc_core.gh_backoff which resolves the gh binary via AIRC_GH_BIN before PATH; setting PATH alone isn't enough). - Isolated AIRC_HOME so the smoke doesn't pollute the operator's real scope. - Reports per-step pass/fail with the missing-substring detail when a check fails — operators don't need to grep the full airc output to see which assertion broke. Out of scope (PR-2+ slices, listed in script header) ---------------------------------------------------- - Cargo + features parity (sibling/codex) - JTAG ping/screenshot (anyone with a running stack) - Persona/chat path proof (anyone with personas seeded) - ts-rs export sync ratchet (sibling tab #1, continuum#1132 PR-2) - Docker/Carl install gate (already at scripts/ci/carl-install-smoke.sh) Tests + verification -------------------- - bash -n scripts/ci/canary-smoke-airc-queue.sh — clean - ./scripts/ci/canary-smoke-airc-queue.sh on this Mac (canary airc HEAD): 6 passed, 0 failed, 1 soft-skipped (close-merged pending airc#581 merge). - Once airc#581 lands, the close-merged soft-skip activates automatically — no script change needed.
3 tasks
joelteply
added a commit
that referenced
this pull request
May 13, 2026
…1132 PR-2) (#1136) (#1137) The auto-generated per-module index.ts barrels in shared/generated/ must stay in sync with the .ts files emitted by the ts-rs export tests. When they drift, types are invisible to TS consumers even though the .ts file exists on disk — exactly the regression that bit PR #1129 (commit db271d3 manually added 12 export lines after the fact). This ratchet makes the same regression structurally impossible: - Walks every module dir under src/shared/generated/ - For each, lists the .ts files on disk + parses index.ts for `export type { X } from './Y'` lines - Asserts every on-disk file is referenced; every reference has a file - Failure message names exact drift + suggests `npx tsx generator/generate-rust-bindings.ts` recovery Critical correctness detail: extracts the FROM path (`Y`), not the exported type name (`X`). ts-rs `#[ts(rename = "...")]` produces `export type { ToolCall } from './AgentToolCall'` where the file is AgentToolCall.ts but the type is renamed to ToolCall. Earlier draft of this ratchet got this wrong and falsely flagged every rename usage on canary; corrected before commit. Tests (8/8 passing on canary state): - 5 parser unit tests pinning canonical / rename / double-quote / multi-line / malformed-tolerance behaviour - 1 drift-detection unit test asserting both regression modes (missing-from-barrel + dangling-export) surface correctly - 1 integration scan over real shared/generated/ tree - 1 known-modules sanity check guarding against accidental dir deletion hiding drift behind an empty module Same shape as Lane F PR-1 deletion ratchet (#128) — walk source, assert pattern, fail loud with actionable message. Card: continuum#1136. Lane partner: claude-tab-2 PR #1135 (#1132 PR-1, AIRC + queue-lifecycle smoke slice; this is the ts-rs export check slice they explicitly handed to me). Co-authored-by: Test <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
airc#587 extended the close-merged parser to scan PR title AND body — output line changed from 'scanned N body refs' to 'scanned N title/body refs (PR title X chars, body Y chars)'. My smoke script's exact match on 'scanned 1 body refs' broke on current canary. Fix: drop that line from STEP_REQUIRES; keep the per-card '[dry-run]' + ref + '1 closed' summary which is stable across both output formats. Tested locally against canary airc dca58b8 — 7/7 pass.
This was referenced May 14, 2026
joelteply
added a commit
that referenced
this pull request
May 14, 2026
* test(#1132): canary smoke for jtag CLI + screenshot path Continuation of the canary smoke matrix (continuum#1132). Sibling tab #1 shipped the AIRC+queue slice (#1135), ts-rs ratchet (#1137), and Rust feature smoke (#1138). This PR adds the JTAG ping + screenshot slice — covers the user-facing CLI surface that Carl interacts with. What this catches ----------------- scripts/ci/canary-smoke-jtag.sh — three checks against the running Continuum stack: 1. Stack presence: pgrep for continuum-core/widget-server. Skips gracefully when stack is down (operator runs npm start to enable); hard-fails when STACK_REQUIRED=1 for CI gates that mandate stack. 2. jtag ping reaches stack: round-trip CLI → WebSocket → core → back. Catches: dangling-shim regression (#91-#93) where the global ~/.local/bin/jtag symlinks into a deleted temp dir and fails ERR_MODULE_NOT_FOUND on every invocation; UnixSocket missing despite running process; widget-server crashed. Includes specific recovery hints for the dangling-shim and ENOENT-socket patterns. 3. Screenshot writes valid PNG: jtag interface/screenshot --filename TMP.png produces a >1KB file with PNG magic bytes (89 50 4E 47). Catches the silent-blank-screenshot pattern where screenshot returns 200 but body is empty/HTML-error/non-PNG. Design notes ------------ - File-system check only for CLI presence — JTAG CLI requires the running stack for ANY command (including --help), so an invocation-based liveness probe is indistinguishable from a stack- down skip. Discovered while validating: ./src/jtag --help fails with `connect ENOENT continuum-core.sock` when stack is down. - Per-step pass/skip/fail with the failure detail inlined so operators don't grep through the full jtag output. - PNG magic-bytes detection validated against papers/example-of-collaboration.png locally (529KB, magic 89504e47 OK). Validated locally ----------------- - bash -n clean - Stack-down (default): 0 passed, 2 skipped, 0 failed → exit 0 - Stack-down (STACK_REQUIRED=1): 0 passed, 0 skipped, 3 failed → exit 2 - Magic-bytes detection works on a real PNG fixture Stack-UP path is NOT validated locally — local Mac stack happens to be down, and `npm start` (90+ sec) wasn't justified for this scope. The logic is straightforward (run command, check exit + magic bytes) and will surface any defect when sibling or Joel runs it against a live stack. Soft skip + clear recovery hints means a wrong-path failure is diagnostic, not silent. Remaining #1132 lanes --------------------- After this lands: only persona/chat path proof + Docker/Carl gates (blocked on amd64 image cards) remain. Card stays open with status log noting which slices are landed. * fix(#1132): harden jtag smoke stack detection --------- Co-authored-by: Test <[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.
Summary
Continuum#1132 PR-1 — AIRC + queue-lifecycle slice of the canary end-to-end smoke matrix. Sibling tab #1 takes PR-2 (ts-rs export sync ratchet); other slices (cargo, JTAG, persona, Docker) stay open for peer follow-ups.
What lands
`scripts/ci/canary-smoke-airc-queue.sh` — runnable shell gate, 6 dry-run / fake-gh checks against the installed airc binary. No real GitHub writes, no real AIRC mesh traffic.
Local run
```
$ bash scripts/ci/canary-smoke-airc-queue.sh
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
canary-smoke-airc-queue (continuum#1132 PR-1)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ airc --help works
✓ queue --help lists every documented core verb
✓ queue add --dry-run emits airc-queue-card-v1 envelope
✓ queue claim --dry-run writes a status-log entry
✓ queue set-status review --dry-run mutates status field
✓ queue set-status rejects unknown state with canonical list
⊘ queue close-merged — verb not in this airc build (airc#581 pending)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
canary-smoke-airc-queue: 6 passed, 0 failed
```
Design choices
Test plan
Out of scope
Each is its own card or PR-2+ slice:
🤖 Generated with Claude Code