interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

GitHub aien-dev/aien-architecture-mv#171 (code only)

closed derived 4ed61caa94968580 #171

Imported from GitHub aien-dev/aien-architecture-mv#171 (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 7fcf799018e76c4ee8f7810f9c0a78a45dc5fc9d · Head e56ed18a680c9b21ad1b9e13bef625715f3dfee6

Apply it

git checkout -b patch-4ed61caa94968580 7fcf799018e76c4ee8f7810f9c0a78a45dc5fc9d
curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/4ed61caa94968580.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
171
e56ed18a680c9b21ad1b9e13bef625715f3dfee6
{"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":171,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/171","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:51Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 200f36c..a8ef65e 100644
--- a/.crumb
+++ b/.crumb
@@ -21,8 +21,8 @@
     "generated": {
       "children": [
         {
-          "digest": "cf3783e9d57fca83fea6360cc1395c0c2b39d84f2cbcd8cfdb02826b87357130",
-          "last_commit": "1d97c3e",
+          "digest": "f9abea949630af2c7c284c2b08ef77a5ec6926a07303a1a39478823ea3c38e57",
+          "last_commit": "7fcf799",
           "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:0934eb7fe68c52188cbac6327f9f24adc106a30e76b5d68f0e716b60bd02bd68",
-      "compiled_at": "2026-10-08T20:43:46Z",
+      "children_root": "sha256:326f6ed80c3df69d6a1a41a8abf0c58ad1356944d3f5ed3d14b91251224480c3",
+      "compiled_at": "2026-10-08T23:41:16Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:4023793568d38fc8a9da5710ff7ad17c002eb8f1f7bb0c9a4ee7481857ecbf99",
+      "digest": "sha256:35ff19e1e64d88cf256eb67929ce5291d2af26a73fd62e301613f4977f815d45",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 238,
-      "generated_at_commit": "1d97c3eca1243aef7508536723e1ee8e5b02f5f0",
-      "source_tree": "sha256:42c2dc45e673a4065023ceec7aecb3a82ca4b2b5b1b06f861040c0d10ecc56d2"
+      "generated_at_commit": "7fcf799018e76c4ee8f7810f9c0a78a45dc5fc9d",
+      "source_tree": "sha256:0b8ce0c530316d99077cbe13a584809a9b5455ecc1e47ee04996a960a54629e1"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/.crumb b/docs/.crumb
index 932456b..294afb6 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -55,8 +55,8 @@
           "purpose": "Directory docs/errata. Purpose not yet described by a human."
         },
         {
-          "digest": "1029c7a26ce20337727f93aaadf3ec22463208a3f31522744e09b8b4680bbd03",
-          "last_commit": "1d97c3e",
+          "digest": "7342bf7050309b776e85fefa24cc81edbfdcd0d14c41589e8fa5863d0d3d66bd",
+          "last_commit": "7fcf799",
           "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:508e41c03e1b2e5652970cfed8af45c09238fe5e99a013007bc5e0fa5d310f77",
-      "compiled_at": "2026-10-08T20:43:46Z",
+      "children_root": "sha256:6d7ca6f3e5df4478a0ff9694ce2ef25131d9f86e76aaba499b68d201382af80f",
+      "compiled_at": "2026-10-08T23:41:16Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:cf3783e9d57fca83fea6360cc1395c0c2b39d84f2cbcd8cfdb02826b87357130",
+      "digest": "sha256:f9abea949630af2c7c284c2b08ef77a5ec6926a07303a1a39478823ea3c38e57",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 130,
-      "generated_at_commit": "1d97c3eca1243aef7508536723e1ee8e5b02f5f0",
-      "source_tree": "sha256:b53ad365624a9042afaabca54376b7b3184cba20902a3a1d1b5a789a117def0c"
+      "generated_at_commit": "7fcf799018e76c4ee8f7810f9c0a78a45dc5fc9d",
+      "source_tree": "sha256:9ccdcc25c7ef4a24d50cf93dad8f60d256b1ee6dc7820117865a274b7e8fad96"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/plans/.crumb b/docs/plans/.crumb
index e8f3b61..9fdca3f 100644
--- a/docs/plans/.crumb
+++ b/docs/plans/.crumb
@@ -89,21 +89,21 @@
           "purpose": "Directory docs/plans/physics-zero. Purpose not yet described by a human."
         },
         {
-          "digest": "3b897ab85b6a7c565a0e543f5d0ff3b01aaedde167a11e834aaf4e903d27c5af",
-          "last_commit": "1d97c3e",
+          "digest": "416c6cf3067550e72f2b8f2f02b5a0e12d7b73f7db2b80f514e4829dbbf69999",
+          "last_commit": "7fcf799",
           "name": "vac",
           "purpose": "VAC (Verifiable Autonomous Computing) finite workstream plan. NOT A MASTER PLAN."
         }
       ],
-      "children_root": "sha256:9dba410004a3b5d7b6cb9fc632279503317bbb7d14c54234c456a0414a8c2872",
-      "compiled_at": "2026-10-08T20:43:46Z",
+      "children_root": "sha256:9a6b6c739fc2c210bd9ff341c5a98ff681bd5e953a5a26a3f5a3938674cdae8b",
+      "compiled_at": "2026-10-08T23:41:16Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:1029c7a26ce20337727f93aaadf3ec22463208a3f31522744e09b8b4680bbd03",
+      "digest": "sha256:7342bf7050309b776e85fefa24cc81edbfdcd0d14c41589e8fa5863d0d3d66bd",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 35,
-      "generated_at_commit": "1d97c3eca1243aef7508536723e1ee8e5b02f5f0",
-      "source_tree": "sha256:df85b71a339fa6f7b7d47141a4acd90e9f59f0127bf7f28c9154d112d99db2c7"
+      "generated_at_commit": "7fcf799018e76c4ee8f7810f9c0a78a45dc5fc9d",
+      "source_tree": "sha256:87ff7cb9e684263858080186081f6d3e7f23adf81eae1b797483153f7d43d426"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/plans/vac/.crumb b/docs/plans/vac/.crumb
index 7a82f04..64a385a 100644
--- a/docs/plans/vac/.crumb
+++ b/docs/plans/vac/.crumb
@@ -3,14 +3,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-08T20:43:46Z",
+      "compiled_at": "2026-10-08T23:41:16Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:3b897ab85b6a7c565a0e543f5d0ff3b01aaedde167a11e834aaf4e903d27c5af",
+      "digest": "sha256:416c6cf3067550e72f2b8f2f02b5a0e12d7b73f7db2b80f514e4829dbbf69999",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 2,
-      "generated_at_commit": "1d97c3eca1243aef7508536723e1ee8e5b02f5f0",
-      "source_tree": "sha256:54cd90119b2c990b6c9ccaf825cd2110bb01c06effe662d889143e51bde8db7e"
+      "generated_at_commit": "7fcf799018e76c4ee8f7810f9c0a78a45dc5fc9d",
+      "source_tree": "sha256:db4288969da4c0dd98728125d54d8e524caf91e9d942364b258c60ed4f7c65be"
     }
   },
   "name": "vac",
diff --git a/docs/plans/vac/M5-DESIGN.md b/docs/plans/vac/M5-DESIGN.md
index 2ec4455..26072e9 100644
--- a/docs/plans/vac/M5-DESIGN.md
+++ b/docs/plans/vac/M5-DESIGN.md
@@ -1,6 +1,6 @@
-# VAC M5: bounded RSI hookup, design note (PROPOSED, 2026-10-08)
+# VAC M5: bounded RSI hookup, design note (IMPLEMENTED, 2026-10-08)
 
-Status: PROPOSED. Nothing here is implemented. Every claim about current code cites spark-rsi
+Status: IMPLEMENTED 2026-10-08 (see "Outcome" at the end). The design text below is kept as written; where the build differs, the Outcome section wins. Original status line: PROPOSED, nothing implemented. Every claim about current code cites spark-rsi
 `origin/main` e5aab9a, interplane `origin/main` 04a05dc, or aien-protocols `origin/main`, read on
 2026-10-08. Build work starts only after M4 (clean-clone reproducibility) is qualified, per the
 directive's Phase 5 rule.
@@ -76,6 +76,8 @@ Receipt version 2 (item 4) changes what spark-rsi signs. It is additive (version
 but it is a signed-format change and needs an explicit yes. Everything else in this note uses
 existing paths.
 
+Decided: Drake approved Option 1 (receipt version 2) on 2026-10-08 with six conditions: sign the candidate SHA-256, holdout digest, policy digest, evaluator version and results; the evaluated digest must match the authorized change and the bytes on disk; version 1 stays verifiable for history but never suffices for new promotions; the judge key stays out of the proposer's reach; missing, corrupt or incomplete holdouts are refused; negative tests for substituted changes and scores, altered policies, wrong keys and incomplete holdouts. Also: commit spark-rsi `Cargo.lock`.
+
 ## Done conditions
 
 Unchanged from PLAN.md section D, row M5, items (a) to (f).
@@ -105,3 +107,47 @@ How the verifier treats the receipt depends on the open decision (receipt versio
 verifier requires `subject_sha256` to equal the grant's content digest. With a no, a version 1 receipt
 can only be checked for signature and threshold, and the verdict must carry the label
 `missing=link:evaluation_subject`.
+
+## Outcome, 2026-10-08 (IMPLEMENTED)
+
+Merged: spark-rsi#34 (merge commit 24f412f699f1942861fac5afb632cc8deda31ad1) and interplane#89 (merge commit
+dc37ca3e5948945bf4619c015b6c817a0c0920a0). Final gate `adapters/aien/scripts/test-m5-rsi.sh` PASS on
+interplane 0c8a92d and spark-rsi 4becebb, 2026-10-08 23:24Z; evidence in interplane
+`adapters/aien/evidence/m5-rsi-2026-10-08/`.
+
+The six conditions, as built:
+1. Signed fields: receipt version 2 (spark-rsi `docs/RECEIPT-V2.md`) signs subject path and SHA-256, parent
+   commit, holdout-set digest, policy digest, evaluator version and binary digest, layer results and holdout
+   counts (P-256, the judge account's key).
+2. Identity match: the harness precheck and the offline verifier require the receipt subject to equal the
+   ledger grant's content digest and the ack's on-disk digest (`evaluation_subject_mismatch`), and the
+   receipt parent to equal the bundle's source pin (`evaluation_parent_mismatch`). spark-rsi's promotion
+   gate re-reads the promoted bytes before its swap.
+3. Version 1: verifiable as history; `evaluation_v1_insufficient` in the verifier, refused by the
+   promotion gate.
+4. Key separation: judge key in `/var/lib/aien-judge` (mode 700), unreadable by the proposer account
+   (setup script proves "Permission denied"). Everything the judge does with candidate source (build,
+   `cargo check`, `cargo test`) runs in one bubblewrap sandbox without the judge's home, environment or
+   network; the holdout jail has no network fallback.
+5. Holdouts: the judge refuses a missing, empty, corrupt, incomplete or extra-file holdout set and any
+   set whose digest differs from the policy pin.
+6. Negatives (all in the gate, each with its named refusal): substituted score (two), edited subject,
+   altered policy, wrong pinned key, dropped evaluation, substituted change, receipt signed by another key,
+   version 1 receipt, other policy, re-signed low-bar policy pair against the operator pin, missing,
+   corrupt, shrunk and stray-file holdouts, RSI aimed at another file, dirty workspace, workspace without
+   its own repository.
+`Cargo.lock`: committed in spark-rsi and enforced in CI with `--locked`.
+
+Review: three independent reviews (separate sessions). Two blockers in the first (promotion did not check
+the staged bytes; a prebuilt binary could be run) and one in the second (the correctness check ran
+candidate build scripts outside the sandbox, which could have read the key) were fixed and re-tested
+before merge; the third found no blockers and four smaller items, all fixed.
+
+Differences from the plan: the gate script is `test-m5-rsi.sh` (PLAN.md named `test-rsi-hookup.sh`);
+promotion goes through INTERPLANE's approved path, not spark-rsi's ratifier, so ratify is not exercised
+and spark-rsi's own daemon refuses self-promotion (it only holds version 1 receipts).
+
+Limits (also in the gate receipt): the operator account can read the judge key through sudo; the holdouts
+are public, pinned by digest, not secret; the proposer is a rule-based scan, not a model, so the verdict
+stays `PASS_LABELLED_INCOMPLETE missing=link:model_turn`; the speed allowance is 200% because timing this
+microsecond fixture varied up to 79% between identical builds; the desk MAC stays default-off.
diff --git a/docs/plans/vac/PLAN.md b/docs/plans/vac/PLAN.md
index 0570b3c..f660413 100644
--- a/docs/plans/vac/PLAN.md
+++ b/docs/plans/vac/PLAN.md
@@ -107,7 +107,7 @@ Order by dependency. Each milestone ends in a pull request and a row in section
 | M4a clean-checkout demo (G6) | One script from a clean clone prints the verdict; selftest mutates each retained file and the verifier refuses each | DONE: IP#85 26b746568 (demo script, run 11), clean-clone build mode reproduced in run 12 after README fix IP#87 04a05dc5e. Selftest scope as built: 6 tamper cases each refused with its own code (runs 9, 11, 12), not a mutation of every retained file. |
 | M4b this document in ARCH | Plan, qualification record and change log in `docs/plans/vac/` | DONE: aien-architecture#168 fa0ec91fa. |
 | M4d recovery verdicts (DoD 7) | The verifier tells a landed write from one that did not land, could not be resolved, or was interrupted, and refuses test results on top of any of them | DONE: IP#86 9d1b1ab32 (run 13). Synthetic and restamped bundles only; no live interruption. |
-| 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. Design note `docs/plans/vac/M5-DESIGN.md` (PROPOSED) lists five gaps R1 to R5 and one decision for Drake (signed receipt version 2). 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. |
+| 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 | DONE 2026-10-08 (spark-rsi#34 merge 24f412f69, interplane#89 merge dc37ca3e5; gate `adapters/aien/scripts/test-m5-rsi.sh` PASS, evidence `adapters/aien/evidence/m5-rsi-2026-10-08/`). Status per item: (a) met by `test-m5-rsi.sh` (renamed); (b) met; (c) met, receipt version 2 signed by a separate judge account, 4 of 4 holdouts at a policy ratio of 1.0; (d) not exercised: promotion goes through the INTERPLANE approved path, not the ratifier, and spark-rsi's own daemon refuses self-promotion; (e) met; (f) met (proposals aimed at holdouts, policy or any other file refused; protected paths in the signed policy). Details and limits: `M5-DESIGN.md`, "Outcome". Original plan text follows. 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.
 
@@ -160,7 +160,8 @@ Known limits of this record, none softened:
 | 2026-10-08 | E | Clean-clone reproducibility run (M4c); README prerequisite fixed | IP#87, merge commit 04a05dc5e | claude worker (vac-m4c), verified by the session |
 | 2026-10-08 | D | M5 design note added, status PROPOSED (`docs/plans/vac/M5-DESIGN.md`) | this pull request | claude session (VAC lane) |
 | 2026-10-08 | B, E | The task record names its one allowed file; the verifier refuses a write elsewhere (`task_scope_mismatch`) | IP#88, merge commit c1e901870 | claude session (VAC lane), independent review by a separate session |
-| 2026-10-08 | D | M5 feasibility probe and gaps R6 to R8 added to the design note | this pull request | claude session (VAC lane) |
+| 2026-10-08 | D | M5 feasibility probe and gaps R6 to R8 added to the design note | aien-architecture#170 | claude session (VAC lane) |
+| 2026-10-08 | B, D, E | M5 DONE: judge-signed receipt version 2 bound to the exact change, parent, policy and holdouts; verifier `rsi-eval/2`; gate with 18 named refusals; spark-rsi `Cargo.lock` committed and enforced | spark-rsi#34 merge 24f412f699f1942861fac5afb632cc8deda31ad1, interplane#89 merge dc37ca3e5948945bf4619c015b6c817a0c0920a0 | claude session (VAC lane), three independent reviews by separate sessions |
 
 ### Superseded by code (record codes and bindings as implemented)