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

branch main Branches Tags History

aien-architecture-mv / docs / plans / belief-estimation / BELIEF_ESTIMATION_CURRENT_STATE.md

144 lines · 18216 bytes Raw Blame History Source

Belief Estimation - Current State

NOT A MASTER PLAN. This is a finite workstream document for ADR 0020 (ARCH-0020), the belief / estimation layer. CURRENT_EXECUTION_PLAN.md owns sequencing and doctrine/ROADMAP.md owns milestone status. Nothing in this document is a milestone.

Written: 2026-09-30, before any estimation code existed. Facts come from three read-only audits of the commits below. Code was read; README and spec claims were not taken as evidence. Nine claims were re-checked by hand (section 7).

RepositoryCommit
aien-spark/omega6b9d4b7 (main; b608dff after a docs-only merge during the audit)
aien-spark/aien-architectureede9f16
aien-dev/aienuxf0facc7
aien-spark/physicsf63a6ef

Status words: IMPLEMENTED, PARTIAL, EXPERIMENTAL, PLANNED, MISSING, CONFLICTING, OBSOLETE. "Host reference" means C code exercised by tests but not wired into a live service.

1. Headline

2. Concept inventory

ConceptStatusWhereNote
Observation as typed evidencePARTIALaienos native/argus/argus_abi.h:218-237 (128-byte ARGUS event, evidence_digest, logical tick, no wall clock); FORGE v2 forge/v2/forge_substrate_v2.h:328-355 (EXPERIMENTAL, reference model only)Events are security observations, not numeric measurements with declared noise.
Belief / state estimateMISSINGnone
Covariance / uncertainty with declared unitsMISSING (as a state quantity)Uncertainty exists only as the per-prediction fields below.
Prediction distributionIMPLEMENTED (two narrow forms)omega src/runtime/rx_costmodel.h:79-88 (RxCmPrediction: mean and sd of log2 ps, Student-t dof, fail_p Beta posterior mean, point energy); src/turing/ty_prd.h:1-4 (PRD1: per index u32 family, f64 loc, f64 scale, Gaussian only)Neither carries a state vector or covariance.
Innovation / residualMISSING as a typeTURING scores code length, not residuals.
Normalized surpriseMISSING
Transition / observation model identityMISSINGCost model identity is its blob digest (rx_costmodel.c:422-443, magic OGCM v1).
EstimatorPARTIALcost model is a conjugate Bayesian regression per (cell, arm), rx_costmodel.h:21-28Static regression, not a dynamic state estimator.
Calibration of stated uncertaintyIMPLEMENTED (cost model); IMPLEMENTED (engine confidence)rx_cm_calibrate, rx_costmodel.c:385-411 (split conformal on held-out residuals, needs 10+ points); rx_route.h:68,120 (RxCogCalibration, per-bin hit rate of an engine's stated confidence)Both are reusable patterns for EST-3; neither calibrates a dynamic estimate.
Calibration protocol, freeze, blindingIMPLEMENTEDomega calibration/ (CAL-0, PR #92): BLINDING_PROTOCOL.md, scripts/freeze_receipt.sh, schemas/*.json, independent-scorer ruleThe statistic (code length vs baseline) does not transfer; the freeze and blinding machinery does.
Evidence root / digestPARTIALsrc/omega_evidence.h (write-once content-addressed files under build/qual-runs/<run>/); src/turing/ty_qrecord.h:10 (digest = SHA-256(domain, 0x00, bytes))No single evidence-root type. ARCH-0020 adopts the TURING domain-separated digest rule.
World generation, stalenessIMPLEMENTEDsrc/runtime/rx_world.h:292-316 (per-field version and writer), :172 (RxObjRef{id,generation}), rx_world.c:1180-1195 (stale read refused at publish)World objects hold eight u64 fields and no doubles (rx_world.h:34), so a covariance cannot live in one object. EST-4 decides the encoding.
External input path into WorldIMPLEMENTEDrx_world_publish_external, rx_world.h:604-608 (capability required)Natural entry for observations in EST-4.
State Projection with uncertaintyPARTIALrx_projection.h:78 (NONE / POINT / INTERVAL request), :137-143 (count, sum, sumsq, min, max)PJ_OP_PREDICT exists as a label only (tests use it).
Uncertainty transportCONFLICTING (wording)rx_semcomm.h:26: "Omega does not estimate uncertainty. A type may declare one field as its producer's uncertainty"Not a real conflict: an estimator is a producer. ARCH-0020 records that the estimation layer is that producer and that semcomm stays a transport.
Read-only observation tapMISSINGARGUS rings are single producer, single consumer; argus_ring_pop consumes (argus_abi.h:506)An estimator must never pop a producer ring. A live feed needs a second, read-only ring filled by the ARGUS consumer (EST-4 scope).
Estimator isolation from authorityIMPLEMENTED patternomega Makefile:716-720 (nm -u refusal for the cost model); aienos argus_contain.c:293 (containment only on DETERMINISTIC confidence)No numeric confidence reaches authorization today. One injection point exists: AienosContainAuthorizer.decide (aienos_contain.h:223-227). Record as a watch item.
J-SpaceIMPLEMENTED (host reference), not wiredomega src/runtime/rx_jspace.c/.h; spec docs/06-jspace.md:50-62 (separate score dimensions incl. uncertainty, Pareto filter)docs/02-implementation-status.md:35 (dated 2026-09-23) still says no implementation. Discrepancy recorded.
CortexIMPLEMENTED (host reference), not wiredomega src/runtime/rx_cortex.c/.h (CX_OBSERVATION class, protection bits rx_cortex.h:38-50)
TURING T unit, held-out scoringIMPLEMENTEDomega docs/turing/TURING_YIELD_PROFILE_V0.md:21-29; src/turing/ty_qcont.h; records turing.q*.v0qworld (ty_qrecord.h:64-77) has no evidence-root field; adding one needs a v1 domain.
Information-gain experiment selectionPLANNEDdoctrine/DISCOVERY.md:273-274,335No code.
Physics Zero prediction needsPLANNEDdoctrine/DISCOVERY.md:222-233 (UNCERTAINTY_MODEL, PREDICTIVE_SCORE), ROADMAP M29 "calibrated prediction"This layer supplies the machinery; it is not Physics Zero.
Evolution ArenaPLANNED (spec only)docs/specs/EVOLUTION_ARENA_SPEC_V1.mdNo prediction or uncertainty dimensions; header still says PROPOSED and still calls omega #68 a draft (:8, :39). Stale.
FORGE physical evidenceIMPLEMENTED v1 (duration + success only); EXPERIMENTAL v2physics forge/forge_types.h:66-76; forge/v2/forge_substrate_v2.h:192-207v2 has temperature, energy with MEASURED / ESTIMATED source, confidence_ppm. No v2 records on disk.
Effect BrokerIMPLEMENTED but CONFLICTINGaienos crates/aienos-aegis/src/broker.rs:113-194 (Rust)Conflicts with the recorded C-target decision; out of scope here.
Aienux physical sensorsMISSINGThermal, power and clock sampling exists only as Omega test tooling.

3. Candidate real signals (EST-2)

SignalSourceSamplesEvidence bindingVerdict
CPU thermal zone 0, 1 Hzomega evidence/R15/raw/20260929T020536Z-ad8e1f2ea4e4-silicon/machine-state.ndjson and .../20260929T025735Z-3e9e53be3358-silicon/machine-state.ndjson (fields t, thermal_mc x7, spbm_uj, busy, gpu)1953 and 2009 lines, one continuous series each, max gap about 1.13 seach run's raw/SHA256SUMS, bound to the R15 receipt raw_digest_sha256Chosen. Two independent runs give a natural fit / held-out split. Load marks exist in machine-state-marks.txt. Produced by shell tooling (tools/r15_machine_state.sh), no Python.
Machine power (differenced spbm_uj)same filessamesameSecond candidate; cumulative counter must be differenced.
10 Hz telemetry (power_uw, nvml_mw)R15 per-trial .jsonlabout 225 samples per trial segmentsameRejected for EST-2: short disjoint segments.
research/r14-failure-modes/.../machine-1hz.log607 lines, 45 gaps over 3 snoneRejected: not digest-bound.

Honesty note: both runs were recorded on 2026-09-29, before this workstream existed. Their summary statistics had not been examined for estimation purposes when the EST-3 protocol was frozen, but the data are not blind in the CAL-0 sense. EST-3 therefore treats run B as held-out and reports it as "pre-existing, unexamined" evidence. A fresh collection after the freeze is the stronger test and is listed as EST-3b.

4. Doctrine lines that need tightening (ARCH-0020 section 6)

These are recorded here, not edited, because doctrine/ changes need their own reviewed change.

5. What must not be duplicated

6. Watch items

  1. AienosContainAuthorizer.decide accepts a pluggable verdict function; a probability-based authorizer could be injected there. ARCH-0020 forbids it.
  2. ARGUS STATISTICAL confidence class is reserved for ARGUS-5; it must not be fed by estimator output without a separate decision.
  3. docs/02-implementation-status.md is a week stale on J-Space and Cortex.
  4. EVOLUTION_ARENA_SPEC_V1.md activation hold still names omega #68 as a draft.

7. Claims re-checked by hand

ClaimResult
rx_semcomm.h:26 says Omega does not estimate uncertaintyconfirmed
PRD1 header and record layout (ty_prd.h:1-4)confirmed
rx_cm_calibrate at rx_costmodel.c:385confirmed
machine-state.ndjson line counts 1953 / 2009 and field namesconfirmed
evidence/R16/ holds final receipt 22d7a79a... and full qualification logsconfirmed
cost-model nm -u check at Makefile:716-720confirmed
mk/turing_qcont.mk standalone pattern, -ffp-contract=offconfirmed
digest rule SHA-256(domain, 0x00, bytes) at ty_qrecord.h:10confirmed
No kalman / covariance / innovation / BeliefState hits in omega, aien-architecture, aienosconfirmed

8. Calibration record (update 2026-10-01, omega d78fd11)

Three frozen calibration attempts exist. All three FAILED. Each record is kept as evidence; none is overwritten.

Attemptomega recordVerdictFault, from forensics
v1 (EST-3)#105, docs/estimation/receipts/est23-v1/FAILEstimator: heavy tails and volatility clustering (excess kurtosis 5.4). Not bias or overall variance (mean NIS 1.02).
v2#118 (8a56ace), receipts/est23-v2/FAIL at C1 pre-checkExperiment: 100 mC quantization, 80 % exact-zero changes on a quiet machine.
v3 (EST-3c)#129 (d78fd11), receipts/est3c-v3/FAIL at Phase A; sealed run NOT_RUNBest family (adaptive-scale Student-t, quantization-aware) met every one-step rule in sample but failed ten-step 95 % coverage (0.809, band 0.90-0.99). D1 multi-step changes are persistent (variance ratio at 10 steps 2.14); the independent-increment horizon rule cannot represent it.

9. Calibration record v4 (update 2026-10-01, omega 6ff7c30)

v4 ends INCONCLUSIVE. All three data collections the frozen protocol allows were voided because other work ran on the Spark inside the measurement windows, so v4 gives no calibration verdict. EST-3 stays FAILED (v1-v3 above). Record: omega #153 (6ff7c30), docs/estimation/receipts/est-v4/RESULT.md.

AttemptSeeds D1 / D2Phase ASealed runWhy void
10xE5C4D1 / 0xD2E5C4PASS (G1)PASSAnother lane's multi-core host builds/tests and a QEMU run in both windows; host tests at ~10:05Z in D2
20xE5C4D2 / 0xD2E5C5PASS (G1)PASSA ~2-min host build in D2; foreign builds and single-core tests seen in both windows
30xE5C4D3 / not collectednot runNOT_RUNA foreign host test suite started 4 s after the quiet flag was taken; fails the validity standard fixed before attempt 3

10. Calibration record v5 (update 2026-10-05, omega 30c65a3)

v5 ends HELD_OUT_FAIL. The sealed held-out run D2 was collected once in a clean window and scored once; the selected family was not calibrated on it. EST-3 stays FAILED (v1-v3), v4 stays INCONCLUSIVE. Record: omega #170 (merged 30c65a3), docs/estimation/receipts/est-v5/RESULT.md, receipt receipt-7f0bb7018d066bc438e7a8a9bf87c0d45615f60be2d029b6ab5194168e3db3d1.json, tag est-v5-d2-heldout-fail (14fc76a).