Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-architecture-mv/patches/405afe682bdb65f0 # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/aien-architecture-mv#168 (code only) closed derived `405afe682bdb65f0` #168 Imported from GitHub aien-dev/aien-architecture-mv#168 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `60c92db790731d43d63b944c0fd3ed3835950873` · Head `4465a5b27b4d7393b85985c23b35d36208f7c91f` ### Apply it ``` git checkout -b patch-405afe682bdb65f0 60c92db790731d43d63b944c0fd3ed3835950873 curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/405afe682bdb65f0.patch | git am ``` Raw patch (mbox) · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/aien-architecture-mv 168 4465a5b27b4d7393b85985c23b35d36208f7c91f ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":168,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/168","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:51Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index 7de08fb..0e92017 100644 --- a/.crumb +++ b/.crumb @@ -21,8 +21,8 @@ "generated": { "children": [ { - "digest": "11b64a524d543493456941ac20548720138b8791f32342891301a9dd8d088552", - "last_commit": "f62e0ce", + "digest": "e4f4c180313582a6207953aef61f7f806f9ba66654fa4852fc3ddb7480c9c511", + "last_commit": "b580972", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, @@ -45,15 +45,15 @@ "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:eeaf667044d92f04415cad6e6b08d8b22339d854b43bc4f3ffa55a7a681fb8b0", - "compiled_at": "2026-10-08T15:54:31Z", + "children_root": "sha256:d9781bfafa4193b3f1850cbcfb0fe4204b2514b65ff25a6694f820389c189708", + "compiled_at": "2026-10-08T19:37:25Z", "compiler": "crumb-compile/1", - "digest": "sha256:ba8a5c59d2e9d71c78694256a27e555bf35ca50509fbdb50449eddcfbda4c850", + "digest": "sha256:7e8253ea115cf27d608724002e1ddf16a9b87a9ab1455221927a076a250ce7ee", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 236, - "generated_at_commit": "b5ccd33309f88660e4384d2e0c4b689283b028af", - "source_tree": "sha256:ee79b5044fc21606caca43f04f93e28e0b5b5d29cbe23a6030ea03ef3a7648de" + "files": 237, + "generated_at_commit": "b580972c4fefc510324e00847edcfbc02e69f56d", + "source_tree": "sha256:b57c29c2083e6fb6c1a66506af1477254c6099d2246a3de20051b96c4db2a9ee" }, "owner_lane": "", "provenance": { diff --git a/docs/.crumb b/docs/.crumb index a803b32..d4b46b8 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -55,8 +55,8 @@ "purpose": "Directory docs/errata. Purpose not yet described by a human." }, { - "digest": "d96f03a6a020cc53ff8b95980e1f5f83566fbef7c79b2a3a145db499e0a16e0b", - "last_commit": "2817542", + "digest": "0e01097d177ab4b8acf4f5600611513e416c96561a19a1a773f693088efe7a5f", + "last_commit": "b580972", "name": "plans", "purpose": "Directory docs/plans. Purpose not yet described by a human." }, @@ -73,15 +73,15 @@ "purpose": "Directory docs/specs. Purpose not yet described by a human." } ], - "children_root": "sha256:effd7d0739c81f5b81b5e883bdfd2bc9b796baf08e580f20d23fd8dcda6c6fee", - "compiled_at": "2026-10-08T13:07:12Z", + "children_root": "sha256:1bc4f56d5753c2073069e711a78b49a5b446874097251a26c551be2712319d46", + "compiled_at": "2026-10-08T19:37:25Z", "compiler": "crumb-compile/1", - "digest": "sha256:11b64a524d543493456941ac20548720138b8791f32342891301a9dd8d088552", + "digest": "sha256:e4f4c180313582a6207953aef61f7f806f9ba66654fa4852fc3ddb7480c9c511", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 128, - "generated_at_commit": "2817542fd99b0ff980c72a627a38fb75ae3aa672", - "source_tree": "sha256:6951a969754b360196deffade93b4152c2ab0068ae84c43b81c6514ed6ccb443" + "files": 129, + "generated_at_commit": "b580972c4fefc510324e00847edcfbc02e69f56d", + "source_tree": "sha256:5dd7b59635cc70bae7c61276dfb9a437353ad6f799cb104d7bd5498a2c4f3908" }, "owner_lane": "", "provenance": { diff --git a/docs/plans/.crumb b/docs/plans/.crumb index 037ca08..3aa92e4 100644 --- a/docs/plans/.crumb +++ b/docs/plans/.crumb @@ -87,17 +87,23 @@ "last_commit": "e4470d8", "name": "physics-zero", "purpose": "Directory docs/plans/physics-zero. Purpose not yet described by a human." + }, + { + "digest": "2e9e7416b8833df7d7f114f1761386a2a9ab8a16fa17f0db71c094096b7ea485", + "last_commit": "b580972", + "name": "vac", + "purpose": "VAC (Verifiable Autonomous Computing) finite workstream plan. NOT A MASTER PLAN." } ], - "children_root": "sha256:271e2e49becefa621679f111701f1097c861f247f54a44c53035ec2da350d849", - "compiled_at": "2026-10-08T13:07:12Z", + "children_root": "sha256:ea1c9b2aed558a06814242f9b4536834418e4974476ee2b0b81d3a094f4102ce", + "compiled_at": "2026-10-08T19:37:25Z", "compiler": "crumb-compile/1", - "digest": "sha256:d96f03a6a020cc53ff8b95980e1f5f83566fbef7c79b2a3a145db499e0a16e0b", + "digest": "sha256:0e01097d177ab4b8acf4f5600611513e416c96561a19a1a773f693088efe7a5f", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 33, - "generated_at_commit": "2817542fd99b0ff980c72a627a38fb75ae3aa672", - "source_tree": "sha256:f424dfbae1873df259e502f99f36e3a2966763d0ad15f4a699c1d50744282458" + "files": 34, + "generated_at_commit": "b580972c4fefc510324e00847edcfbc02e69f56d", + "source_tree": "sha256:6f8c7b20a67b51e39812e4477adb9a84df41ceada3648e158227c304d5c4c692" }, "owner_lane": "", "provenance": { diff --git a/docs/plans/vac/.crumb b/docs/plans/vac/.crumb new file mode 100644 index 0000000..ccffedc --- /dev/null +++ b/docs/plans/vac/.crumb @@ -0,0 +1,19 @@ +{ + "extensions": { + "generated": { + "children": [], + "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "compiled_at": "2026-10-08T19:37:25Z", + "compiler": "crumb-compile/1", + "digest": "sha256:2e9e7416b8833df7d7f114f1761386a2a9ab8a16fa17f0db71c094096b7ea485", + "evidence_files": 0, + "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "files": 1, + "generated_at_commit": "b580972c4fefc510324e00847edcfbc02e69f56d", + "source_tree": "sha256:06df50f595d18caba724edbf205446350df80e9d9aafa909a16aebcb41146396" + } + }, + "name": "vac", + "purpose": "VAC (Verifiable Autonomous Computing) finite workstream plan. NOT A MASTER PLAN.", + "schema_version": "1.0.0" +} diff --git a/docs/plans/vac/PLAN.md b/docs/plans/vac/PLAN.md new file mode 100644 index 0000000..631d9f7 --- /dev/null +++ b/docs/plans/vac/PLAN.md @@ -0,0 +1,161 @@ +# VAC: Verifiable Autonomous Computing, implementation plan (2026-10-08) + +**NOT A MASTER PLAN.** This is a finite workstream document under [PLAN_AUTHORITY.md](../../../PLAN_AUTHORITY.md) ("Component-local plans"). It does not change architecture, the milestone registry or the cross-project sequence. [doctrine/ARCHITECTURE.md](../../../doctrine/ARCHITECTURE.md), [doctrine/ROADMAP.md](../../../doctrine/ROADMAP.md) and [CURRENT_EXECUTION_PLAN.md](../../../CURRENT_EXECUTION_PLAN.md) win on any conflict. Implementation and evidence beat this text: where this text and a repository's merged code differ, the code is right and the difference is a defect here. + +**Status:** record of one day of work, 2026-10-08, written after milestones M1, M2, M3a and M3b merged. M3b merged afterwards (IP#83 f43e53a64). + +## How to read the citations + +- `SC` = aien-dev/aien-sovereign-core, `IP` = aien-dev/interplane, `ARCH` = this repository. `path:line` was read by the author of this document at the named commit (SC 47f1014a1, IP f43e53a64 for main, which includes M3b (PR head c66be90362fe)). +- `PR #n + commit` is a merged pull request and its merge commit. `receipt ` is a file committed in a repository or a local log under `~/handoffs/vac/` on the Spark. +- `[scout]` means the fact was read by a read-only scout report on 2026-10-08 (`~/handoffs/vac/scout-A.md` to `scout-D.md`, local to the Spark, not committed) at the pins below, and was not re-read for this document. `UNVERIFIED` means nobody read it. +- Labels used in verdicts are exact strings the verifier prints: `PASS complete`, `PASS_LABELLED_INCOMPLETE missing=...`, `FAIL `. + +Pins (GitHub default branches, 2026-10-08 15:47Z unless noted): SC 9b5e6e82 then 47f1014a1 after #346; omega 2ae8677c; omega.lock in SC 6c6180cf; IP 01bc340d then 860065742 after #82; aienos 8928c427; ARCH e01b19c1 at start of the mission (this document branches from 60c92db); aien-protocols 66610096; aegis-runtime f4e87095; spark-rsi e5aab9ad; physics 9f96f255; benchmarks 8d4dfde8; waldo 0fd421ab; odysseus (branch dev) 2992bf6d. Source of the start pins: `~/handoffs/2026-10-08-vac-mission.md`. + +## Rules that bind every claim here + +- A scripted model turn is never `PASS complete`. All runs recorded below are scripted and end `PASS_LABELLED_INCOMPLETE` (receipt `IP adapters/aien/evidence/live-gate-2026-10-08/receipt.json`). +- Exported records are unsigned. The verifier cannot tell an export from a hand-written file (IP provenance/BINDING.md:73; receipts' `limits`). +- The desk MAC on the ordinary `ComposeAuthorize` path is default off. Drake decided on 2026-10-08 to preserve that default; it is not changed by this workstream (SC crates/aien-runtime/src/spine.rs:1792 `authorize_requires_desk: false`; issue sc#328 holds the question). +- The test run in the fix-the-test slice is harness evidence, not a daemon effect. The daemon only writes the file (IP provenance/BINDING.md "The test run is harness evidence", IP main f43e53a64). + +## A. Current reality + +Chain studied: INTERPLANE CapabilityRequest -> crossveil Pipeline -> `adapters/aien` (ApprovalBinding signed with the desk key) -> daemon socket `ComposeApprovedProposal` -> `approved.rs` (replay claim, MAC check) -> compose commit -> `approved_grant` -> `ComposeEffectIntent` -> client write -> `ComposeEffectAck` -> Cortex journal -> export -> IP `provenance` offline verify. + +| Capability | State at the pins | Evidence | +|---|---|---| +| INTERPLANE lifecycle, JCS digest binding, crossveil Pipeline | implemented; conformance against a mock runtime | IP rust/crates/interplane-core/src/lifecycle.rs:6-20; crossveil/src/pipeline.rs:76-78 [scout] | +| `adapters/aien` approved `write_file` to the daemon socket | implemented, library only (no shipped binary); repinned to SC 9b5e6e82 by #82 | PR IP#82 860065742; IP adapters/aien/Cargo.toml:25-26, PINS | +| Adapter live-daemon rows (10 ledger rows + 4 attack rows) | `#[ignore]`, need `AIEN_BIN`, not in CI; run by the gate script `adapters/aien/scripts/test-live-daemon.sh` (5 required rows) | IP adapters/aien/tests/compose_ledger.rs:417; test-live-daemon.sh:64,159 | +| SC `ComposeApprovedProposal` (once-ever replay claim, mandatory MAC, accepted record before run) | implemented, reachable over the socket only; no CLI subcommand [scout] | SC crates/aien-runtime/src/approved.rs; approved_replay.rs:3-10; approved_auth.rs:50 (`aien.approval.v2`); server.rs:952 | +| Desk MAC on `ComposeAuthorize` | implemented, default OFF; env switch `AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK` | SC spine.rs:996-1004, 1792; daemon log "Authorize MAC: off" in receipt `~/handoffs/vac/M1-ledger-out/row10/daemon.log` | +| Effect ledger: intent, write, ack DONE / NOT_DONE / UNRESOLVED | implemented; only `write_file`; the client process performs the write | SC effects.rs:1592 (`open_intent`), 1629, 1662-1663 (`disk_sha256` in the ack) | +| Compose commit via native `librx_compose` | works only when linked; the stub returns `Unavailable` on every compose call | SC crates/aien-omega-compose/src/lib.rs:12,23,25,48 | +| Native vs stub visible to an operator or a receipt | CLOSED by #346: daemon prints `Compose: native (omega )` or `Compose: STUB`, and `ComposeRecallReport` carries `compose_native` and `omega_sha` | PR SC#346 47f1014a1; SC server.rs:267,271; control.rs:796-799; test recall_native_report_test.rs | +| Linked-compose CI gate | implemented (job `linked-compose`); status as a required check UNVERIFIED | SC .github/workflows/ci.yml:104 | +| IP `provenance` offline verifier | implemented; fixtures plus real live bundles after #82; unsigned | IP provenance/README.md, BINDING.md; PR IP#82 | +| Test-run evidence for an agent edit | implemented; `vac-test-run/1` on IP main | PR IP#83 f43e53a64 | +| `bash_eval` through the adapter | declared, not executed (`NOT_EXECUTED`) | IP adapters/aien/src/lib.rs:44,749 (IP main f43e53a64) | +| `aien-test` ADR 0033 slices D and G (identity, manifest v2, signed bundle, `verify-bundle`) | implemented, tool only | SC tools/aien-test/src/bundle.rs [scout] | +| ADR 0033 slices E (partial), F, H, `aien-receipts` repo | partial / proposed / absent | ARCH docs/adr/0033-aien-verification-pipeline.md (Status PROPOSED, 2026-10-04) | +| aien-mcp `ApprovalDesk` / `AuthorizedEffect` | merged and unused; the daemon rejects it as unverifiable | SC approved_auth.rs:20-22 [scout] | +| aien-cli REPL tools with `record_effect_receipt` | separate path: no grant, no journal, loose unsigned file | SC crates/aien-cli/src/tools.rs:431,443 | +| aegis-runtime | standalone; legacy vs canonical stack unresolved | aegis-runtime enforcement.rs [scout] | +| aien-protocols `action-protocol`, `evaluation-protocol` | implemented, not used by SC effect records | [scout] | +| spark-rsi | standalone; bounded proposer, blind judge, ratifier makes a branch only; Tier2 immutable list omits `src/meta`, `ratify.rs`, `daemon.rs` | spark-rsi meta/tier.rs:34-42; ratify.rs:11-24; daemon.rs:359 [scout] | +| Odysseus tool loop | not connected to AIEN | odysseus src/tool_execution.py:810 [scout] | +| Three receipt dialects (aien-proof BLAKE3, aien-test sha256 canonical JSON, WALDO `json.Marshal`) | implemented, inconsistent | SC aien-proof evidence.rs:294-345; tools/aien-test evidence.rs:16,100-138 [scout] | +| Ledger and journal records | unversioned | SC effects.rs:1206,1465,1628,1660 [scout; line 1629 and 1662 re-read] | + +Stale text found, listed here and not rewritten: the module doc of `approved.rs:10` says the hook "never writes the workspace and never mints an" authority, while the path writes an `approved_grant` (read at 47f1014a1; the sentence continues past line 10). `tools/aien-test/src/lib.rs:1` says "Slices A to C" while slices D and G exist. Both are candidate issues, not changed here. + +## B. Target product contract + +**Product 1.** A small fixture repository holds a program and one deliberately failing test. An agent is given the task id and the repository pin and fixes the program. The fix is a `write_file` effect through the existing authority path; nothing else writes into the workspace. Qualification runs use a scripted model turn; a real model is a later row. + +**Flow, each step with its existing owner.** +1. Task record: task id, fixture commit, test command (`vac-task`, `vac-source-pin`; implemented on IP main, IP provenance/BINDING.md). +2. Agent reads files through INTERPLANE `read_file` / `list_dir` (IP adapters/aien/src/lib.rs). +3. Agent emits `write_file` as a `CapabilityRequest`; crossveil returns `requires_approval`; a host-side approver approves; the binding `aien.approval.v2` is signed with the desk key (SC approved_auth.rs:50; IP adapters/aien/src/compose_ledger.rs). +4. Adapter sends `ComposeApprovedProposal`; the daemon claims replay keys once, runs compose, writes `approved_grant`. +5. Intent, client write, `ComposeEffectAck` with `DONE`, `NOT_DONE` or `UNRESOLVED` decided by daemon read-back (SC effects.rs:1592-1663). +6. Test run, after a `DONE` ack, by the harness, recorded as `vac-test-run/1` bound to the ack by the post-write blob digest (`disk_sha256`). It has no grant, no intent and no ack and is never given authority. +7. Export: ledger slice plus task, source pin, test run, native report, trace, load log and model file hashes, named in `COMPANION.json` by path, sha256 and size. +8. Offline `provenance verify ` prints one line. + +**What the verifier checks (implemented).** Retained files match their sha256 and size; INTERPLANE envelopes validate; request id, trace id and approval key recompute from the ledger slice; written path and bytes equal the approved bytes; claim, grant, intent and ack are present and consistent (IP provenance/src/lib.rs:898 compares the producer-reported `success`). On IP main it also checks: source pin against the grant's `prior_sha256`; the test-run record against the ack's `disk_sha256`; exit code 0 after and non-zero before; stdout and stderr digests against retained files; the native claim against the retained `compose_recall` report. Codes as implemented on IP main: `test_run_missing`, `unsupported_test_run`, `source_pin_mismatch`, `test_run_mismatch`, `native_claim_contradicted` (IP provenance/src/testrun.rs; BINDING.md checks 1 to 5). + +**What it does not prove.** +- Authenticity of exported records: they are unsigned and daemon-written; a same-user process able to append to the compose ledger could forge them (IP provenance/BINDING.md:73). +- Which human approved: the MAC proves a holder of the desk key. +- Approval authenticity on the ordinary `ComposeAuthorize` path while the desk MAC default is off. The product path uses `ComposeApprovedProposal`, where the MAC is mandatory. +- That the test run happened as recorded. The harness writes the record. Re-running the pinned fixture is the independent check. +- That a model produced the proposal: scripted turns keep `link:model_turn` missing. +- That nothing else touched the workspace between the ack and the second test run (BINDING.md "Does not prove"). +- That a native build was used when the field is absent: a daemon older than #346 reports nothing, and the verifier labels `link:native` missing. + +**Failure boundaries (target behaviour; test coverage as in section E).** +- Ack `DONE`: verdict can reach the labelled-incomplete pass; `PASS complete` additionally needs a non-scripted model turn. +- Ack `NOT_DONE` or `UNRESOLVED`: the target-blob check fails against the ack, so no test run is trusted. UNVERIFIED as a dedicated live test; SC recovery tests cover the daemon side (M1 matrix, `~/handoffs/vac/M1-qualification.md` section 3, rows "interrupted operation"). +- Replay of an approved submission: refused (SC approved_attacks_test c09 to c11, M1 matrix "duplicate submission"). +- Stub build: every compose call is `Unavailable`; ComposeRecall returns an error rather than `compose_native=false` (finding in `~/handoffs/vac/M3a-report.md`). +- Test fails after a `DONE` write: UNVERIFIED. The verifier rejects `exit_code != 0` as `test_run_mismatch` for this slice, because the slice claims a fix; task failure and provenance are not yet separate verdicts. The earlier draft proposed separating them; that is not implemented. + +## C. Gap matrix G1 to G6 + +| Gap | Required behaviour | Status 2026-10-08 | Evidence | What remains | +|---|---|---|---|---| +| G1 | Adapter and daemon agree at SC main; live-daemon rows runnable as a gate | CLOSED by #82 to the extent proven: pin 4d4dfd4 -> 9b5e6e82, gate runs 5 rows against a native daemon, verifies the bundle, runs 5 tamper checks | PR IP#82 860065742; receipt `IP adapters/aien/evidence/live-gate-2026-10-08/receipt.json`; M1 finding 1 (14 rows green at the old pin) | The gate is a host script, not a CI job; no CI job builds a native daemon. 9 of 14 live rows are not covered by the committed receipt (they passed in M1 only). | +| G2 | Test run recorded as evaluation evidence bound to the ack | CLOSED and merged to the extent proven by one live run and 24 synthetic tests | PR IP#83 f43e53a64; receipt `IP adapters/aien/evidence/fix-the-test-2026-10-08/receipt.json` (IP main) | A real model turn; sandboxing of the test command is not implemented. | +| G3 | One bundle carries task id, source pin, native/stub | Native/stub: CLOSED by #346 (daemon side) and #83 (verifier side). Task id and source pin: merged with #83. Model identity: carried as before (`model_generation` / `scripted_turn`) | PR SC#346 47f1014a1; PR IP#83 | Weights-to-text provenance stays at the existing `model_generation/2` limit. | +| G4 | Approval authenticity on every authority-minting path | OPEN, Drake decision: desk MAC default stays off | SC spine.rs:1792; issue sc#328 | Nothing in this workstream changes it. A bundle for a run that used the ordinary path cannot be treated as MAC-backed. | +| G5 | Versioned records where the bundle depends on them | PARTIAL: new records carry a schema string (`vac-test-run/1`, `aien.native` section, `COMPANION` binding strings). Ledger and journal records stay unversioned by design | IP provenance/BINDING.md (IP main f43e53a64); SC effects.rs:1628 [scout] | Receipt-id unification stays ADR 0033 / ARCH-0029 Decision 6 scope. | +| G6 | Reproducible scripted demo from a clean checkout | OPEN; assigned to M4a. The two gate scripts exist and are reproducible on the Spark but need a prepared native build | IP adapters/aien/scripts/test-live-daemon.sh, test-fix-the-test.sh (IP main f43e53a64) | A single `demo.sh run | verify | selftest` from a clean clone. | + +## D. Execution graph + +Order by dependency. Each milestone ends in a pull request and a row in section E. + +| Milestone | Definition of done | State 2026-10-08 | +|---|---|---| +| M1 baseline | Matrix of the authorized path with commands, exit codes, binary hash, native/stub status; no repo edits | DONE. `~/handoffs/vac/M1-qualification.md`: linked gate 393 PASS; 47 in-process + 14 live adapter tests PASS; 84 provenance tests PASS; 11 of 12 matrix rows covered, stub-build row NOT RUN. | +| M2 live verified run (closes G1) | Verifier judges a real authorized run; negative checks refuse | DONE and merged: IP#82 860065742 (gate GATE PASS 18:16Z to 18:51Z). | +| M3a native report (part of G3) | Daemon reports native/stub | DONE and merged: SC#346 47f1014a1 (linked gate 401 PASS, CI 3 of 3 SUCCESS at 19bf64e per `~/handoffs/vac/M3a-report.md`; CI states re-read for this document: SUCCESS on all three checks). | +| M3b fix-the-test slice (G2, G3, G5) | Fixture with failing test, scripted fix through the real daemon, test-run record, source pin, verifier links, tamper tests | DONE and merged: IP#83 f43e53a64 (PR head c66be90362fe, all CI checks SUCCESS there, `gh pr view 83 -R aien-dev/interplane --json statusCheckRollup`). Review of #83: APPROVE (posted as a comment from the same account); two follow-ups tracked in IP#84. | +| M4a clean-checkout demo (G6) | One script from a clean clone prints the verdict; selftest mutates each retained file and the verifier refuses each | OPEN. | +| M4b this document in ARCH | Plan, qualification record and change log in `docs/plans/vac/` | This pull request. | +| M5 bounded RSI hookup | spark-rsi proposes a Tier1 change through the approved path; ratifier still makes a branch only; Tier2 gap reported, not changed | NOT STARTED, all items below proposed. Stops at a design note if it needs a new protocol (action-protocol is unused by SC). Done when: (a) command `scripts/test-rsi-hookup.sh` (to be written in M5) exits 0; (b) `provenance verify` on its bundle prints `PASS_LABELLED_INCOMPLETE` for a spark-rsi Tier1 proposal; (c) a candidate is promoted only with a signed evaluation receipt and a holdout score at or above the threshold set in the M5 design note; (d) ratify makes a branch only (check: the target repository has no new commit on its default branch); (e) rollback test exits 0; (f) negative test: an RSI attempt to modify the holdout or policy files is refused. | + +Stop conditions: a Drake decision (desk MAC default, sc#327 model default, releases, keys, reboots) stops the milestone and reports. No milestone changes GPU or chip code. `quietlock check` precedes every long run. + +### Relation to ADR 0033 + +[ADR 0033](../../adr/0033-aien-verification-pipeline.md) (PROPOSED, 2026-10-04) defines the Check IR, exactness classes, signed `VerificationBundleV1` and the `receipt_id_scheme` field. This plan does not restate or change any of it. For this slice the verifier is `interplane/provenance`, and it checks the INTERPLANE-to-AIEN effect chain, not the ADR 0033 gate graph. The bundle formats are different objects: `COMPANION.json` is unsigned and VAC-specific, `VerificationBundleV1` is signed. Unifying the receipt id schemes and adopting the signed envelope stay ADR 0033 and ARCH-0029 scope. No new ADR is created here: nothing in this plan changes subsystem responsibility. If the `vac-test-run/1` and `COMPANION` test-run section become a normative cross-repo wire contract, that is a separate ADR (the next free number is 0036; 0035 is the highest present). + +## E. Qualification record + +All runs: host Spark (`spark-b87b`, Linux 7.0.0-1019-nvidia aarch64, 20 cores), CPU only, GPU engine is the CPU stub (`Backend: NativeTransformerBackend/CPU-reference`), model unsloth Llama-3.2-1B-Instruct snapshot 5a8abab, model turn scripted. Native compose library linked from omega.lock `6c6180cf` in every row except the SC stub-build row, which was not run. Source of the environment: `~/handoffs/vac/M1-qualification.md` section 1; `~/handoffs/vac/M3b-report.md`. + +| # | Run | Command | Binary sha256 (aien-cli, debug) | Result | Evidence | +|---|---|---|---|---|---| +| 1 | M1 linked gate | `scripts/test-linked-compose.sh omega-lock physics-lock aienos-lock` (SC 9b5e6e8) | script-built `cc3df20c...` (not the binary tested live) | exit 0, 393 tests, 0 failed, 54 binaries, 15:53Z to 15:57Z | `~/handoffs/vac/M1-linked-compose.log` | +| 2 | M1 adapter in-process | `cargo test` in IP adapters/aien (pin 4d4dfd4) | n/a | 47 passed, 0 failed, 14 ignored | `~/handoffs/vac/M1-adapter-test.log` | +| 3 | M1 live rows | `AIEN_BIN=... cargo test --test compose_ledger --test compose_ledger_attacks -- --ignored --test-threads=1` | `9704f29f68348097516ab45382852c70c1c22aec36d868cb2be564b8cd039c2f` | 14 passed (rows 1 to 8, 10, 11, x1 to x4; row 9 ran in run 2); wall time 3985 s + 1593 s | `~/handoffs/vac/M1-ledger-live.log`, `M1-ledger-out/` | +| 4 | M1 provenance tests and fixtures | `cargo test` in provenance; `verify` on 5 committed fixtures | n/a | 84 passed; fixtures: 1 `PASS complete` (`real-waldo-aien-chain`, candidate=none), 4 `PASS_LABELLED_INCOMPLETE`; the live run itself produced no COMPANION | `~/handoffs/vac/M1-provenance-test.log`, M1 section 2 | +| 5 | M2 live gate (5 rows) | `AIEN_BIN=aien-cli-m1 OUT=... LIVE_ROWS="row1_ x1_ x2_ x3_ x4_" scripts/test-live-daemon.sh`, 18:16:25Z to 18:51:47Z | `9704f29f...` | GATE PASS, exit 0; verdict `PASS_LABELLED_INCOMPLETE missing=link:model_turn effect=aien-ledger-slice/1:strong proposal=scripted_turn` | committed: `IP adapters/aien/evidence/live-gate-2026-10-08/receipt.json` (main, #82); logs `~/handoffs/vac/M2-gate.log` | +| 6 | M2 tamper checks (4 codes + control) | inside run 5 | `9704f29f...` | control same verdict; `digest_mismatch: interplane_trace`; `binding_mismatch: interplane.arguments.content`; `digest_mismatch: ledger_ack`; `binding_mismatch: ledger_ack.state`; `size_mismatch` (truncated intent) | same receipt, `negative_checks` | +| 7 | M3a linked gate | linked-compose script at SC branch `vac/m3a-compose-native-report` | not recorded here | 401 PASS, exit 0; CI at 19bf64e 3 of 3 SUCCESS | `~/handoffs/vac/M3a-linked.log`; PR SC#346 | +| 8 | M3b slice gate | `AIEN_BIN=aien-cli-m3b OUT=... scripts/test-fix-the-test.sh`, 19:11:39Z to 19:20:49Z, daemon built at SC 47f1014a1 | `a62a88b4a33b3805c3a95e6b56755a53aeb5cee22c60731a0bd8aef2632ee476`; verifier release `f4a0385dd9ba...` | exit 0 first try; `PASS_LABELLED_INCOMPLETE missing=link:model_turn effect=aien-ledger-slice/1:strong proposal=scripted_turn`; daemon printed `Compose: native (omega 6c6180cf...)`; task `fix-the-test/clamp-1`, test exit before 2 (GNU make), after 0 | committed on IP main: `IP adapters/aien/evidence/fix-the-test-2026-10-08/receipt.json`, `row-receipt.json`; log `~/handoffs/vac/M3b-slice-gate.log` | +| 9 | M3b tamper checks (6 codes + control) | inside run 8 | as run 8 | `test_run_mismatch` (changed exit code; swapped stdout digest; wrong target blob), `test_run_missing` (dropped section), `source_pin_mismatch` (tampered pin), `native_claim_contradicted` (forged native); control unchanged | `negative-verdicts.txt` on IP main | +| 10 | M3b synthetic tests | `cargo test` in IP provenance (`tests/fix_the_test.rs`) | n/a | 24 tests (M3b report; `#[test]` count in the file is 24) | IP main f43e53a64 | + +Known limits of this record, none softened: +- Runs 5, 6, 8 and 9 are scripted-model runs. None is `PASS complete`. +- `sovereign_core_rev` in the run 5 receipt is caller-asserted; the daemon does not print its revision (M2 report, Limits). Run 8 records the daemon commit the same way. +- Run 5 covers 5 of 14 live rows; the other 9 passed in run 3 only. The full `test-live-daemon.sh` (about 45 minutes) was not re-run after the M3b wiring change (M3b report, "Limits"). +- A forged native claim on a real stub daemon was only tested on synthetic bundles, because a stub daemon returns an error to ComposeRecall (M3b report; M3a finding). +- The stub-build row of the M1 matrix was NOT RUN. The REPL tool path and crossveil's own tests were not run in M1. +- Debug builds were used; each live row spent about 6.5 minutes in daemon start in run 3. +- The linked gate was run with `AIEN_OMEGA_DIR` unset, so the GPU engine is the CPU stub. Nothing here is a GPU result. + +## F. Change log + +| Date (UTC) | Section | Change | Evidence | Author | +|---|---|---|---|---| +| 2026-10-08 | A, C | Native vs stub becomes visible: `compose_native`, `omega_sha`, startup line | SC#346, merge commit 47f1014a1aa0cf54b732132c6958bc142e91c20b | claude session (VAC lane) | +| 2026-10-08 | A, C, E | Adapter repinned to SC 9b5e6e82; live verified-run gate and COMPANION exporter added | IP#82, merge commit 8600657425a457b69234e768e95ee8ba435c6ec2 | claude session (VAC lane) | +| 2026-10-08 | A, C, E | Fix-the-test slice: fixture, task / source pin / test-run records, five verifier codes, native check, slice gate, committed receipt | IP#83, merge commit f43e53a649e752308c61e8a51a402cfa37a7bf30, head c66be90362fed3831c425786980bcf8a233f8911 | claude worker (Sonnet), brief checked by the VAC lane | +| 2026-10-08 | all | This document placed at `docs/plans/vac/PLAN.md` | this pull request | claude worker (vac-m4b) | + +### Superseded by code (record codes and bindings as implemented) + +The 2026-10-08 draft (`~/handoffs/vac/PLAN-DRAFT.md`, local, not committed) proposed names that changed when the code was written. The implemented form wins: +- Proposed record `test_run/1`, binding `aien-test-run/1`: implemented as `vac-test-run` version 1 in `COMPANION.test_run.binding = "vac-test-run/1"`, with companion records `vac-task` and `vac-source-pin` (IP provenance/BINDING.md, IP main f43e53a64). +- Proposed refusal `not_native`: not implemented. Implemented as `native_claim_contradicted` for a claim the retained report does not support, and as the label `link:native` missing (verdict stays incomplete, not a FAIL) when the field is absent or `claimed: false`. +- Proposed schema bump of `COMPANION` from 0 to 1: not done. The `test_run` and `aien.native` members are optional additions; bundles without a `test_run` section are unchanged (BINDING.md, "Native claim"). +- Proposed harness-side probe for native/stub (`aien --version` style): replaced by the daemon-side report in `ComposeRecallReport` (SC#346). Stub daemons return an error on recall, so they never emit `compose_native=false` (M3a report). +- Proposed bundle-level verdict `NOT_FIXED` separating task failure from provenance: not implemented. A non-zero exit after the write is `test_run_mismatch` today (section B). +- Proposed CI job that builds a native daemon in IP CI (G1): not implemented. The gate is a host script (`adapters/aien/scripts/test-live-daemon.sh`). +- The draft said the adapter pin was "31 commits behind" and that protocol drift was UNVERIFIED. Measured result: no drift observed in 14 live rows (M1 finding 1); crate diff 4d4dfd4 to 9b5e6e8 for `aien-capability` and `aien-mcp` is empty (M2 report, Commands). ```