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#129 (code only)

closed derived 4194fb317dc77898 #129

Imported from GitHub aien-dev/aien-architecture-mv#129 (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 26a1d6aa811ee117b716bfab923c1cc0b23376ca · Head 6f54c8afad9006d8cdbabb2aeef984182a29e194

Apply it

git checkout -b patch-4194fb317dc77898 26a1d6aa811ee117b716bfab923c1cc0b23376ca
curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/4194fb317dc77898.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
129
6f54c8afad9006d8cdbabb2aeef984182a29e194
{"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":129,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/129","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:45Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index ec0c446..f806b7b 100644
--- a/.crumb
+++ b/.crumb
@@ -21,7 +21,7 @@
     "generated": {
       "children": [
         {
-          "digest": "af70778234464c91c9a87f8bbf0428baa0cdcb4e5379012311594a7d8a597ef8",
+          "digest": "d79070dbb9be9a7d3dcf5e74c942a8aecaeacadab482109563530c166504155d",
           "last_commit": "35dd324",
           "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:7fd16d263c9f3519e872203daf6095b4970e1fcadb14a9ac32a924a071f82271",
-      "compiled_at": "2026-10-04T18:17:55Z",
+      "children_root": "sha256:9ca8ddaedb91c95a561d2ebde049fe2631fbb32178aa1014c9bad2474eb25090",
+      "compiled_at": "2026-10-04T19:19:14Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:1c5f9121c39de90be227a480024e061d943b4c2c612ddb3dc5ea6c69b897dd1e",
+      "digest": "sha256:a5b1203ba61fd86b94cc8b0862dca3b5c7d2b1d98f8e6f3d7813e0424e9b127d",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 213,
-      "generated_at_commit": "2ebd88365f747aa2e5b400a9343127f242039cfb",
-      "source_tree": "sha256:0b944f17d033f315c4ef69f48b2d147340ccd83591579c10e4941498cadc184b"
+      "generated_at_commit": "26a1d6aa811ee117b716bfab923c1cc0b23376ca",
+      "source_tree": "sha256:78ca42e5c55eaf1886fae276af2e32a88f309d34a7e512e9cbf549f4ff32423a"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/CURRENT_EXECUTION_PLAN.md b/CURRENT_EXECUTION_PLAN.md
index ce7b90f..0772fd2 100644
--- a/CURRENT_EXECUTION_PLAN.md
+++ b/CURRENT_EXECUTION_PLAN.md
@@ -689,6 +689,7 @@ The release campaign must include destructive/adversarial recovery tests: stale
 - DUAL-0 and DUAL-1 may run now as a standalone module (new files under `omega/src/dual/` and `omega/tests/dual/`, own `mk/dual.mk` targets, not in `all` or `test`, not included by `omega/src/runtime/`). DUAL-3 (advisory scheduler: read-only tap, zero production authority) may follow DUAL-1.
 - DUAL-2 waits on EST-5 and EST-7; DUAL-4 waits on DUAL-2, DUAL-3, the Evolution Arena V1 activation hold and an allocation policy frozen in the Arena Evaluation contract, and runs in observe-and-record Arena runs only; DUAL-5 (the only stage that grants production influence) waits on DUAL-2, DUAL-3, DUAL-4 and on EST-3, EST-4, EST-5 and EST-7 for every consumed signal, and must beat simpler baselines.
 - Status 2026-10-03: ADR 0031 recorded; no DUAL code exists. EST-3 remains FAILED on main, so no price may influence production.
+- Status 2026-10-04: DUAL-0a, 0b, 1a, 1b and 3a (both sites, read-only, default off) IMPLEMENTED on standalone paths: omega `55d05d6`, aien-sovereign-core `7580039`, spark-rsi `e5aab9a` (diagnostic reader). Applicability experiment EXPERIMENTAL. DUAL-3b MISSING; DUAL-2, 4, 5 BLOCKED on ESTIMATION gates. DUAL production influence: DISABLED BY GATE. Detail: `docs/plans/dual/DUAL_CURRENT_STATE.md` section 6.
 
 **Lane 9 - Inertial Alignment, ANS (ADR 0032):** ANS-0 to ANS-4; advisory only, no verdict may block, grant or promote until `ARGUS1_G1`..`G13` PASS and the Evolution Arena activation hold lifts. ANS-0 is a standalone omega module (`src/ans`, not in `all` or `test`) and may merge once its tests and purity check pass; ANS-3 (promotion pre-check) is observe-only until the hold lifts. Status 2026-10-03: ADR 0032 recorded; omega module PR in flight.
 
diff --git a/docs/.crumb b/docs/.crumb
index 2e13c01..ea86b77 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -38,7 +38,7 @@
       "children": [
         {
           "digest": "5ef8ca2413e65e28b5a241110787ab31aad1f9eb05719268f14006f3b7a1d01b",
-          "last_commit": "0128197",
+          "last_commit": "35dd324",
           "name": "adr",
           "purpose": "Directory docs/adr. Purpose not yet described by a human."
         },
@@ -55,7 +55,7 @@
           "purpose": "Directory docs/errata. Purpose not yet described by a human."
         },
         {
-          "digest": "dd7b025ef67efb70e9e740fd748979b0a7cba6fb6e8b0152b07230a9415839e8",
+          "digest": "ec40dc0a778afd30b22ffcb2090caa1634e0ed0b0755d7a3ba01d5770bcd7188",
           "last_commit": "6f51f83",
           "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:a9cde39c0269339f2afec3799750810217e4c1dae999d456fccfbc0341b1c368",
-      "compiled_at": "2026-10-04T14:12:54Z",
+      "children_root": "sha256:4e8a72924decde51a4fe0d5fe72a025ca8d2b6ae355a171f909edfcbd5279e5c",
+      "compiled_at": "2026-10-04T19:19:14Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:af70778234464c91c9a87f8bbf0428baa0cdcb4e5379012311594a7d8a597ef8",
+      "digest": "sha256:d79070dbb9be9a7d3dcf5e74c942a8aecaeacadab482109563530c166504155d",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 119,
-      "generated_at_commit": "d0f0b95d344b4c6628c3d868346932fd247ce168",
-      "source_tree": "sha256:bb1a4246bd1ec8adffd48314d23373c6bcbe474586eb36c2ae900f3112b00620"
+      "generated_at_commit": "26a1d6aa811ee117b716bfab923c1cc0b23376ca",
+      "source_tree": "sha256:6e76adef663726d4de1937e09f3004b43e8f39dae00fbecb2e672166b78f1486"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/plans/.crumb b/docs/plans/.crumb
index d4c9264..bc3c7a3 100644
--- a/docs/plans/.crumb
+++ b/docs/plans/.crumb
@@ -90,14 +90,14 @@
         }
       ],
       "children_root": "sha256:3fb5deed18e86996c0c7642b496b3bb11b82cb548217f7250851ef3debb73828",
-      "compiled_at": "2026-10-04T13:24:43Z",
+      "compiled_at": "2026-10-04T19:19:14Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:dd7b025ef67efb70e9e740fd748979b0a7cba6fb6e8b0152b07230a9415839e8",
+      "digest": "sha256:ec40dc0a778afd30b22ffcb2090caa1634e0ed0b0755d7a3ba01d5770bcd7188",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 28,
-      "generated_at_commit": "89fda22daf3ddb149c82a36efdc89bc087ad2f0b",
-      "source_tree": "sha256:9d18e2344cc675539b64e91ca282a3530a074b51221fa4842352ef683d6f52bd"
+      "generated_at_commit": "26a1d6aa811ee117b716bfab923c1cc0b23376ca",
+      "source_tree": "sha256:40d03194d3986cdd0efb6270fb0dab4b512056782922902ebba1cb8e6700a51f"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/plans/dual/DUAL_CURRENT_STATE.md b/docs/plans/dual/DUAL_CURRENT_STATE.md
index 19e8cec..00ff373 100644
--- a/docs/plans/dual/DUAL_CURRENT_STATE.md
+++ b/docs/plans/dual/DUAL_CURRENT_STATE.md
@@ -4,6 +4,8 @@
 
 **Written:** 2026-10-03, before any DUAL code existed. Facts come from read-only audits of the commits below; code was read, README and spec claims were not taken as evidence, and every claim used by ADR 0031 was re-checked by hand against the cited lines.
 
+**Updated:** 2026-10-04. Sections 1 to 5 describe the state before any DUAL code existed and are kept as the audit record. Section 6 records what has since landed on `main` and supersedes section 1 where they differ.
+
 | Repository | Commit (GitHub `main`) |
 |---|---|
 | aien-dev/aien-architecture | `b31d6f7` |
@@ -65,7 +67,7 @@ Status words: IMPLEMENTED, PARTIAL, PLANNED, MISSING.
 
 Each slice is one small pull request with its own receipt. None touches `omega/src/runtime/` until slice 5.
 
-1. **DUAL-0a, records and registry (omega, standalone).** `src/dual/` and `tests/dual/`, own `mk/dual.mk` targets, not in `all` or `test`, not included by `src/runtime/`. Section 4 records, kind bytes, digest domains, unit registry, class rules, canonical encoding round trip, `nm -u` refusal check. Hostile tests for `INVARIANT` construction, NaN/negative/unit mismatch, kind confusion.
+1. **DUAL-0a, records and registry (omega, standalone).** (IMPLEMENTED, see section 6.) `src/dual/` and `tests/dual/`, own `mk/dual.mk` targets, not in `all` or `test`, not included by `src/runtime/`. Section 4 records, kind bytes, digest domains, unit registry, class rules, canonical encoding round trip, `nm -u` refusal check. Hostile tests for `INVARIANT` construction, NaN/negative/unit mismatch, kind confusion.
 2. **DUAL-0b, staleness and evidence binding.** Generation and maximum-age checks; evidence-root verification reusing `est_evidence_root_extend`; references to `est_*` records, never copies of raw observations. Exit `DUAL_CONSTRAINT_CONTRACT = PASS`.
 3. **DUAL-1a, reference update.** Section 5.1 update as a pure function of (state, input, controller parameters); `controller_id` digest; analytic cases plus an independent reference written without reading the implementation.
 4. **DUAL-1b, replay on recorded traces.** Digest-bound traces already on disk (for example the R15 machine-state series used by EST-2) plus synthetic step-change and square-wave loads; oscillation bound pre-registered; inputs labelled `UNCALIBRATED`. Exit `DUAL_PRICE_REFERENCE = PASS`.
@@ -76,3 +78,35 @@ Each slice is one small pull request with its own receipt. None touches `omega/s
 9. **DUAL-5, closed-loop qualification.** Waits on DUAL-2, DUAL-3, DUAL-4 and on EST-3, EST-4, EST-5, EST-7 for every consumed signal. Exit `DUAL_CLOSED_LOOP_QUALIFICATION = PASS`.
 
 Slices 1 to 4 are permitted now by the same rule that let EST-0 to EST-3 run as a standalone module. Slices 5 and 6 need no ESTIMATION gate because they have no production authority. Slices 7 to 9 wait as stated.
+
+## 6. Implementation status, 2026-10-04 (updated after the first DUAL code landed)
+
+Written by the orchestrator after read-only audits of the merged commits below. Status words as above plus EXPERIMENTAL (code and evidence exist, no gate claimed, nothing wired into production) and BLOCKED (gate prerequisite failed or missing).
+
+| Repository | Commit (GitHub `main`, after the merges) |
+|---|---|
+| aien-dev/omega | `55d05d6` |
+| aien-dev/aien-sovereign-core | `7580039` |
+| aien-dev/spark-rsi | `e5aab9a` |
+
+Baseline before this work: omega `cb7cc21`, aien-sovereign-core `91fba8f`, spark-rsi `f5f1ca2`, aien-architecture `35dd324`. Grep for `rx_dual`, `RxDual`, `src/dual` at those commits: zero hits (DUAL was MISSING everywhere, consistent with section 1).
+
+| Slice | Status | Where | Evidence |
+|---|---|---|---|
+| DUAL-0a records and registry | IMPLEMENTED | omega `src/dual/rx_dual.{h,c}`, `tests/dual/test_dual_types.c`, `mk/dual.mk` (`make test-dual`), `docs/dual/DUAL_RECORDS.md` | omega #266 (`109cadc`); `evidence/DUAL/0a-records/receipt.md`; 14107 checks plain, 1667 ASan/UBSan, 4 mutants killed; `nm -u` purity clean |
+| DUAL-0b evidence and staleness binding | IMPLEMENTED | omega `src/dual/rx_dual_bind.{h,c}`, `tests/dual/test_dual_bind.c` | omega #267 (`3bebcc6, reopened as #272 after GitHub closed #267 with its base branch`); binds to `est_belief`, `est_prediction`, `est_observation` digests, verifies `evidence_root` via `est_evidence_root_extend`; states FRESH / STALE / FROZEN / UNCALIBRATED / REFUSED; `DUAL_CONSTRAINT_CONTRACT = PASS` (host) |
+| DUAL-1a reference update | IMPLEMENTED | omega `src/dual/rx_dual_update.{h,c}`, `tests/dual/test_dual_update.c`, independent closed form `tests/dual/dual_ref.c` | omega #267; analytic cases 1-8, 3000-round property suite (355348 checks plain, 35837 ASan), 5 mutants killed |
+| DUAL-1b replay | IMPLEMENTED | omega `src/dual/rx_dual_replay.{h,c}`, `tests/dual/test_dual_replay.c`, `tests/dual/dual_traces.{h,c}` | omega #271 (`55d05d6`); 12 synthetic scenarios + 6 recorded R15 perf-counter traces (digest-bound), thresholds pre-registered in a commit before the code; 456 checks plain and ASan; hostile controller (eta 5, rho 0) fails the amplitude bound as declared; `DUAL_PRICE_REFERENCE = PASS` (host); every replayed input UNCALIBRATED |
+| DUAL-3a read-only tap at `jspace.residency` | IMPLEMENTED | omega `src/runtime/rx_jspace.{h,c}` (`js_dual_set_observer`, default NULL), `mk/dual_jspace_tap.mk` (`make test-dual-3a`) | omega #270 (`3a3144d`); on/off parity byte-identical (rc, `JsPolicyReport`, `JsStats`, space digest), hostile observer killed 2035 times, bench: tap-off within -0.42 % of base, +2.06 us per record with tap on; receipt `evidence/DUAL/3a-jspace-tap/receipt.md` (thresholds declared before the run, committed after it, stated there) |
+| DUAL-3a observer at `serve.admit_preempt` | IMPLEMENTED | aien-sovereign-core `crates/aien-scheduler/src/dual_observer.rs` (`DecisionObserver`, default None), `build_scheduled_batch` wrapper | aien-sovereign-core #198 (`2f9570a`); per-scenario decision digests over 13 scripted scenarios identical to the base commit; observer on/off byte-identical; compile_fail doctests prove the observer cannot mutate or return a choice; feature-gated mutant that changes a decision fails 4/13 scenarios; bench B1 (counting/absent <= 1.25) measured 1.337 and recorded FAIL, threshold untouched (noise reference 0.594); receipt `docs/campaigns/dual/2026-10-04-serve-observer-receipt.md` |
+| Macroscopic snapshot adapter | IMPLEMENTED | aien-sovereign-core `crates/aien-dual-observation` (new read-only crate) | aien-sovereign-core #199 (`7580039`); conservation tests (8) pass; zero-denominator ratio yields None, never zero; no scheduler decision read or written; receipt `docs/campaigns/dual/2026-10-04-macro-snapshot-receipt.md` |
+| Applicability (continuum vs discrete) experiment | EXPERIMENTAL | omega `src/dual_experiment/`, `tools/dual_experiment/applic_run.c`, `mk/dual_applicability.mk`, `docs/dual/APPLICABILITY_EXPERIMENT.md` | omega #268 (`00f54b6`); 8 synthetic workloads x 24 seeds, bit-reproducible (results digest pinned in the test); aggregate throughput prediction usable when demand spread is low, degrades monotonically with heterogeneity; shuffled-window control worse in 192/192 runs; proposes a regime rule only, nothing inserted |
+| DUAL-3b advisory recommendation campaign | MISSING | | needs the tap (#270) and the records (#266, #267) on the same build; not started |
+| RSI diagnostic price consumer | IMPLEMENTED (diagnostic only) | spark-rsi `src/dual/{records,diagnostic}.rs`, knob `RsiConfig.dual_price_vector_dir` (default None), report field `RsiCycleResult.scarcity` | spark-rsi #33 (`e5aab9a`); byte-exact re-encode of omega golden vectors (generated at omega #266), 32 hostile cases refused with the same status codes as the C decoder; flipped-bit digest mismatch reported as unavailable, never as zero scarcity; names only the highest FRESH calibrated price; weighted sum, hard invariants, admission, ratification and promotion untouched (source-level test guards them); 198 tests pass; receipt `evidence/dual/receipt.md` |
+| DUAL-2 Pareto integration | BLOCKED | | waits on EST-5 and EST-7 (not reached) |
+| DUAL-4 Arena allocation | BLOCKED | | waits on DUAL-2, DUAL-3, Arena V1 activation hold |
+| DUAL-5 closed-loop qualification | BLOCKED | | waits on EST-3 (FAILED on `main`), EST-4, EST-5, EST-7 |
+
+**DUAL production influence: DISABLED BY GATE.** No price reaches any production decision. The only `src/runtime/` change is the `jspace.residency` tap, which is read-only with a NULL default and a proven on/off parity. ESTIMATION gates EST-3, EST-4, EST-5 and EST-7 are not passed, so DUAL-5 cannot start.
+
+Known limits of the merged work: host-only (no GB10 chip time was used or needed); the `lambda_max` and controller constants are placeholders bound into `controller_id`, not tuned; FRESH inputs require a calibration reference that nothing on `main` yet produces, so every real input today classifies as UNCALIBRATED or STALE by construction; ADR 0033 verification manifests do not yet exist for omega, so these slices are gated by the existing make targets and GitHub CI.