Skip to content

test: add canary smoke matrix runner - #1148

Merged
joelteply merged 1 commit into
canaryfrom
test/canary-airc-px-smoke-matrix
May 14, 2026
Merged

joelteply merged 1 commit into
canaryfrom
test/canary-airc-px-smoke-matrix

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Refs #1132

Summary

  • add scripts/ci/canary-smoke-matrix.sh as the one-command canary smoke entrypoint
  • compose the existing AIRC queue, Rust feature-contract, and JTAG smoke slices without duplicating their logic
  • default to fast local proof (RUN_CARGO_CHECK=0, STACK_REQUIRED=0) while allowing stricter runs via env flags

Proof

  • bash scripts/ci/canary-smoke-airc-queue.sh -> 7 passed, 0 failed
  • bash 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 failed
  • bash scripts/ci/canary-smoke-matrix.sh -> 3 passed, 0 optional warnings, 0 failed
  • bash -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
  • precommit: TypeScript compilation passed; browser tests skipped because stack was not running
  • pre-push: TypeScript clean; ESLint ratchet held at 5530 errors; Rust/docker skipped because this is shell-only

@joelteply
joelteply merged commit c983b67 into canary May 14, 2026
2 checks passed
@joelteply
joelteply deleted the test/canary-airc-px-smoke-matrix branch May 14, 2026 02:55
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant