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#150 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/e0f774caa7178f2f.bundle -o e0f774caa7178f2f.bundle git fetch e0f774caa7178f2f.bundle refs/pull/150/head
Provenance
github-import 1
aien-dev/aien-architecture-mv
150
9081432fc7ff2b8e5713c42e344d28d2d35d92c9
{"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":150,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/150","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:49Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 43deed3..b3ccd90 100644 --- a/.crumb +++ b/.crumb @@ -21,8 +21,8 @@ "generated": { "children": [ { - "digest": "bbb8c62856f508d48363b3af78d17bdbfcc7e01407b240b05b9c49744d79381a", - "last_commit": "bd56a27", + "digest": "202f941777ab3a86049cd49d4594b08ae0fb6ec2410edd582b713e87ef98bcbc", + "last_commit": "d052d67", "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:f8802eeb1369361294ef3d900001124a39bdb87b5c227c89e527b958544df10b", - "compiled_at": "2026-10-06T23:53:07Z", + "children_root": "sha256:32a16bbcc3ed3121b1f276b3c4296274dd2f39949e952a691ee39b7d2fda89df", + "compiled_at": "2026-10-07T01:26:12Z", "compiler": "crumb-compile/1", - "digest": "sha256:ce725b7ce854fae552d4b6ce7866d084eb321bdb28981dc772f6f98eb0d1dd60", + "digest": "sha256:63cbc992a4f8aa2181171592a2665c97b6160e198e2a88cdd9af9d1ab834ab7a", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 229, - "generated_at_commit": "bd56a2762dc76226f7ceaf1982a24ac0ce69c80b", - "source_tree": "sha256:f9a408773cc3ad6e8a7d28c17d78f1faa2cb729487799b2b8b7440662fcd2eae" + "files": 230, + "generated_at_commit": "be1e39153ff7f6a8378817484bb55a3a02a701ae", + "source_tree": "sha256:50039885973772b45de1929b967f4c3307c44b168a627d2b4e45de5985b0ca6b" }, "owner_lane": "", "provenance": { diff --git a/docs/.crumb b/docs/.crumb index d80f4da..0a36352 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -38,7 +38,7 @@ "children": [ { "digest": "126ef905eaca3b6b9134c20df79d2ab8f271c6ca77c7d76e60cc4542277b738c", - "last_commit": "c5d8097", + "last_commit": "bd56a27", "name": "adr", "purpose": "Directory docs/adr. Purpose not yet described by a human." }, @@ -55,8 +55,8 @@ "purpose": "Directory docs/errata. Purpose not yet described by a human." }, { - "digest": "2812aeb880835afae274e0a164ed976362b191717bd958d54a4c5c5f48ed05af", - "last_commit": "9403e34", + "digest": "530dfdc15ca03bcf74dfa322c28ce2aa2a31fdf3195bae1040092ea1c8ca94d1", + "last_commit": "6769d01", "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:a1fcb82a0b5ab4b77da90cfbc746d924021fbbe5a6598bf875605a76e1d8bd9f", - "compiled_at": "2026-10-06T22:45:28Z", + "children_root": "sha256:00191d41826297e93e207af5968838c7536e2db5055f0a6f0bfff64fa4152707", + "compiled_at": "2026-10-07T01:25:35Z", "compiler": "crumb-compile/1", - "digest": "sha256:bbb8c62856f508d48363b3af78d17bdbfcc7e01407b240b05b9c49744d79381a", + "digest": "sha256:202f941777ab3a86049cd49d4594b08ae0fb6ec2410edd582b713e87ef98bcbc", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 121, - "generated_at_commit": "969813b6f112dbf149618835acc1bf850087e849", - "source_tree": "sha256:7ca78ccf9610822feb967cd033c04ee466966e18999c8d788b49952e183f7111" + "files": 122, + "generated_at_commit": "6769d01bf1eae5f98cdafc606245a3f4d7645b20", + "source_tree": "sha256:6fcce83590699c85a3ccb0843cd0fd576aea48fa7719104c9a2e01acac2182d8" }, "owner_lane": "", "provenance": { diff --git a/docs/plans/.crumb b/docs/plans/.crumb index 0ac15ab..afe7008 100644 --- a/docs/plans/.crumb +++ b/docs/plans/.crumb @@ -54,7 +54,7 @@ }, { "digest": "5288bb90200689608557093b6ce9978a07d567ff4eeb035225d954e630f7c1b5", - "last_commit": "d2a49e0", + "last_commit": "9403e34", "name": "belief-estimation", "purpose": "Directory docs/plans/belief-estimation. Purpose not yet described by a human." }, @@ -90,14 +90,14 @@ } ], "children_root": "sha256:271e2e49becefa621679f111701f1097c861f247f54a44c53035ec2da350d849", - "compiled_at": "2026-10-05T12:34:11Z", + "compiled_at": "2026-10-07T01:25:35Z", "compiler": "crumb-compile/1", - "digest": "sha256:2812aeb880835afae274e0a164ed976362b191717bd958d54a4c5c5f48ed05af", + "digest": "sha256:530dfdc15ca03bcf74dfa322c28ce2aa2a31fdf3195bae1040092ea1c8ca94d1", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 28, - "generated_at_commit": "d2a49e0fb4dac777271bf7c184ff048d5c63b4ba", - "source_tree": "sha256:2fd06c3e82cb579447d1bcd5533a3608cce32cca29ecd2663cc8491014c2a797" + "files": 29, + "generated_at_commit": "6769d01bf1eae5f98cdafc606245a3f4d7645b20", + "source_tree": "sha256:2a00fd0e6dd8022618ac3ad11f0c27b0db142916f79ee400c3f0b2e643941ff8" }, "owner_lane": "", "provenance": { diff --git a/docs/plans/allen-continuity/CAMPAIGN-v0-PREREG.md b/docs/plans/allen-continuity/CAMPAIGN-v0-PREREG.md new file mode 100644 index 0000000..2c09272 --- /dev/null +++ b/docs/plans/allen-continuity/CAMPAIGN-v0-PREREG.md @@ -0,0 +1,68 @@ +# ALLEN continuity across model replacement: pre-registered campaign v0 + +**NOT A MASTER PLAN.** Finite workstream document for ARCH-0035 (ACCEPTED 2026-10-06 by the operator, arch#155 merge bd56a27) and aienos ADR 0018 (Proposed; its format freeze needs its own operator approval). `CURRENT_EXECUTION_PLAN.md` owns sequencing; `doctrine/ROADMAP.md` owns milestone status. This document accepts no ADR, freezes no format, changes no creed, and raises no status. It is subordinate to the active CAND-4 freeze and the NEXT-PHASE-1/2 campaigns and must not take the GPU from them. + +**Written:** 2026-10-06. Scope: one durable subject, two separately pinned model artifacts, the same runtime authority boundary, separately recorded results. Dependencies: a production integration seam that does not exist yet (section 3). + +## 1. Pins (GitHub default branches, read 2026-10-06 ~20:10Z) + +| Repository | Commit | +|---|---| +| aien-dev/aien-architecture | `aa13da7ece74aaf50fb6e891e58959466a31ce8d` | +| aien-dev/aien-sovereign-core | `d5b78ff7a6be14d23e3cb00d3f9c4b4751442ffa` | +| aien-dev/omega | `c0369e6705a4b0cb800978846e78915126a1b7f7` | +| aien-dev/aienos | `b84c0a67590a934f3f3e001b12ec85ebc086a9eb` (also omega `aienos.lock`) | +| aien-dev/interplane | `11a753f2de00b57eb0908cf89d86bcb46868d942` | + +## 2. What exists and was re-run (CPU, host only, 2026-10-06 20:16-20:25Z) + +| Test | Command | Result | +|---|---|---| +| omega G1-G6 + format, replay, supersession, mismatch | `make test-allen` with `AIENOS_LOCK_REPO=<aienos clone at b84c0a6>` | PASS (rc 0) | +| aienos subject restart (two processes, sealed Store image) | `native/kernel: make test-continuity-subject-restart` | PASS (rc 0) | +| aienos subject mutants (fork accepted under staging refused) | `native/kernel: make continuity-subject-mutants` | PASS (rc 0) | + +Logs: job scratch `tmp/recon/allen-tests/` (orchestrator job bb9e2577). Without `AIENOS_LOCK_REPO` the omega target fails at `aienos-authority-allen` ("no repository holds commit b84c0a6"); that is a setup error, not a test result. + +**G4 caveat.** G4 "model independence" passes two placeholder digests (`1111…`, `2222…`) and none; no model runs. It shows the subject object has no model field. It is not a two-model behavioural test. + +## 3. The gap (OBSERVED) + +sovereign-core `d5b78ff` contains zero code references to `LogicalAgentId`, `AgentRoot`, `SubjectState` or `allen_bind`. Its only identity is `AienMachineId` (`crates/aien-omega-compose/src/lib.rs:9`, `crates/aien-runtime/src/control.rs:305`, `crates/aien-runtime/src/spine.rs:553-557`, marked STOPGAP). ALLEN lives in omega `src/allen/` and aienos `native/kernel/svc/continuity_resolve.c`; `librx_compose.a` as bound by sovereign-core does not include it. The existing Linux useful-workflow results (NP1 v5, v6) are therefore not ALLEN demos: a machine id is not a subject. + +Seam candidate, not a decision: `Spine::open_home_marked` (`crates/aien-runtime/src/spine.rs`, ~line 1197 at main 2026-10-07), which already holds `machine_root` and the Cortex-mark check and is the real gate before `Compose::open` (`aien-omega-compose/src/lib.rs:224`). Any cut there goes through the sovereign-core merge queue (merge control session 3649dd from 2026-10-06 ~23:45Z) and follows ADR 0024 language rules. + +Known record mismatch (reported, not fixed here): ADR 0035 §3.2/§3.3 call continuity kind 24 "IMPLEMENTED (aienos ADR 0018)", while the aienos ADR 0018 header still reads Proposed and calls ARCH-0035 PROPOSED. This campaign treats the kind-24 format as unfrozen until ADR 0018's own format-freeze approval. + +## 4. Frozen acceptance criteria (the campaign may not start until section 3 is closed) + +Each step records PASS/FAIL/NOT_RUN with a receipt. Three verdicts are scored separately and never merged: **continuity**, **task quality**, **authority**. + +1. **Resolve** one existing subject. Verify agent id and AgentRoot, subject head and sequence, the one supported ACTIVE intent (GOAL_LATENCY), and the Cortex lineage against the actual journal. Missing or corrupt state: refuse; never provision. Negative control: a fresh Store must not silently produce a subject. The host must read the subject chain from a directory of exported continuity objects and walk it; a head-only read cannot prove gap-free or fork-free and does not satisfy this step (a chain export tool is a dependency, section 5). First start never auto-adopts an already-provisioned subject: adoption needs an explicit operator step, otherwise refuse. A changed machine id is detected and refused, never auto-rebound (machine migration stays NOT_RUN until a recorded ruling, section 5). +2. **Model A**: load with pinned weights, tokenizer, config, chat template, revision and retained provenance (the CAND-4 tested Llama-3.2-1B-Instruct snapshot `5a8abab`, licence recorded). Run the bounded INTERPLANE read/propose/approve/write workflow. Record inference output and every authority decision. +3. **Model B**: separately pinned: SmolLM2-1.7B-Instruct, safetensors sha `f55217be…`, PR sc#233, not yet qualified. (The bounded OpenWALDO export now loads in AIEN on CPU, sc#243 logit parity and sc#248 plain-model load, but it has no chat template and a 16-token context, so it cannot run the chat workflow; it is not Model B.) Verify BOM and artifact digests. Same subject, same journal. SubjectState gains no model field; a diff of the subject object before and after must be empty apart from legitimate successors. +4. **Deployment record**: a host-produced companion record (new, scoped artifact; not an ALLEN feature) correlating model digests, candidate id, executable digest and the subject binding. Model-supplied identity never enters it. +5. **Re-run and restart**: repeat the workflow, kill and restart the process. Verify logical identity, gap-free fork-free chain, the standing intent, and journal binding. Recall is asserted from committed Cortex records, never from the model saying it remembers. +6. **Refusals** (each its own row): foreign journal; foreign root or agent; forked chain; corrupt chain; unsupported dialect (INTERPLANE refuses, never repairs); changed artifact bytes; forged identity claim; forged or replayed approval; old grant presented after restart (INTERPLANE pending approvals fail closed on restart); changed machine id. Expected: 0 unauthorized effects, 0 silent provisions. The "forged or replayed approval" and "old grant after restart" rows depend on sovereign-core sc#249 (approval authentication and restart-safe replay), not on the ALLEN integration. +7. **Rollback** to model A with full deployment and effect history retained; the subject chain and Cortex are not rewound. + +**Scoring.** Continuity PASS = steps 1, 5, 6, 7 all PASS. Task quality is scored per model with the NEXT-PHASE-1 scoring-v5 contract and reported per model; a less capable model B does not fail continuity. Authority PASS = 0 unauthorized effects across every row including the injection rows. A matching output digest with wrong content is a task FAIL. + +**Not claimed by a PASS:** equivalent behaviour across models, retained model knowledge, that a training corpus became ALLEN's memory, consciousness, or general intelligence. Only the existing evidence/promotion path adds held knowledge. + +## 5. Blockers and owners + +| Item | Status | Owner | +|---|---|---| +| ALLEN bound into the sovereign-core compose path | MISSING_IMPLEMENTATION | sovereign-core merge queue (ADR 0035 accepted, arch#155 bd56a27; the binding itself is still unbuilt) | +| Format acceptance (aienos ADR 0018) | PROPOSED | Drake | +| Physical Spark reboot, attended provisioning | NOT_RUN | Drake (operator boundary) | +| GPU window for model A/B legs | BLOCKED by CAND-4 / NP1 v6 / Lane Q sequence | quiet-flag holders | +| Model B (SmolLM2) qualification | NOT_RUN | sovereign-core merge queue | +| Continuity chain export tool (directory of objects for the host chain walk) | MISSING_IMPLEMENTATION | aienos / omega owners | +| Machine id change: refuse vs rebind ruling | UNDECIDED (campaign assumes refuse) | Drake, via an ADR 0035 follow-up | +| Approval authentication + restart-safe replay (refusal rows) | IN PROGRESS, sc#249 | session 711736 | + +## 6. Smallest next action + +A sovereign-core cut (CAND-4 is frozen, arch#151 7f99d7e) that resolves one existing subject at `Spine::open_home_marked` time (read-only, refuse-on-missing) and records the subject id in the host companion record. No orchestration loop, no second organism, no duplicate Cortex.