Repository navigation
test: add canary smoke matrix runner - #1148
Merged
Merged
Conversation
joelteply
added a commit
that referenced
this pull request
May 14, 2026
#1121 PR-4) (#1151) (#1155) Closes the IPC reachability loop on top of PR-3's pure-Rust runner. Adds the per-persona stateful admission bundle + the IPC handler that TS callers will invoke once per inbox message. What ships: - `persona::admission_state::AdmissionState` — per-persona bundle owning a default_v1() runner + in-memory `SeenContentLookup` + `SeenEventLookup` + admitted-engram store. Wraps the stateless runner from PR-3 with the side-effect recording that turns it into a stateful loop (admit → engram stored, content_hash recorded for future dedup, AIRC event_id recorded for replay protection). - `PersonaCognition.admission: AdmissionState` — added field on the unified per-persona state struct. Initialized eagerly in `with_budget()` so admission is always reachable; doesn't require any explicit per-persona setup. - `cognition/admit-inbox-message` IPC handler — takes persona_id + InboxMessage, runs `persona.admission.admit(...)`, returns JSON with the AdmissionDecision + engram_count + trace_seam_count. Reuses the existing parse_inbox_message helper. What this PR does NOT ship (deferred): - ORM-backed engram persistence (PR-5+) — engrams are in-memory only. - Quarantine store (PR-5+) — Quarantine decisions drop the engram on the floor for v1; the event_id IS recorded for replay protection, which is the load-bearing behaviour. - Recall surface (PR-5+) — `engram_at(idx)` is the sole inspection API for v1; typed query API lands later. - Per-persona config customization (PR-5+) — all personas use default_v1() runner. AdmissionState construction will grow a config parameter when the IPC layer needs it. Tests: 6/6 admission_state unit tests covering admit + dedup feedback loop (admit then re-admit same content → Drop Duplicate), drop side- effect rule (drops record nothing), accumulation order + retrieval, seam-emission invariant through the wrapper, runner accessor, and a compile-time Send + Sync assertion. Full persona test suite: 432 passed, 0 failed (was 424 before; +8 new from this PR + the residual PR-3 ratchet). `npm run build:ts` clean. `cargo clippy` clean. Hooks ran without `--no-verify`. Card: continuum#1151 (titled #1148 in the lane dir; issue numbers shifted between lane create + card open). Co-authored-by: Test <[email protected]> Co-authored-by: Claude Opus 4.7 (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.
Refs #1132
Summary
scripts/ci/canary-smoke-matrix.shas the one-command canary smoke entrypointRUN_CARGO_CHECK=0,STACK_REQUIRED=0) while allowing stricter runs via env flagsProof
bash scripts/ci/canary-smoke-airc-queue.sh-> 7 passed, 0 failedbash scripts/ci/canary-smoke-jtag.sh-> 0 passed, 2 skipped, 0 failed (stack down; expected with STACK_REQUIRED=0)RUN_CARGO_CHECK=0 bash scripts/ci/canary-smoke-rust-features.sh-> 4 passed, 1 skipped, 0 failedbash scripts/ci/canary-smoke-matrix.sh-> 3 passed, 0 optional warnings, 0 failedbash -n scripts/ci/canary-smoke-matrix.sh scripts/ci/canary-smoke-airc-queue.sh scripts/ci/canary-smoke-jtag.sh scripts/ci/canary-smoke-rust-features.sh