omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / docs / turing / TURING_W0_PROPOSAL.md
| 1 | # TURING Wave 0: proposal (A-K), revision 2 (+ K.7 verdict and reframe, 2026-09-29) |
| 2 | |
| 3 | Update 2026-09-30: R16 is CLOSED (omega#112, `3dd5eaa`, all gates G1 to G8 PASS) and the `src/runtime/` edit freeze is LIFTED (aien-architecture #70, `e89ba94`). Statements below that the runtime is frozen "until R16" describe the state when this was written. |
| 4 | |
| 5 | Inputs: TURING_CURRENT_STATE.md (live audit, omega 4b217aa, aienos 603c91d), TURING_PRIOR_ART_MATRIX.md (30 sources opened), |
| 6 | polyglot review def197d (fixes in progress on feat/polyglot-0), Fable review of revision 1 (9 REQUIRED items, adopted in |
| 7 | full; they override revision 1 wherever the two differ). Standing rules applied: C (+asm), no Rust, no Python, no outside |
| 8 | deps; OSC-0B identity freeze (omega#76) open; src/runtime/ frozen until R16 closes (R16 at W5, omega#68 draft). |
| 9 | |
| 10 | ## Revision log (revision 1 -> 2) |
| 11 | |
| 12 | | Fable item | Where it landed | |
| 13 | |---|---| |
| 14 | | 1. Name the one contract digest | K.1: no existing digest names the Omega-X contract; V0 defines a PROVISIONAL contract_digest (not an Omega semantic id) and shows all 10 algebra realizations carry it | |
| 15 | | 2. spec_id stable across rebuild | F: build_digest, git_commit and toolchain moved from the spec to the evidence record | |
| 16 | | 3. Canonical encoding + supersedes | K.5: every record uses the OMG0 layout and the repo SHA-256 with a domain prefix; decisions carry `supersedes` | |
| 17 | | 4. No dependency on feat/polyglot-0 | F, I, J: Wave 1 adapts oma_rz_impl only (10 candidates); the omx_candidate adapter follows that branch's merge (28 later) | |
| 18 | | 5. Post hoc, outside the runtime | D, F: Wave 1 records are built from existing receipts by new code under src/turing/; no selector in src/runtime writes records yet | |
| 19 | | 6. Pre-register the kill test | K.4 (thresholds, justification, verdict rule); K.2 (Field selection rule in one paragraph) | |
| 20 | | 7. Exact control arm | K.3 | |
| 21 | | 8. Split H | H1 (selectors, observation off, runnable now) and H2 (observation levels, blocked on the runtime freeze); budgets absolute vs ARGUS-off | |
| 22 | | 9. Tiers are PROPOSED | F: tier stored as text plus the ADR revision it came from | |
| 23 | | Optional: retire the plane name | The earlier name for the observation plane is gone from code and from this doc; it is "observation levels on ARGUS" | |
| 24 | | Optional: cpu frequency + quiet flag | F: both are evidence fields; receipts that did not record them say "not recorded" | |
| 25 | | Optional: seeded shuffle | H1: interleaving order comes from a seeded shuffle whose seed is written into the run receipt | |
| 26 | |
| 27 | ## A. Live implementation audit (summary; detail in TURING_CURRENT_STATE.md) |
| 28 | - Realizations: IMPLEMENTED twice, unlinked: oma_rz_impl (src/algebra/realize_common.h, 10 algebra realizations, merged #78) |
| 29 | and omx_candidate (src/polyglot/omx_lang.h, 18 language candidates, feat/polyglot-0, unmerged). |
| 30 | - Selection: three selectors: rx_costmodel (8 fixed arms, matvec only, in the frozen runtime), oma_select (stand-in), |
| 31 | polyglot_explain (unmerged branch). |
| 32 | - Evidence: receipts in evidence/MIXED_ALGEBRA (identified by the SHA-256 of their bytes, which ma2_select_receipt.json |
| 33 | already records per source), evidence/POLYGLOT (branch); ADR 0019 (PROPOSED) defines tiers E0-E4. |
| 34 | - J-Space (rx_jspace.h) already separates semantic identity from physical realization with measured cost. |
| 35 | - Observation: ARGUS (src/runtime/rx_argus.{h,c}, aienos native/argus/argus_abi.h) = per-thread lock-free rings, counters |
| 36 | for routine, full events on change, critical never dropped, others counted as TELEMETRY_DROPPED. 2.25 ns/use, |
| 37 | +2.1% emit-only, +3.9% shipped default on R8 (target 2%). Visor does not read ARGUS. Security events only. |
| 38 | - Fabric-like: rx_semcomm (need -> projection -> deltas), OMG0 canonical encoding. No dialects, no round-trip tests. |
| 39 | - Identity: program id v2 binds canonical body+contract, cannot name Omega-X (scalar only). |
| 40 | |
| 41 | ## B. Duplication / conflict report |
| 42 | | Proposed | Would duplicate | Decision | |
| 43 | |---|---|---| |
| 44 | | Observation plane | ARGUS + causal crumbs | New ARGUS event class, not a new plane. Name in code and docs: "observation levels on ARGUS" | |
| 45 | | Field selector | rx_costmodel, oma_select, polyglot_explain | One decision-record format all three will write (after the runtime freeze lifts for rx_costmodel). The Wave 1 kill-test arm (tie rule) FAILED K.4 and is retired (K.7); the Field keeps no ranking rule of its own, it records choices made by the control arm's rule | |
| 46 | | Turing Fabric | rx_semcomm, rx_capq "Fabric", aienos Personal Fabric | Deferred to Wave 5; built as rx_semcomm dialects; code name "dialect", never "fabric" | |
| 47 | | Content-addressed store | receipts, Cortex, plan cache, J-Space chains, Store v1 | None. Field records are digest-named, beside existing receipts | |
| 48 | | Explanation | Visor why, polyglot_explain | Extend Visor to read decision records (Wave 8) | |
| 49 | | BuildIdentity | TRUST-1 BuildIdentityV1, OSC-0B II.9 | Reference whatever lands; V0 stores git commit + build digest as plain evidence fields | |
| 50 | Conflicts with brief: Rust and Python experiments (rejected by standing rule); models as Fabric participants imply outside |
| 51 | runtimes (deferred); new semantic ids (blocked by OSC-0B; V0 uses a PROVISIONAL contract digest, K.1). |
| 52 | |
| 53 | ## C. Prior-art kill test |
| 54 | Every individual mechanism exists: content addressing (Git, Unison), provenance (SLSA, Atomic), multi-implementation + |
| 55 | autotuning (PetaBricks, SPIRAL, StarPU, Ansor/MetaSchedule), accuracy-aware selection (ApproxHPVM), heterogeneous dispatch |
| 56 | (HPVM, IREE, IRIS-ORNL, TVM), analog compilers (Arco, Legno, DIANA/HTVM), ternary kernels (BitNet, T-MAC), tracing (Dapper, |
| 57 | LTTng, eBPF), sub-text model communication (CIPHER, Cache-to-Cache, LatentMAS). |
| 58 | Selection itself is NOT novel: the Wave 1 kill test (K.4, K.6) FAILED on selection quality, and the Field now ranks |
| 59 | with the control arm's rule (K.7). Survives only as candidate novelty: (1) every selection wrapped in an immutable |
| 60 | decision record citing receipts that anyone can re-hash and replay; (2) number system as a contract-verified axis next to |
| 61 | language and hardware; (3) compact dialects gated by round-trip (later). Kill criterion: pre-registered in K.4; verdict K.7. |
| 62 | |
| 63 | ## D. Responsibility boundaries |
| 64 | Omega = meaning + contract. Field = records linking contract -> realization specs -> evidence -> decisions (data, not a |
| 65 | subsystem). Selection = existing selectors, all writing Field decision records once they can (rx_costmodel only after the |
| 66 | runtime freeze lifts). **Wave 1 records are produced outside the runtime, post hoc, from existing receipts**, by new code |
| 67 | under src/turing/; nothing in src/runtime, src/algebra or src/polyglot changes. ARGUS = observation. Visor = explanation |
| 68 | from records. J-Space = exploring candidates. Cortex = learned summaries only, never the store. Compute Fabric = placement |
| 69 | (unchanged). Dialects (later) = rx_semcomm. AEGIS/Effect Broker untouched. |
| 70 | |
| 71 | ## E. First semantic operation |
| 72 | Omega-X exact ternary GEMV (spec/mixed-algebra-ma2.md; spec/polyglot-0.md on the branch). Exact contract. Wave 1: the 10 |
| 73 | algebra candidates. Later: +18 language candidates. Known workload-dependent winner (int8 when W fits L2, 2-bit ternary |
| 74 | DRAM-bound), which `turing-field` must reproduce from stored evidence alone. |
| 75 | |
| 76 | ## F. Field V0 data model (C, new dir src/turing/, no runtime edits) |
| 77 | - `turing_contract`: name, statement, exactness, overflow bound, oracle, source, max_n. contract_digest (K.1). |
| 78 | - `turing_rz_spec`: contract_digest, rz_id, algorithm, algebra, representation, precision, language, backend, |
| 79 | machine_class, max_n, exact, weak_baseline. **No build fields.** spec_id = digest of the canonical bytes; identical |
| 80 | whether built from the oma_rz_impl registry or reconstructed from a receipt's realizations list. |
| 81 | - `turing_evidence`: spec_id, workload (n, m, sparsity), receipt_digest (SHA-256 of the receipt file), run_id, tier as |
| 82 | text (e.g. "E2") plus tier_source ("ADR 0019 PROPOSED, aien-architecture PR #58 head ed4474a"), verified, forced blocks, |
| 83 | retries, samples, median/q25/q75/min ps, pack ps, noise, weight and working-set bytes, **build_digest, git_commit, |
| 84 | tree_dirty, toolchain, cpu_freq_state, quiet_flag, thermal**. The MA-3 receipts did not capture cpu frequency or the |
| 85 | quiet flag, so V0 writes "not recorded by this receipt"; H1 receipts must record both. The receipt path is where to find |
| 86 | the bytes and is not part of the digest. |
| 87 | - `turing_decision`: contract_digest, selector id, constraint set, query, footprint used (exact or nearest), every |
| 88 | candidate spec_id with a reason code and its cost, chosen, verdict, tie resolution (always none since K.7), margin and |
| 89 | noise band (recorded, not used to choose), cited evidence digests, |
| 90 | `supersedes` (digest of the decision it replaces, or none). decision_id = digest. Never mutated. |
| 91 | - Adapters: oma_rz_impl registry (read-only) and MA-3 bench receipts (read-only, post hoc). omx_candidate adapter is a |
| 92 | follow-up after feat/polyglot-0 merges. |
| 93 | - Tool `turing-field` prints the history view (git log analogue: commit = decision, parent = supersedes, tree = cited |
| 94 | evidence, blob = receipt), the winners per shape, the selector comparison and the kill-test dry run. |
| 95 | |
| 96 | ## G. Observation levels on ARGUS (needs a src/runtime edit: NOT in Wave 1) |
| 97 | Levels map onto ARGUS: HOT = existing counters; OBSERVED = new ARGUS class REALIZATION (one event per selection or |
| 98 | promotion, never per kernel call: carries decision_id + spec_id + 3 counters); FORENSIC = existing full events + decision |
| 99 | record dump. Required (never drop): promotions, effects, commits (already ARGUS critical). Reader: ARGUS ring -> Field |
| 100 | evidence file (async, off hot path). Budgets are absolute against ARGUS off, not stacked on today's ARGUS cost (which is |
| 101 | already +3.9% against a 2% target): HOT <= 0.5% median vs ARGUS off on Omega-X; OBSERVED <= 2% vs ARGUS off. If ARGUS |
| 102 | itself already exceeds a budget, the level fails; that is reported, not waived. |
| 103 | |
| 104 | ## H. Experiments |
| 105 | - **H1 (runnable now, observation off):** Omega-X x {10 candidates now, 28 later} x shapes S1-S4 (K.4) x selector |
| 106 | {Field, control arm K.3}. Pinned cores, interleaved in an order drawn from a seeded shuffle whose seed is written into |
| 107 | the run receipt, N >= 20, .spark-quiet up, cpu frequency state and quiet-flag status recorded per run, Grok checks the |
| 108 | statistics. Scored by K.4. Prerequisite for the 28-candidate run only: polyglot harness fixes (review def197d) merged. |
| 109 | - **H2 (blocked on the runtime freeze):** observation levels {off, HOT, OBSERVED, FORENSIC} against the G budgets, plus a |
| 110 | flood test proving required events are never dropped. |
| 111 | |
| 112 | ## I. Agent wave 1 (non-overlapping); manifest in TURING_AGENT_WAVE_1.md |
| 113 | - FIELD: owns src/turing/field.{h,c}, src/turing/field_select.c, src/turing/replay.c, src/turing/select.h, |
| 114 | tools/turing_field.c, tests/turing/; read-only src/algebra and evidence/MIXED_ALGEBRA. |
| 115 | - CONTROL ARM: owns src/turing/history_selector.c; read-only everything else. |
| 116 | - REVIEW (hostile) after both. Observation lane only after Drake's ruling on the runtime freeze. Fabric: not in this wave. |
| 117 | - Shared file: the TURING block at the end of the Makefile (integration owner). Nothing touches feat/polyglot-0. |
| 118 | |
| 119 | ## J. Gates |
| 120 | - TURING_W0_ARCHITECTURE_VALID: this doc + Fable review + Drake go. |
| 121 | - ONE_MEANING_MULTIPLE_REALIZATIONS (Wave 1 scope: 10 candidates; 28 after polyglot merges): every candidate |
| 122 | reconstructed as a spec record from existing receipts; one contract_digest across all; spec_id stable across rebuild; |
| 123 | every decision cites receipt digests that verify; `turing-field` shows the S1 vs S4 winner flip from stored evidence. |
| 124 | - OBSERVATION_OVERHEAD_ACCEPTABLE: G budgets, flood test (H2). |
| 125 | - Kill gate: K.4, scored on H1, reported either way. |
| 126 | |
| 127 | ## K. Wave 1 specification |
| 128 | |
| 129 | ### K.1 Contract digest (Fable item 1) |
| 130 | Searched on omega main 4b217aa: src/algebra (oma_rz_impl registry, realize_common.h), spec/mixed-algebra-ma2.md, |
| 131 | spec/mixed-algebra-reference.md, evidence/MIXED_ALGEBRA/*.json. **No digest names the Omega-X contract.** The contract |
| 132 | exists only as C comments plus `oma_rz_oracle`; receipts carry an `operation` text string whose wording differs between |
| 133 | the bench receipts and the select receipt, so it cannot serve as identity. Program id v2 cannot express a GEMV, and OSC-0B |
| 134 | (omega PR #76) freezes new Omega semantic ids. |
| 135 | |
| 136 | Decision: V0 defines `contract_digest` = SHA-256("turing.contract.v0.provisional" 0x00 || OMG0 bytes of the contract |
| 137 | record: name, statement, exactness, overflow bound, oracle, source, max_n, and a status attribute saying PROVISIONAL). |
| 138 | Value: `75772afe8a98f73064f2933d76bc58f7bfe5b9353eb40b703e173b4cd3f22b5f`. It is **PROVISIONAL and not an Omega semantic |
| 139 | id**: the domain prefix makes it differ from any SHA-256 over OMG0 bytes, it is never written into an Omega object, and |
| 140 | it is replaced by whatever id OSC-0B assigns to Omega-X. All 10 oma_rz_impl entries are registered against the single |
| 141 | contract in realize_common.h (each `exact = 1`); test-turing checks that all 10 spec records carry this digest. |
| 142 | |
| 143 | ### K.2 Field selection rule (Fable item 6) |
| 144 | **Superseded 2026-09-29 by K.7.** This paragraph describes the retired v0 rule that the kill test failed; it is kept |
| 145 | unchanged as the pre-registered text. The live rule is in K.7. |
| 146 | |
| 147 | The Field selector considers every spec in the store and records a reason code for each: CONTRACT_MISMATCH if the spec |
| 148 | names another contract digest, NOT_EXACT, MAX_N if the query's n exceeds the spec's limit; it then keeps only evidence |
| 149 | rows whose receipt file still hashes to the recorded digest (re-hashed at decision time; otherwise RECEIPT_UNVERIFIED), |
| 150 | picks the measured cell nearest the query (|log2 n ratio| + |log2 m ratio| + 4 x sparsity difference, so sparsity counts), |
| 151 | drops candidates with an unverified run (UNVERIFIED_RUN), a forced contention block (CONTENTION_FORCED) or a tier outside |
| 152 | {E2, E3, E4} (TIER), ranks the rest by mean per-call cost over receipts, computes a noise band (the larger of within-run |
| 153 | and across-run spread of the cheapest and the runner-up), and when more than one candidate lies inside the band resolves |
| 154 | the TIE by ADR 0019 section 9.1 (incumbent, else the reference R1_plain, else the cheapest). The decision cites every |
| 155 | evidence digest it used. **How it differs from the control arm:** it filters on contract, exactness, receipt integrity, |
| 156 | verification and tier with reason codes; it is sparsity-aware through the nearest-cell metric; it refuses to separate |
| 157 | candidates inside the noise band and prefers the reference there; it cites evidence. **Plainly:** on the stored MA-3 data |
| 158 | the ranking step is the same "cheapest measured mean" that the control arm uses. Every filter passes every candidate on |
| 159 | the stored grid, so apart from the tie rule the Field selector's extra content is the audit trail. The only place the |
| 160 | rules can choose differently on this data is the tie rule, and K.6 shows it choosing worse there. |
| 161 | |
| 162 | ### K.3 Control arm (Fable item 7) |
| 163 | StarPU-style history-based model, in C (src/turing/history_selector.c). State: per (spec_id, footprint bucket) a count |
| 164 | and running mean of observed per-call cost. Footprint = the data sizes (n, m) plus the pack mode, as StarPU hashes a |
| 165 | codelet's buffer sizes; sparsity changes values, not sizes, so it is not in the footprint. Eligible = specs that can |
| 166 | execute the query (n <= max_n). Cold start: while any eligible spec has zero observations in the bucket, choose the next |
| 167 | one in a round-robin order that is a seeded Fisher-Yates shuffle of the spec indices (splitmix64, seed recorded). After |
| 168 | that: the minimum running mean (lowest index on an exact tie). No noise band, no tie rule, no receipt citations. Warm |
| 169 | mode (the K.4 comparison) loads every stored evidence row as an observation, so both arms see the same information. |
| 170 | |
| 171 | ### K.4 Kill test, pre-registered (Fable item 6) |
| 172 | Shapes (sparsity 0.30): S1 4096 x 64 (256 KiB int8 W, L2-fit), S2 16384 x 64 (1 MiB, L2 edge), S3 4096 x 4096 (16 MiB, |
| 173 | L3/DRAM), S4 16384 x 4096 (64 MiB, DRAM-bound); both pack modes (once amortized, per call): 8 decisions per run. |
| 174 | - Regret of a decision = cost(chosen) / cost(oracle) - 1, where cost = mean per-call cost of the exact cell over every |
| 175 | receipt and oracle = the cheapest verified candidate. Raw regret; no discount for noise. |
| 176 | - **Q1 selection quality:** Field mean regret <= control mean regret + 0.02 AND Field max regret <= 0.10. Scored twice: |
| 177 | in-sample (control warm on the same receipts) and leave-one-cell-out (the queried cell's evidence withheld from both). |
| 178 | - **Q2 replayability:** fraction of Field decisions whose cited receipts verify = 1.00 (any failure fails Q2). |
| 179 | - **Verdict:** FAIL if Q1 or Q2 fails: Turing selection is integration-only and stays a documentation concept. |
| 180 | "BEAT on quality" if Q1 and Q2 hold and the Field mean regret is lower than the control's by more than 0.02 in either |
| 181 | scoring. Otherwise "SURVIVES on explainability at equal quality", which the C criterion allows but which is not a quality |
| 182 | win and is reported as such. |
| 183 | - **Why these numbers:** 0.02 is the 90th percentile of within-run noise (q75-q25)/median in the MA-3 run 1 cost table |
| 184 | (0.019); a gap smaller than that is not a measurable difference. 0.10 is the smallest cross-family gap MA-2 reports as a |
| 185 | decisive loss (binary vs packed forms at m <= 64: 1.1x); a selector that exceeds it on any shape has picked a |
| 186 | realization the evidence already calls wrong. |
| 187 | - The thresholds are fixed in tools/turing_field.c before any comparison was run and may not change after results; |
| 188 | any rule change must be registered here first and the dry run re-reported. |
| 189 | |
| 190 | ### K.5 Canonical bytes and ordering (Fable item 3) |
| 191 | Every record (contract, spec, evidence, decision) is laid out as an OMG0 object by the existing |
| 192 | `omega_canonical_encode` (src/omega_canonical.c: magic OMG0, version, kind, attributes sorted by key with u16 big-endian |
| 193 | lengths, relations sorted by kind then target, constraints, payload). Values are text; integers in decimal; fractions as |
| 194 | parts per million. Decision candidates are relations DEPENDS_ON(spec_id). Cited evidence (since K.7): attribute |
| 195 | `cite_count` plus one DERIVED_FROM relation to the cite-set digest = SHA-256("turing.citeset.v0" 0x00 || the cited |
| 196 | evidence digests sorted bytewise), so a record can cite a whole footprint (80 rows on the stored grid) within the OMG0 |
| 197 | limit of 64 relations; decision domain `turing.decision.v1`. (Wave 1 v0 used one DERIVED_FROM per evidence digest.) |
| 198 | Digest = SHA-256(domain || 0x00 || OMG0 bytes) using the repo's own src/sha256.c; domains |
| 199 | `turing.contract.v0.provisional`, `turing.spec.v0`, `turing.evidence.v0`, `turing.decision.v1`, `turing.citeset.v0`. |
| 200 | The prefix separates Field digests from Omega semantic ids (plain SHA-256 of OMG0 bytes). Ordering: a decision names the one decision it |
| 201 | replaces in `supersedes`; the current decision for a (contract, query) is the one nothing supersedes. Two decisions |
| 202 | superseding the same parent is a recorded fork, resolved only by a later decision that supersedes one of them. |
| 203 | |
| 204 | ### K.6 Wave 1 result on stored data (dry run of K.4; H1 is the binding run) |
| 205 | Recorded FAIL, kept permanently. The retired v0 selector (src/turing/field_select_v0_retired.c) still reproduces every |
| 206 | number below in `make test-turing` and `turing-field`. Verdict and decision: K.7. |
| 207 | |
| 208 | Built post hoc from evidence/MIXED_ALGEBRA/ma3_bench_run{1,2}.json (10 specs, 720 evidence rows, 36 cells). |
| 209 | Winners from stored evidence alone (pack once): S1 R1_smmla, S2 R1_sdot_il (TIE, cheapest), S3 R2c_crumb, S4 R2c_crumb. |
| 210 | The int8 to 2-bit flip between L2-fit and DRAM-bound shapes is reproduced. |
| 211 | |
| 212 | | Scoring | Field mean / max regret | Control mean / max regret | Field receipts verify | Control | |
| 213 | |---|---|---|---|---| |
| 214 | | S1-S4 x 2 pack, in-sample | 3.58% / 25.51% | 0.01% / 0.07% | 8/8 | 0/8 (cites none) | |
| 215 | | S1-S4 x 2 pack, leave-one-cell-out | 3.65% / 25.51% | 0.01% / 0.07% | 8/8 | 0/8 | |
| 216 | | pack once only (S1-S4) | 0.00% / 0.00% | 0.00% / 0.00% | 4/4 | 0/4 | |
| 217 | | per call only (S1-S4) | 7.16% / 25.51% | 0.02% / 0.07% | 4/4 | 0/4 | |
| 218 | | all 36 cells x 2 pack, in-sample | 2.15% / 25.81% | 0.03% / 1.04% | 72/72 | 0/72 | |
| 219 | | all 36 cells x 2 pack, leave-one-cell-out | 2.18% / 25.81% | 0.03% / 1.04% | 72/72 | 0/72 | |
| 220 | | cold online, 720 queries (control learns) | 2.15% / 25.81% | 104.50% / 9398.91% | n/a | n/a | |
| 221 | |
| 222 | Dry-run verdict: **Q1 FAIL, Q2 PASS -> FAIL.** All Field regret comes from the per-call mode, where pack-cost noise widens |
| 223 | the band (32 of 36 per-call cells are TIEs, bands 1.0% to 27.5%, matching MA-2's 32 per-call ties) and the ADR 0019 tie |
| 224 | rule picks the reference R1_plain inside it. With packing amortized the two |
| 225 | selectors are identical in quality (35 of 36 cells same pick, both at the oracle). The cold online row compares |
| 226 | different information (stored evidence vs learning from scratch) and is not part of the verdict. Before H1, either the |
| 227 | rule stays and the kill test is expected to fail, or a rule change is registered here first; thresholds do not move. |
| 228 | |
| 229 | ### K.7 Verdict and reframe (2026-09-29) |
| 230 | **Verdict: FAIL, kept permanently.** The pre-registered kill test (K.4) failed on selection quality and passed on |
| 231 | replayability. Q1: the Field v0 selector's regret was 3.58% mean and 25.51% max on S1-S4 x 2 pack modes (in-sample; |
| 232 | 3.65% / 25.51% leave-one-cell-out) against the control arm's 0.01% / 0.07%, far outside the pre-registered limits |
| 233 | (mean within 2 points of control, max at most 10%). Q2: 72 of 72 Field decisions cited receipts that re-hash and verify. |
| 234 | Thresholds are unchanged and the K.6 table stands. The v0 rule stays in the tree only as |
| 235 | src/turing/field_select_v0_retired.c, and `make test-turing` asserts that it still reproduces these numbers and the FAIL. |
| 236 | |
| 237 | **Cause.** All of the v0 regret came from the per-call pack mode. There the packing cost is noisy, so the noise band was |
| 238 | wide (1.0% to 27.5%; 32 of 36 per-call cells were TIEs), and the ADR 0019 section 9.1 tie rule then preferred the |
| 239 | reference R1_plain inside that band even when a measurably cheaper candidate existed. With packing amortized, v0 and |
| 240 | the control arm were equally good. |
| 241 | |
| 242 | **Decision (Option 1; Drake delegated the call to the orchestrator, 2026-09-29).** Turing is the record-keeping layer, |
| 243 | not a new selector: |
| 244 | - Selection uses the control arm's rule: minimum expected cost, i.e. the lowest running mean of per-call cost per |
| 245 | (spec, footprint n x m x pack), lowest spec index on an exact tie. The code is shared: `turing_rank_min_cost` in |
| 246 | src/turing/history_selector.c is the one ranking core, called by the control arm and by the Field selector. |
| 247 | - The Field selector v1 (`turing.field.v1`, src/turing/field_select.c) wraps every choice in an immutable decision |
| 248 | record: every candidate with its reason code and cost, the footprint used, the recorded margin and noise band (not used |
| 249 | to choose), `supersedes`, and a citation of every evidence row the ranking used, whose receipt files are re-hashed at |
| 250 | decision time and again by `turing_decision_verify`. |
| 251 | - Contract, exactness, max_n, receipt-integrity, verified-run, contention and tier checks stay as **recorded filters** |
| 252 | with reason codes. They exclude a candidate; they never reorder the survivors. On the stored MA-3 grid every filter |
| 253 | passes every candidate, so v1 and the control arm pick identically. |
| 254 | - Footprint, as in the control arm, is (n, m) without sparsity; the v0 sparsity-aware nearest-cell metric is gone. |
| 255 | Off-grid queries use the nearest measured footprint (|log2 n ratio| + |log2 m ratio|). |
| 256 | |
| 257 | **Evidence for the reframe (test-turing).** On all 36 stored cells x 2 pack modes, in-sample and leave-one-cell-out |
| 258 | (144 decisions), Field v1 and the control arm pick the same realization every time, Field v1 regret equals the control |
| 259 | arm's exactly (0.03% mean / 1.04% max over the 72 cells), and every Field v1 decision verifies against its receipts. |
| 260 | This is not a new kill-test verdict and not a quality claim: v1 cannot beat the control arm because it is the control |
| 261 | arm's rule. |
| 262 | |
| 263 | **Claims after the reframe.** Selection is not novel. Candidate novelty is limited to: (1) receipt-cited, replayable, |
| 264 | immutable decision records around an ordinary selector; (2) the number system as a contract-verified axis next to |
| 265 | language and hardware; (3) compact round-trip dialects (later, Wave 5). H1 still runs, now to measure the control rule |
| 266 | live and to check that every live decision record verifies; it does not re-score Q1 with the v1 rule. |