interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / docs / turing / TURING_YIELD_PROFILE_V0.md

229 lines · 15102 bytes Raw Blame History Rendered
1# Turing Yield measurement profile V0 (pre-registered)
2
3Status: PRE-REGISTERED 2026-09-29. This file, the TY-0 audit (TURING_YIELD_CURRENT_STATE.md) and the trace manifest
4(evidence/TURING_YIELD/trace_manifest_rep10_control.sha256) are committed and pushed before any scoring of the held-out
5seeds 8, 9 and 10. Tuning and the margin below used seeds 1-7 only. For seeds 8-10 nothing has been read except file
6size, the 4-byte magic and SHA-256 (for the manifest). The only code path that scores them is `turing-yield heldout`,
7which runs once and refuses to run again when its receipt exists. `turing-yield manifest-check` only hashes them;
8`turing-yield verify` re-derives an existing held-out receipt and never replaces it.
9
10Digests (SHA-256 with domain prefix over OMG0 bytes, as in src/turing/field.c; record digests, never Omega semantic ids):
11
12| item | value |
13|---|---|
14| manifest file SHA-256 | `6efc04b525af60706bd0f3176013fe234d8e8a52e2554cff3add8a4e16171dca` |
15| profile `turing.yprofile.v0` | `f4292df9748e306165f30b250673a0062391054321ea6dbe68855ecaa0fa8be8` |
16| split `turing.ysplit.v0` (fit 1-7, held-out 8-10) | `63bef76b9af6bd291f71ddd77163f1c4e08ebd5033e967a395bf9434893f7306` |
17
18The profile digest is computed by `ty_yprofile_v0` (src/turing/ty_profile.c) plus the manifest digest. Any change to a
19field below changes it, and every model and gain record made under V0 is then refused (`TY_E_PROFILE`).
20
21## 1. Definitions
22
23- L(D|M) = sum over t of -log2 P_M(x_t | ctx_t), in bits (never nats).
24- DL(M, D) = L(M) + L(D|M).
25- T(M; B, D) = DL(B, D) - DL(M, D), computed only on the held-out split.
26- **1 T = 1 bit of net held-out description-length gain versus the declared baseline under this profile.**
27- Claim form: "Under measurement profile V0, candidate C reduced held-out total description length by X bits relative
28 to baseline B, so C scored +X T."
29
30## 2. Dataset and reader
31
32- Corpus: `~/aien-data/crumbline/exp-20260927-rep10/seed-{1..10}/control/trace.ctr` (outside git, 4,992,178,750 bytes,
33 20,211,250 records). Per-file SHA-256 and byte size are in the manifest. Control condition only: the learning
34 condition changes its bank as library operations are admitted, so it is not stationary (audit section 3).
35- Split: **fit = seeds 1-7**, **held-out = seeds 8-10**, whole seeds. The audit found 0 repeated crumb digests across
36 the ten control seeds, so no crumb appears on both sides. Control seed s is never paired with learning seed s.
37- Hyperparameters were chosen only on **validation seed 7** with models fit on seeds 1-6 (section 7), then every model
38 is refit on seeds 1-7 and frozen.
39- CTR1 format, checked against the source definition in aien-sovereign-core (read-only reference; Rust is not built):
40 `crates/crumbs/src/trace.rs:26` (247 bytes per record), `:406-436` (field order of `TraceRecord::encode_body`),
41 `crates/crumbs/src/canon.rs:23-30` (little-endian integers), `trace.rs:460-475` (215-byte body then 32-byte BLAKE3
42 chain digest), `crates/crumbs/src/session.rs:196-203` (records appended per crumb, headerless file). The C reader is
43 src/turing/ty_ctr1.c; its header lists every byte offset.
44- Checks run on seeds 1-7 (every record decoded): size is an exact multiple of 247, record count = size / 247, magic
45 `CTR1` and version 1 on every record, no event_index gaps.
46
47| seed | records | nonempty crumbs |
48|---|---|---|
49| 1 | 2,172,776 | 181 |
50| 2 | 1,945,549 | 188 |
51| 3 | 2,117,110 | 185 |
52| 4 | 2,097,910 | 186 |
53| 5 | 1,950,803 | 187 |
54| 6 | 2,141,574 | 186 |
55| 7 | 1,950,683 | 185 |
56
57 Seeds 8-10: size / 247 = 1,969,906 / 1,884,427 / 1,980,512 with remainder 0, first 4 bytes `CTR1`. Each session has
58 188 crumbs in its ledger; crumbs with zero events write nothing to trace.ctr (seed 1: 7 ledger entries share one
59 trace_stream_digest, the empty stream, and 188 - 7 = 181). Empty crumbs are invisible to every model and cost nothing.
60- The BLAKE3 chain is not verified (no C BLAKE3 in the tree). Integrity is pinned by the per-file SHA-256 manifest,
61 which the fit and scoring paths re-hash before reading any file.
62- The reader **refuses** a file on any value outside the pinned sets: op_origin != 0, op_index >= 15 on EXPAND, kind
63 not 1 or 2, prune > 4, verify > 4, fit > 2, a pruned EXPAND whose result_class is not Pruned, an unpruned EXPAND whose
64 result_class is not 2-4, a SUBMIT with prune != 0 or result_class not 5-7, or an event_index that decreases without
65 restarting at 0.
66
67## 3. What is coded (x_t) and what is context
68
69x_t is **one outcome symbol per CTR1 record**, alphabet K = 9:
70
71| symbol | meaning | from |
72|---|---|---|
73| 0-3 | EXPAND pruned: equivalent / over cost / frontier cap / step cap | prune 1-4 (`src/crumbline/cl_search.h` CL_PRUNE_*) |
74| 4-6 | EXPAND not pruned: failed / partial / improved | result_class 2-4 |
75| 7 | SUBMIT accepted | result_class 5 |
76| 8 | SUBMIT rejected | result_class 6 or 7 |
77
78Every CTR1 field, classified:
79
80| field | role | reason |
81|---|---|---|
82| kind | in x_t | implied by the outcome symbol (EXPAND vs SUBMIT) |
83| prune | in x_t | learner's prune decision |
84| result_class | in x_t (merged) | carries the evaluation outcome. It is derived from prune when prune != 0 (`trace.rs:253`), so prune and result_class are merged into one symbol and never scored twice. RejectedRobust vs RejectedHidden is decided by `fit` (`trace.rs:291-295`), so both map to one "rejected" symbol |
85| op_index | context (side information) | the learner expands each parent with ops 0..14 in order: on seed 1, op_t = (op_(t-1) + 1) mod 15 holds for a fraction 1.0000 (four decimals) of consecutive EXPAND pairs in a crumb. Coding it would score the search loop counter, not prediction. SUBMIT events use op value 15 |
86| depth | context (side information) | derived from the parent's depth (`trace.rs:242`), clipped at 7 |
87| event_index | segmentation only | equals the event's position (`trace.rs:200`); 0 opens a crumb |
88| search_cost | excluded | equals event_index (`trace.rs:223`) |
89| improved | excluded | equals result_class Improved (`trace.rs:252`) |
90| hidden | excluded | the verdict byte, already in result_class on SUBMIT (`trace.rs:290`) |
91| contributed | excluded, never used as context | back-filled from the accepted solution after the crumb ends (`trace.rs:334,337`): a future leak |
92| op_origin | excluded | constant 0 in the control condition (library disabled); reader refuses anything else |
93| program_steps | excluded | equals depth for base ops (`trace.rs:250`) |
94| op_id, state/child/program digests, mismatch, hamming, residual | excluded | computed by the sealed side from states and programs (`trace.rs:241-251,279-288`) |
95| parent, child | excluded | node identifiers (search bookkeeping), not outcomes |
96| verify, fit, exec_cost, oracle_index | excluded | learner telemetry (verify/fit nonzero on 334 of 2,172,776 seed-1 records); exec_cost and oracle_index are numeric side values outside this symbol stream |
97| chain digest | excluded | integrity only |
98
99Side information (not coded, available identically to every model): op feature, clipped depth, crumb boundaries,
100crumb ordinal and event_index within the file. D is therefore the outcome stream given the side information; the
101baseline and the candidate see the same side information, and only the candidate uses op.
102
103Context resets **per crumb**: previous-outcome features restart at a start-of-crumb value at event_index 0.
104
105## 4. Estimator, smoothing, floor
106
107Fit procedure `ty.fit.kt16.mdl.v0` (src/turing/ty_model.c, `ty_model_fit`):
1081. Count n(c, x) over the fit seeds for every context key c (mixed-radix key of the model's features).
1092. Default row = the order-0 counts. Every row is **KT smoothed** (add 1/2 to each count, as doubled integers
110 2n + 1) and **quantized to 16 bits**: each of the K entries gets 1, the remaining 65536 - K units go by floor of
111 (65536 - K)(2n_x + 1) / sum(2n + 1), the leftover by largest remainder (ties to the lower symbol). Every row sums to
112 exactly 65536.
1133. **Floor**: every probability is at least 1/65536 by construction (at most 16 bits per symbol). No hidden epsilon
114 anywhere: the scorer never clamps, and a decoded row with an entry of 0 is refused.
1154. A context row is kept only if, on the fit data, it saves more micro-bits against the default row than its own
116 code length (key bits + 16(K - 1) bits). An unseen or pruned context uses the default row.
117
118## 5. L(M): the model code
119
120The model that is scored is the decoded model code, and L(M) is that code's exact bit length (src/turing/ty_model.h):
121`"TYM0"` 32 | version 8 | K 8 | feature mask 8 | qbits 8 | key bits 8 | row count 32 | default row 16(K - 1) | per row,
122keys strictly increasing: key (key bits = ceil(log2 of the key space)) + 16(K - 1). The K-th entry of each row is
123implied. So L(M) = 104 + 16(K - 1) + rows x (key bits + 16(K - 1)). A fit-on-train lookup table pays for every row it
124stores: a position-keyed memorizer (key = crumb ordinal x event_index, 36 bits) costs 164 bits per stored event, more
125than the 3.17 bits a uniform code spends on the event it memorized.
126
127## 6. Fixed point
128
129- Unit: **micro-bits (ub) as int64**, 1 bit = 1,000,000 ub. Model lengths are integer bits (exact).
130- -log2(q / 65536) is computed once per q in 1..65536 by an integer-only binary logarithm (`ty_log2_q32`: Q62
131 mantissa squaring, 32 fractional bits, error < 2^-31 bits) and rounded to the nearest ub. No libm in the scoring path.
132- Summation: file order, exact int64 addition (order-independent because integer), overflow-checked.
133- **Error bound**: each scored symbol is within 0.5 ub (rounding) + 0.001 ub (logarithm) of the exact real value, so a
134 code length over N symbols is within 0.501 N ub, and T (two code lengths) within 1.002 N ub. For the held-out split
135 N = 5,834,845, so |T error| <= 5.85 bits. The smallest T acted on is the margin, 234,602 bits: 40,000 times larger.
136 The pass rule subtracts this bound before comparing (`qerr_bound_ub` in the gain record).
137
138## 7. Baseline B and the ladder
139
140B is the **strongest simple baseline**, chosen on validation (fit seeds 1-6, score seed 7) among order-0, order-1 (the
141previous outcome) and op-only. Validation result (seed 7, 1,950,683 symbols):
142
143| model | L(M) bits | L(D\|M) bits | DL bits | bits/symbol |
144|---|---|---|---|---|
145| uniform (quantized) | 232 | 6,183,433.015 | 6,183,665.015 | 3.170 |
146| order-0 | 232 | 3,338,148.866 | 3,338,380.866 | 1.711 |
147| **order-1 = B** | 1,156 | 2,499,920.598 | 2,501,076.598 | 1.282 |
148| op-only | 2,344 | 3,001,493.756 | 3,003,837.756 | 1.540 |
149
150Why not order-0: the order-1 model already captures the search's own rhythm (runs of frontier-cap prunes, equivalence
151prunes following each other). A candidate that beats only order-0 could pass on that search artifact alone. B = order-1
152forces the candidate to earn its bits from something order-1 does not know. "Beats uniform" never passes. The held-out
153receipt reports the full ladder (uniform, order-0, order-1, op-only, every candidate) with T against B and against
154order-0.
155
156## 8. Candidate C
157
158Grid (10 models): op + optional clipped depth + the previous 1..h outcomes in the crumb, h = 1..5. Chosen on the same
159validation seed by minimum DL:
160
161| candidate | L(M) bits | L(D\|M) bits | DL bits |
162|---|---|---|---|
163| op+prev1 | 11,248 | 2,061,842.809 | 2,073,090.809 |
164| op+prev1..2 | 33,314 | 1,888,934.866 | 1,922,248.866 |
165| op+prev1..3 | 79,184 | 1,740,384.295 | 1,819,568.295 |
166| **op+prev1..4 = C** | 176,892 | 1,582,420.133 | **1,759,312.133** |
167| op+prev1..5 | 357,087 | 1,467,420.463 | 1,824,507.463 |
168| op+depth+prev1 | 37,762 | 2,001,867.294 | 2,039,629.294 |
169| op+depth+prev1..2 | 93,242 | 1,834,610.991 | 1,927,852.991 |
170| op+depth+prev1..3 | 201,347 | 1,690,532.262 | 1,891,879.262 |
171| op+depth+prev1..4 | 400,148 | 1,536,330.209 | 1,936,478.209 |
172| op+depth+prev1..5 | 669,184 | 1,433,007.426 | 2,102,191.426 |
173
174The optimum is interior in both branches (h = 4), so the grid is not truncating it. The first grid stopped at h = 3
175and picked its deepest entry; the grid was widened to h = 5 on the validation seed before anything here was frozen.
176No neural nets. C and B are both refit on seeds 1-7 and frozen before scoring.
177
178## 9. TY-2 pass threshold
179
180Seed-to-seed variation, measured inside the fit seeds only: for each s in 1-7, fit B and C on the other six seeds and
181score s, charging each model's full L(M) to that seed (`turing-yield loso`).
182
183| left-out seed | symbols | T bits | bits/symbol |
184|---|---|---|---|
185| 1 | 2,172,776 | 840,914.954 | 0.3870 |
186| 2 | 1,945,549 | 737,020.300 | 0.3788 |
187| 3 | 2,117,110 | 814,694.249 | 0.3848 |
188| 4 | 2,097,910 | 806,675.104 | 0.3845 |
189| 5 | 1,950,803 | 739,583.977 | 0.3791 |
190| 6 | 2,141,574 | 824,146.164 | 0.3848 |
191| 7 | 1,950,683 | 741,764.465 | 0.3803 |
192
193Mean 786,399.888 bits, sample standard deviation sd = 45,149.240 bits. The pooled held-out T sums three seeds, so its
194seed-variation scale is sqrt(3) sd.
195
196**Margin = 3 sqrt(3) sd = 234,602.334 bits (`margin_ub` = 234,602,333,141).**
197
198**PASS** if and only if both hold:
1991. pooled held-out T (seeds 8-10, each model's L(M) charged once) minus the fixed-point bound exceeds the margin;
2002. for each held-out seed separately, with each model's **full** L(M) charged to that seed alone, T minus the
201 fixed-point bound is > 0.
202
203Otherwise **FAIL: STOP**, reported plainly and kept. The thresholds do not move after the held-out run.
204
205## 10. Energy denominator for TY-7 (declared now, used later)
206
207T/J = T / E_C, with E_C = idle-subtracted energy of scoring the held-out split with C alone, measured in its own
208window. The marginal form (E_C - E_B) is not used: C and B do similar table lookups, so E_C - E_B can be near zero or
209negative within meter error (1 mJ step, up to 2 J per window edge; audit section 5) and the ratio becomes unbounded.
210Fitting energy is reported separately and never folded into the denominator.
211
212## 11. Refusals the code enforces (TY-1)
213
214- Probabilities from an outside predictor: NaN, Inf, negative, |sum - 1| > tolerance, zero on the realized outcome,
215 subnormal or below 2^-62 on the realized outcome (`ty_ubits_f64`).
216- A model fit on any held-out file (`TY_E_LEAK`), or whose fit files differ from the split's fit files
217 (`TY_E_PROVENANCE`).
218- A model or record made under a different profile, quantization, floor, fit rule or encoder version
219 (`TY_E_PROFILE`); a baseline other than the declared one (`TY_E_BASELINE`).
220- A model code, dataset file or gain record that does not hash to its recorded digest (`TY_E_DIGEST`).
221- `ty_gain_verify` refits B and C from the fit files and re-scores the held-out files; any difference fails.
222
223## 12. Limits
224
225- T is an ideal (Shannon) code length. No arithmetic coder is built; a decodable bitstream is future work.
226- The chain digests inside CTR1 are not checked in C.
227- The corpus can only be regenerated by the Rust crumbs crate; this profile reads it and never rebuilds it.
228- Side information is free by declaration. T measures prediction of outcomes given which operation was tried, not the
229 cost of describing the search order itself.