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 / arena-x / ARENA_X_DISCOVERY_AUDIT.md

175 lines · 13979 bytes Raw Blame History Rendered
1# ARENA-X discovery audit
2
3> **NOT A MASTER PLAN. Design notes only.** This is a read-only audit of what already exists that ARENA-X
4> could reuse, what is missing, and where leaks could happen. Nothing here authorizes code or runtime work.
5
6ARENA-X has two data worlds: an arithmetic world (integers with structure observations) and a geometric
7world (lattice counts). The audit read code first and used docs only for navigation. Nothing was built or run.
8Where a doc disagrees with code, code wins and the doc is marked stale.
9
10## 1. Headline finding
11
12**The scorekeeper exists, the player does not.** Omega can score a hypothesis fairly (sealed data, frozen
13evaluators, description-length gain, receipts, failure records). It has no general discoverer: no program that
14proposes hypotheses from data, checks them on held-out data inside its own loop, and picks among them by
15description length. The two real searches are narrow enumerations over a five-operation, one-input,
16one-output, unsigned 64-bit vocabulary that stop at the first exact fit.
17
18**Any gate that needs a discoverer is blocked until one is built.** Scoring a discoverer that does not exist
19would only produce records about fixtures. The existing scoring of search runs (TY-2) measures how predictable
20the search process is, not what was discovered.
21
22## 2. Current HEADs
23
24| repo | origin/main sha | date | subject or note |
25|---|---|---|---|
26| omega | b608dff6159903a371ff0f83ee95daa301b5110a | 2026-09-30 | merge of PR #104, docs only |
27| aien-architecture | f2cf579d083 | 2026-09-30 | merge PR #65 (belief-estimation ADR 0020) |
28| aien-sovereign-core | 0df7c321c150 | 2026-09-29 | operator authentication before cockpit controls (#132) |
29| aien-protocols | 7ac6facb630c | 2026-09-23 | versioning policy, changelog, consumer pins (#7) |
30| benchmarks | 959dedd24c03 | 2026-09-23 | merge PR #12 |
31| cortex-rs (standalone) | 0606636f110d | 2026-09-23 | archival pointer to canonical home |
32
33Notes: `src/estimation` and `tests/estimation` do not exist on omega main. The forgejo remote errored on every
34repo except aien-architecture; shas are from the GitHub remote. Standalone cortex-rs is archived; the canonical
35copy is `aien-sovereign-core/crates/cortex-rs`. The benchmarks repo is performance-only and holds Python helpers.
36
37## 3. Reusable components
38
39Legend: IMPLEMENTED, PARTIAL, PLANNED, MISSING. Paths are omega paths unless a repo is named.
40
41| Component | Status | Evidence (file : function) |
42|---|---|---|
43| Enumerative synthesizer | PARTIAL (narrow) | `src/omega_synthesis.c : omega_synthesize`; 15-row op bank, depth 1 to 2, equivalence pruning, first exact fit wins |
44| Crumbline search | PARTIAL (narrow) | `src/crumbline/cl_search.c : cl_search_run`; ambiguity scan, external one-bit oracle, robust fallback; unsupported unless 1 input and 1 output |
45| Learner process | IMPLEMENTED | `tools/crumbline_learner.c`; links no generator or label |
46| Task definition | PARTIAL | `src/omega_program.c : omega_task_evaluate_candidate`; exact match on listed pairs, no held-out split in the struct |
47| Library learning | PARTIAL | `src/omega_discovery.c : omega_discover_abstractions`; works on machine-code bytes, not on hypotheses about data; `src/omega_library.c : omega_library_insert` |
48| Table model code + scoring | IMPLEMENTED | `src/turing/ty_model.c : ty_model_encode, ty_model_score`; small symbol tables only |
49| Discrete description length | IMPLEMENTED | `src/turing/ty_math.c : ty_dl, ty_gain, ty_ubits_ratio`; integer micro-bits, overflow-checked |
50| Continuous scoring | PARTIAL | `src/turing/ty_qcont.c : ty_qcont_bits`; one family only, no model-length path |
51| Prediction records | IMPLEMENTED | `src/turing/ty_prd.c : ty_prd_validate`; `tc_pstream.c`; Brownian binariser `tools/brownian/brw_tps_adapter.c` |
52| Evidence records and digests | IMPLEMENTED | `src/turing/ty_record.c`, `ty_qrecord.c`, `field.c`; `src/omega_canonical.c`, `src/sha256.c` |
53| Split manifest | IMPLEMENTED | `ty_record.c` (ysplit record); `calibration/scripts/make_dataset_manifest.sh` |
54| Measurement profiles | IMPLEMENTED | `calibration/profiles/Turing-profile-v1.1.toml` + `.sha256`; `src/turing/ty_profile.c` |
55| Sealing, freeze, blinding | IMPLEMENTED (shell, kernel namespaces) | `calibration/docs/BLINDING_PROTOCOL.md`; `freeze_candidate.sh`, `generate_sealed_data.sh`, `candidate_env.sh`, `evaluator_env.sh`, `verify_holdout_separation.sh`; EXP-001 FAIL and EXP-001R PASS both reached terminal receipts |
56| Failure and void records | IMPLEMENTED | `calibration/docs/FAILURE_REPORTING.md`; `record_void.sh`; void receipt schema |
57| T gain | IMPLEMENTED | `ty_math.c : ty_gain`; `tools/turing_yield.c` |
58| Energy metering | PARTIAL | `src/turing/ty_energy.c` (conserving attribution); a computed T-per-joule record type was not found |
59| Selectors, replay | PARTIAL | `history_selector.c`, `field_select.c`, `replay.c`; matvec realization specs only; no replay of a discovery run |
60| Runtime promotion | IMPLEMENTED (runtime only) | `src/runtime/rx_generation.h`; no promotion of a hypothesis by held-out description length |
61| Receipt shape | IMPLEMENTED (Rust, legacy) | `aien-protocols/crates/aien-evaluation-protocol/src/lib.rs`: EvaluationPlan, EvaluationReceipt, frozen-plan invariant |
62| Sealed side + ledger + ladder | IMPLEMENTED (Rust, legacy) | `aien-sovereign-core/crates/crumbs/src/{sealed,ledger,promotion,digest}.rs`; no description-length scoring |
63| Memory candidates + promotion | IMPLEMENTED (Rust, legacy) | `aien-sovereign-core/crates/cortex-rs/src/{promotion,db,models}.rs`; thresholds are hand-set confidence numbers; disputed and invalidated states are never written |
64| Gate receipt pattern | IMPLEMENTED (Rust, legacy) | `aien-sovereign-core/crates/aien-proof/src/evidence.rs`, `gate.rs` |
65| J-Space, relational paths | MISSING / PLANNED | `docs/06-jspace.md`, `docs/10-relational-path-engine.md`; no canonical code |
66
67Rust items are design references only. The no-Rust rule means any port targets C.
68
69Stale doc: the TURING current-state row saying program realize is undefined is wrong. It is defined in
70`src/omega_program.c : omega_program_realize`.
71
72## 4. Missing primitives
73
741. **Discoverer.** A proposer that builds hypotheses from a grammar plus observations, evaluates on held-out
75 data inside the loop, and selects by description length. Nothing like it exists (no evolutionary, stochastic
76 or description-length-guided search anywhere in source).
772. **Exact big-integer and rational arithmetic.** Today: u64 wrap-around plus a u128 accumulator. No
78 arbitrary precision, no rational type, no gcd. Both worlds need exact counts and exact ratios.
793. **Multi-input, multi-output expressions.** Omega program bodies are ordered chains of unary steps. There are
80 no multivariate expressions, sums or loops over data, and no predicates as first-class hypotheses. Some
81 opcodes (DIV, EQUAL, LESS_THAN, NOT) exist in the enum but no vocabulary uses them.
824. **Program-shaped model cost.** Profile v1.1 forbids programs as models and defers a continuous model length.
83 A new measurement profile id is required (the profile rule forbids redefining an existing one). It must fix
84 the model-length rule, the free background list, baseline and margin, and pass the digest-refusal checks.
855. **Commit-then-reveal for answers.** Freeze manifests hash artifacts before sealed data exist, but there is
86 no salted commitment and no reveal record type for predictions or answers.
876. **T per joule as code.** The definition exists as text; the metering exists; the computed record does not.
887. **Held-out scoring for structure claims.** Scoring covers symbol tables and one continuous family. A
89 claim about structure in integers, or a lattice-count law, has no scoring path.
90
91## 5. Leakage channels
92
93The audited repos hold no benchmark content. The risks are indirect.
94
951. **Names are a channel.** Any file name, gate token, receipt field, branch name, PR title or doc heading that
96 names the target is itself a leak to any system with repo access, including an evaluated discoverer or an
97 outside AI reviewer. Recommendation: use neutral codenames for everything a discovery run could index
98 (gate tokens, dataset ids, family ids, spec file names). Keep the mapping from codename to meaning in
99 evaluator-private notes. **Drake decides.**
1002. **Answer-bearing evaluator notes.** Notes that state what the data is built to contain should live in a
101 private location like the Brownian sealed repo, never in a public repo and never pasted into an AI tool
102 before the sealed run ends. Where they live is **Drake's decision.**
1033. **Public number-system docs to fence** (hardware-realization math, but visible to anything with repo access):
104 - `docs/plans/mixed-algebra/MIXED_ALGEBRA_THEORY.md`, `PRIOR_ART.md`, `MIXED_ALGEBRA_CURRENT_STATE.md`
105 - `docs/adr/0019-mixed-algebra-realization.md`
106 - omega: `spec/mixed-algebra-phase-twin.md`, `src/algebra/realize_rns.c`, `src/algebra/realize_common.h`,
107 `src/algebra/phase_twin.h`, `tests/algebra/test_phase_twin.c`, `tests/algebra/ma_digital_v1_gate.c`
108 - omega: `tests/turing/qcont_kat_gen.c` (defines a numeric constant to 36 digits)
109 - `docs/turing/protocols/turing-instrument-calibration-validation-protocol-v1-0.tex` was not read line by
110 line; recheck before any ARENA-X spec is published.
1114. **Crumb conformance vectors.** `tests/crumbline/vectors/v001..v009.crb` are concrete function-fitting
112 examples and were not read in detail. Check them before ARENA-X reuses the format.
1135. **Burned data.** `calibration/scripts/burned_seeds_exp001.txt` lists seeds already seen; burned development
114 data lives outside the repo. Any ARENA-X seed list must refuse these.
1156. **Incidental words** (ring-buffer wrap, UI names in sovereign-core) are harmless but should be screened by
116 grep before any dataset or spec is indexed by a discovery run.
117
118Existing separation to copy: candidate and evaluator run in separate environments (BLINDING_PROTOCOL.md);
119sealed data does not exist until the freeze commit does, with seeds derived from that commit hash; the learner
120oracle returns one verdict byte and never labels or counterexamples; Brownian publishes a digest commitment
121(`docs/brownian/PROFILE_COMMITMENT.txt`) before the run and the evaluator files after it; one attempt per
122profile, no goalpost moves, a departures log.
123
124## 6. Proposed file ownership
125
126| Area | Owner | Contents |
127|---|---|---|
128| Public docs (aien-architecture, `docs/plans/arena-x/`) | docs | this audit, contracts, receipt formats, gate definitions under neutral codenames |
129| Public C tools (omega, offline, CPU-only, outside `src/runtime/`) | C tools | exact arithmetic, discoverer, program-cost scorer, commit-then-reveal record, T-per-joule record, dataset manifest |
130| Public profiles | docs + C tools | new profile toml with `.sha256` sidecar |
131| Evaluator-private (Brownian-sealed-style private repo) | evaluator | codename map, family definitions, data generators, answer keys, sealed seeds, evaluator notes |
132
133Rule: nothing the discoverer can read may explain what the sealed data was built to contain.
134Language rules: C plus shell, no Rust, no Python, no systemd. **[Language rule superseded 2026-10-01 by [ADR 0024](../../adr/0024-rust-scaffolding-omega-destination.md): Rust is scaffolding, Omega is the destination, C only where hardware-justified. No Python and no systemd still hold.]**
135
136## 7. Dependency graph
137
138```
139 [discoverer] [exact arithmetic] [program-cost profile id]
140 \ | /
141 +-------------+------------------+
142 |
143 [dataset seal] <-- neutral codenames, private evaluator repo
144 |
145 [baselines] (table models, trivial programs; frozen before any run)
146 |
147 [gate 1] -> [gate 2] -> [gate 3] ... (in order, one attempt per profile)
148 |
149 [unification] (arithmetic world and geometric world under one scorer)
150 |
151 [active selection] (choosing what to observe next)
152```
153
154Holds: R16 is not closed, and the hold on `src/runtime/` stands. Evolution Arena spec section 0.1 allows
155documents only until its prerequisites clear, and ADR 0020 (EST-4 onward) waits for R16. An offline,
156CPU-only, docs-plus-C-tool program outside `src/runtime/` looks compatible. **No live Cortex promotion is
157possible before R16**, and no runtime loop may consume ARENA-X output.
158
159## 8. Suggested first milestones (small, falsifiable)
160
1611. **Codename and fence decision.** Drake picks codename policy and evaluator-private location. Falsifiable:
162 a grep of the public repos for the private codename map returns nothing.
1632. **Exact arithmetic library in C.** Big integer and rational with known-answer tests against hand-computed
164 values. Falsifiable: all vectors match; overflow and divide-by-zero refuse rather than wrap.
1653. **Profile draft with a new id.** Program-shaped model length, free background, baseline, margin, digest
166 sidecar. Falsifiable: the tools refuse a one-byte edit; an existing profile is untouched.
1674. **Trivial discoverer baseline.** Extend the enumerative search to two inputs and held-out scoring by
168 description length inside the loop, on synthetic fixtures with no target content. Falsifiable: it recovers
169 a planted small program on fixtures and reports no gain on pure noise.
1705. **Commit-then-reveal record.** Salted commitment, reveal record, verifier. Falsifiable: a changed answer
171 after commitment fails verification.
1726. **Dry-run seal on neutral fixtures.** Run the freeze and blinding scripts end to end on toy data, one
173 attempt, void path exercised. Falsifiable: the auditor re-derives seeds and hashes with no mismatch.
1747. **T-per-joule record.** Computed record from existing metering. Falsifiable: attribution conserves energy
175 on a replayed interval.