Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/docs/one_layer/EXP445_PROTOCOL.md # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / docs / one_layer / EXP445_PROTOCOL.md` 367 lines ยท 25864 bytes Raw Blame History Rendered 1 # EXP445: machine-first representation experiment, pre-registered protocol 2 3 Issue: aien-spark/omega#445 (stage 2 of the one-layer plan, 4 `~/workspace/omega-vision/OMEGA-ONE-LAYER-PLAN.md`). This file is committed BEFORE any generation of 5 the experiment (revision r1), and revised (r2, section 12) before any held-out generation, and again (r3, section 13: Omegese against text, staged, own engines only). Every setting below is frozen by that commit; a change needs a new protocol revision 6 committed before the generation it affects, and every run records the commit it used (`meta.txt`). 7 8 ## 1. Question and gate 9 10 Can a model write Omega programs as reliably in a machine-first form (raw binary IR, or a checked 11 op-list) as in human-readable OSC text? The gate, verbatim from #445: 12 13 > Gate: structured emission reaches 80% held-out functional success within ten points of text; raw bytes win only at equal success and lower cost; otherwise improve builders and repeat once. Text never becomes the production source. 14 15 How it is evaluated (section 8 gives the numbers): per model configuration, on the primary measure 16 (section 4), with point estimates; the Wilson intervals are reported beside every number. 17 18 ## 2. Arms 19 20 Every arm gets the same shared rules (`tools/exp445/arms/common.md`: types, wrapping, traps, "one 21 fenced block"), the same task message and the same budget. They differ only in the form of the 22 program and the reader that turns the answer into a candidate. 23 24 | arm | the model writes | reader (candidate) | harness kind | 25 |---|---|---|---| 26 | `text` (control) | OSC text (`arms/text.md`: grammar and static rules from `docs/osc/OSC-1-DESIGN.md`) | the answer itself, compiled by `oscc` | `osc` | 27 | `bytes` | OSC binary IR spelled as hex (`arms/bytes.md`: the wire format of `spec/one-layer-format.md`) | `x445 hex`: strict, two hex digits per byte, only whitespace between bytes; then the strict decoder `osc_ir_decode` | `oscir` | 28 | `structured` | an op-list, JSON (`arms/structured.md` + `tools/omega_emit/SCHEMA.md`) | `omega_emit emit`: checks every op as read, refuses the first invalid one, emits canonical IR | `oscir` | 29 30 All three arm documents show the same worked example (`clamp_sub`); `make test-exp445` checks that the 31 three spellings produce byte-identical IR. "Constrained emission" here means the op-list is checked 32 op by op by `omega_emit` and refused with a reason; it is NOT decoding-time masking at the model 33 server (the served engine offers no grammar option that this protocol relies on). 34 35 Known differences inherent to the forms: the `bytes` and `structured` arms can write an explicit 36 `trap` op, the `text` arm cannot; the `text` arm's refusals come from the OSC compiler, the `bytes` 37 arm's from the hex reader or the decoder (a class name and its meaning), the `structured` arm's from 38 `omega_emit` (function, block, op and reason). 39 40 ## 3. Tasks 41 42 - **Held-out (the only evidence):** the 60 sealed tasks in `~/workspace/one-layer-sealed-445/tasks.tar`, 43 seal `~/workspace/omega-vision/stage2/TASKS.sha256`, written by a separate author against 44 `tests/one_layer/acceptance/HARNESS_INTERFACE_V2.md` section 3. The builders of the tools never read 45 them. The driver sees only `requirement` and `prompt` (`ola.sh tasks-public`). 46 - **Dev (never evidence):** the 10 public tasks in `tests/one_layer/exp445/dev/`, packed and sealed by 47 `pack_dev.sh` in the same layout. Used to size the budget (section 5), develop the prompts, and 48 smoke-test the driver. Their results are never pooled with held-out results. 49 - Before generation: `ola.sh tasks-check` on the held-out pack must report every reference accepted. 50 51 ## 4. Success 52 53 - A **generation** is one task x arm x attempt: round 1, plus the repair round when round 1 is 54 refused (section 6). Its **final candidate** is the last round's candidate. 55 - **Success** = the sealed harness (`ola.sh experiment`, kind `osc` or `oscir`) gives `ACCEPT` for the 56 final candidate on the task's hidden inputs. Anything else (any REJECT reason, `no_candidate`) is a 57 failure. Results count only from a harness run that ends `RUN VALID` (every reference accepted, 58 zero errors, identical replay, all isolation probes PASS, clean tree). 59 - **Primary measure:** success of attempt 1, per configuration x arm, over the 60 held-out tasks. 60 - **Secondary:** success on any of the 3 attempts; generations accepted out of 180; accepted without 61 needing the repair round; refusal and REJECT reasons by class. 62 63 ## 5. Budget (equal in every arm) 64 65 - Per round, output cap `max_tokens = 3072` (`tools/exp445/PARAMS`), the same in every arm, task and 66 attempt. A generation has at most two rounds, so at most 6144 output tokens. 67 - Sized on the dev references as the served model counts them (`tools/exp445/measure.sh`, config A 68 server, 2026-10-14; prompt_tokens of the spelling minus the empty-message baseline of 8): 69 70 | task | text | bytes (hex) | structured | 71 |---|---|---|---| 72 | dev01 | 64 | 281 | 309 | 73 | dev02 | 60 | 256 | 286 | 74 | dev03 | 81 | 567 | 624 | 75 | dev04 | 82 | 441 | 507 | 76 | dev05 | 27 | 118 | 91 | 77 | dev06 | 27 | 112 | 91 | 78 | dev07 | 120 | 594 | 750 | 79 | dev08 | 103 | 807 | 926 | 80 | dev09 | 75 | 488 | 547 | 81 | dev10 | 22 | 98 | 79 | 82 | total | 661 | 3762 | 4210 | 83 84 The longest reference in any arm is 926 tokens (structured, dev08). 3072 is 3.3 times that: room 85 for the fence, a short preamble, and a model spelling less compact than `omega_emit lift`. The cap 86 is the same number for every arm; an arm that needs more tokens for the same program pays for it 87 in cost (section 7) and in truncation risk (`finish_reason=length` is logged). 88 - The held-out tasks were written to the same contract as the dev tasks; their reference lengths 89 are not measured before generation (the builders do not open the sealed tarball). 90 91 ## 6. Generation procedure (`tools/exp445/run.sh`) 92 93 1. System message: `arms/common.md` + the arm document (+ `SCHEMA.md` for `structured`). Every request also carries the configuration's frozen request extra (section 9). User message: 94 `Write the function described below.`, the requirement's `entry`, `params`, `ret` lines, the task 95 prompt. Prompts are written to `prompts/.system.txt` and their sha256 to `meta.txt`. 96 2. One POST to `/chat/completions` (OpenAI-compatible, `stream: false`). 97 3. The first fenced block is the payload (whole answer if none; an unclosed block runs to the end). 98 The arm's reader makes the candidate and checks it with public data only: the reader itself, then 99 entry name, parameter and return types, then the back end (`x445 check`). No hidden input is run. 100 4. **Exactly one repair round** if round 1 is refused, identical in every arm: 101 the conversation plus the assistant answer, then the user message 102 `Your program was refused: ` + newline + `Reply with the corrected complete program in one fenced code block.` 103 where `` is the reader's one-line refusal (`compiler: ...`, `hex: ...`, `decoder: CLASS (meaning)`, 104 `step: ...`, `signature: ...`, `backend: ...`). The repair round's candidate is final, accepted 105 by the check or not. No second repair. 106 5. A failed try (transport error, any HTTP status other than 200, or a 200 whose body has no usable 107 answer) is retried up to `retries=2` times with the same request, after a pause of K x 5 seconds 108 before try K; a request that still fails ends the generation with no candidate (`no_candidate`, a 109 failure). (This sentence once said "transport errors and HTTP 5xx"; the driver has always retried 110 every failed try, and every run on record retried that way. The pause was added on 2026-10-15; 111 runs before that retried at once.) 112 6. Every raw request and response is saved and hashed (`gen///SHA256SUMS`, run-level 113 `SHA256SUMS`); `log.tsv` holds per generation: rounds, prompt tokens, completion tokens per round, 114 finish reasons, wall seconds, check results, candidate sha256. 115 116 Order: task, then arm, then attempt. A run can be resumed only with identical settings (the driver 117 refuses otherwise); finished generations are never redone. The commit may differ only when the tool 118 files (`TOOL_PATHS` in `tools/exp445/reader.sh`, the same set score.sh compares) are identical between 119 the run's commit and the resuming one and both trees are clean, as when the G0 ledger and the interim 120 scores are committed between attempt 1 and the `--futility` resume (added 2026-10-15; before that the 121 resume was refused at any other commit). 122 123 ## 7. Sampling and cost 124 125 - Fixed sampling, identical in every arm: `temperature=0.7`, `top_p=0.8`, 126 `seed = 445000 + 1000 x attempt + task index` (task index = 1-based position in the sorted task list; the same seed for the three arms of one task and 127 attempt), `timeout_s=900` per request. `seed` is honoured by config B's server (verified, section 9) and 128 UNVERIFIED for config A; whether `top_p` is honoured is UNVERIFIED for both. The values are sent 129 and logged either way. 130 - **Cost** per configuration x arm: completion tokens (total and mean per generation, both rounds), 131 prompt tokens per generation, wall seconds (sum of request times). The **hex penalty** is reported 132 as the ratio of mean completion tokens per generation, `bytes` / `text` and `structured` / `text` 133 (`score.sh`, `results.txt`), next to the reference ratios above (bytes 5.69 x text, structured 134 6.37 x text over the dev totals). 135 136 ## 8. Statistics and decision 137 138 - Proportions with Wilson 95% score intervals (z = 1.959964; `x445 wilson`). 139 - **Structured gate** (each configuration): PASS when structured attempt-1 success is at least 140 48/60 (80%) AND text attempt-1 success minus structured attempt-1 success is at most 10 percentage 141 points. The experiment's gate is PASS when it passes in both configurations. 142 - **Bytes rule** (orchestrator decision, r2): bytes "wins" over structured only if, in BOTH 143 configurations, bytes attempt-1 successes are at least structured attempt-1 successes (equal 144 success: no tolerance) AND bytes mean completion tokens per generation are lower than 145 structured's (lower cost). Otherwise structured is the production path. 146 - **Otherwise:** improve the builders (`omega_emit`, readers, arm documents) and repeat the 147 experiment once, under a revision of this protocol committed before the repeat. Improvements use 148 only aggregate results and refusal classes; no held-out task content is opened by a builder. 149 - Text is the research control only; it never becomes the production source. 150 151 ## 9. Configurations (FROZEN before any held-out generation) and scale 152 153 Both configurations are named here and in `tools/exp445/PARAMS` (`config..model`, `.base_url`, 154 `.extra`). `run.sh` refuses any configuration not named in PARAMS; `score.sh` refuses any run whose 155 model id, endpoint or request extra differs from the frozen values. No held-out generation may start 156 before this revision is committed. Paid models need Drake's approval with an estimated cost. 157 158 | | Config A | Config B | 159 |---|---|---| 160 | model | Qwen3-30B-A3B-Instruct-2507, FP8 | Qwen3-8B, bf16 | 161 | weights | `~/models/qwen3-30b-a3b-instruct-2507-fp8` | `~/models/qwen3-8b` | 162 | server | Omega's own `aien-serve-http` (`~/handoffs/rc3-bin-`0826a25``, sha256 ``c83fef926696562f63975082e5360818feb8acfe6df92353cb32c9d1ecdd4bde``), `--engine omega --spec on` | MAX 26.5.0, `max serve --model /home/drakestapleton/models/qwen3-8b --port 18097 --served-model-name qwen3-8b` | 163 | endpoint | `http://127.0.0.1:18091/v1` | `http://127.0.0.1:18097/v1` | 164 | model id | `qwen3-30b-a3b-instruct-2507` | `qwen3-8b` | 165 | request extra | none (`{}`) | `{"chat_template_kwargs":{"enable_thinking":false}}` | 166 | seed honoured | UNVERIFIED | VERIFIED by the orchestrator's probe on MAX: the same seed gave byte-identical answers twice at temperature 0.7 / top_p 0.8, a different seed a different answer | 167 168 The request extra is merged into every request of that configuration (so it is in the hashed 169 request files) and recorded in `meta.txt`. Without it Qwen3-8B writes a thinking block first (about 170 600 tokens before the answer in the orchestrator's probe); with it the model answers directly, as 171 config A's non-thinking instruct model does. 172 173 Weight files, sha256 (computed 2026-10-14): 174 175 ``` 176 `002ebe91531ec67011b3d0c923234ef708c7da7d3b246045c4475d90b3d94628` qwen3-30b-a3b-instruct-2507-fp8/config.json 177 `270f54aead2ae634567310218340069621fd8dfa2ad80001b69888ea5cc03477` qwen3-30b-a3b-instruct-2507-fp8/model.safetensors.index.json 178 `fed0a80c29eac54690eb6a39499c80aae9df06d04189479bb74b649411a9b419` qwen3-30b-a3b-instruct-2507-fp8/model-00001-of-00004.safetensors 179 `c72b1debd3bc4e55e1c6db6919e82d22de2c9d5cbd6d46f89cb1ba51b05bdc90` qwen3-30b-a3b-instruct-2507-fp8/model-00002-of-00004.safetensors 180 `84a55173edab143768a98307114b71dc51245124f116a893f310141d43bc4302` qwen3-30b-a3b-instruct-2507-fp8/model-00003-of-00004.safetensors 181 `169d89f49b646a0a8329d9a2570650f5f5a0eb78740cb1952b76caab2f21c09e` qwen3-30b-a3b-instruct-2507-fp8/model-00004-of-00004.safetensors 182 `aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4` qwen3-30b-a3b-instruct-2507-fp8/tokenizer.json 183 `a62ff0a2472a0fa1b8eaabcb57c59b58afa42a22831dc141400b6e0cf2b65ce3` qwen3-30b-a3b-instruct-2507-fp8/tokenizer_config.json 184 `19d306dd769db12a9d710b44cf7f83b635efbe5166b84fb4358a08fb7d88bb53` qwen3-30b-a3b-instruct-2507-fp8/generation_config.json 185 `f7c4eadfbbf522470667b797a3c89be2524832d2d599797248dc304fff447c30` qwen3-8b/config.json 186 `f9fdbcb91c23971c13ec5d5f2573d2349e8f61f2f049371ec699281748fdb1bc` qwen3-8b/model.safetensors.index.json 187 `31d6a825ae35f11fb85b195b4c42c146c051e446433125a215336abdf95cbf5f` qwen3-8b/model-00001-of-00005.safetensors 188 `5991236cea6fe21f3d43cab0f0e84448734fbbe0789816202989f2ddc9d18282` qwen3-8b/model-00002-of-00005.safetensors 189 `c5185c4794be2d8a9784d5753c9922db38df478ce11f9ed0b415b7304d896836` qwen3-8b/model-00003-of-00005.safetensors 190 `b5ee7de71fbf17db3d5704e0c8f2bc7d005ca9e1d7ca2aeb19827b0cfcaa917a` qwen3-8b/model-00004-of-00005.safetensors 191 `20c2d6366ab85c90786ccdd829cd2b9e7d30ef3b2ebbb998280e7e4014b542ff` qwen3-8b/model-00005-of-00005.safetensors 192 `aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4` qwen3-8b/tokenizer.json 193 `d5d09f07b48c3086c508b30d1c9114bd1189145b74e982a265350c923acd8101` qwen3-8b/tokenizer_config.json 194 `2325da0f15bb848e018c5ae071b7943332e9f871d6b60e2ed22ca97d4cb993d2` qwen3-8b/generation_config.json 195 ``` 196 197 The operator re-checks these hashes (`cd ~/models && sha256sum -c`) before each configuration's 198 held-out run and records the result with the run. The weight hashes and server identity are not 199 checked by `run.sh` itself (it only sees the endpoint); that is the operator's step. 200 201 - Scale: 60 tasks x 3 arms x 3 attempts x 2 configurations = 1080 generations (plus repair rounds). 202 - Set ids: `--`, e.g. `a-structured-1`. 203 204 ## 10. Validity of a run (checked by `score.sh` before any statistic) 205 206 `score.sh` prints no success table and exits non-zero (RUN INVALID) unless all of these hold: 207 208 - every run: `protocol=PARAMS` (no command-line override), `params_sha256` equal to the PARAMS in 209 force, the configuration named in PARAMS with its frozen model id, endpoint and request extra, arm 210 prompts equal to what the current arm documents give, the public view of the scored tarball, a 211 clean generation commit whose `tools/`, `tests/one_layer/`, `docs/one_layer/`, `src/compiler/` and `src/sha256.c` (linked into the readers), `mk/omega-emit.mk` and `Makefile` equal the 212 scoring commit's; 213 - every run's `SHA256SUMS` verifies and lists exactly its saved requests, responses and prompts; 214 - every generation's candidate, re-derived from its hashed final response with the same reader 215 (`tools/exp445/reader.sh`), matches `log.tsv` and the file in `cands/`; 216 - the matrix is complete: every task of the tarball x every arm x attempts 1..3 x every scored 217 configuration, exactly once (held-out tarball: exactly 60 tasks); 218 - the harness run (`ola.sh experiment`) ends `RUN VALID`. 219 220 The gate (section 8) is evaluated only when both configurations are scored together. 221 222 ## 11. Commands 223 224 ``` 225 make omega-emit build/compiler/oscc 226 tests/one_layer/acceptance/ola.sh tasks-check 227 tests/one_layer/acceptance/ola.sh tasks-public 228 tools/exp445/run.sh --config A --tasks --out evidence/ONE-LAYER-2/generations/ 229 tools/exp445/run.sh --config B --tasks --out evidence/ONE-LAYER-2/generations/ 230 tools/exp445/score.sh evidence/ONE-LAYER-2/generations/ evidence/ONE-LAYER-2/generations/ 231 ``` 232 233 Revision r3 (section 13), per configuration and run directory: 234 235 ``` 236 tools/exp445/check_weights.sh A 237 tools/exp445/g0.sh --config A --out # G0 (13.4); run.sh refuses without a PASS 238 tools/exp445/run.sh --config A --tasks --out [--prompt-mode many|one] # Stage 0: both modes 239 # Stage 1 (held-out): run.sh stops after attempt 1; then 240 tools/exp445/score.sh --interim --configs A # writes futility.txt 241 tools/exp445/run.sh --config A --tasks --out --futility /futility.txt 242 tools/exp445/score.sh --configs A 243 ``` 244 245 Dry-run tests of the driver and the validity check (fake local endpoint, no model): `make test-exp445`. 246 247 ## 12. Revisions 248 249 - **r1** (commit `d23d9c3c`): first registration. 250 - **r2** (this revision, before any held-out generation), after the independent review of PR #452: 251 both configurations frozen (section 9) with the per-configuration request extra; the bytes rule 252 set by the orchestrator (section 8: at least as many successes as structured, no tolerance, and 253 fewer tokens, in both configurations); the validity check (section 10). `omega_emit` now accepts 254 moves between array registers that the decoder accepts (`mov` into `own:`, `mut:` or `shared:`, 255 as for call arguments), so the `mov` row of `tools/omega_emit/SCHEMA.md`, which is part of the 256 structured arm's system prompt, changed; the structured prompt's sha256 changes with it. The 257 config A dev smoke of r1 used the old prompt and is not comparable; no held-out generation used it. 258 - **r3** (2026-10-15, before any r3 generation): section 13. 259 260 ## 13. Revision r3 (2026-10-15): Omegese against text, staged, on my own engines 261 262 r3 is committed before any r3 generation. Where it differs from sections 1 to 11, r3 wins; anything 263 r3 does not mention stays as written above. No held-out generation was scored under r1 or r2. 264 265 ### 13.1 Why the revision 266 267 - Drake's decisions of 2026-10-15: compare only the machine-first language against plain text; drop 268 the JSON op list (`structured`) and hex (`bytes`) arms; run every configuration on my own engines, 269 never on a third-party engine. 270 - The 302 config B generations made on MAX under r2 (`~/workspace/exp445-aside-`20261014`/generations/heldout-b`, 271 record `~/handoffs/exp445-b-resume.txt`) are kept as they are and are NOT evidence of r3. They are 272 never pooled, scored or quoted as a result. 273 - On the dev tasks, the op list cost 6.37 times the tokens of text (section 7) and passed 0 of 10 274 (OMEGESE.md section 7); Omegese is the machine-first form now under test (`docs/one_layer/OMEGESE.md`). 275 - The research note `aien-architecture/docs/research/omegese-and-gb10-decode.md` (merged 2026-10-15) 276 shows that 10-task, one-attempt trials cannot separate two arms (3 of 10 has a Wilson 95% interval 277 of about 11% to 60%), and that the model's prompt should carry many worked examples, not one. 278 279 ### 13.2 Arms and prompts 280 281 | arm | the model writes | reader (candidate) | harness kind | 282 |---|---|---|---| 283 | `text` (control) | OSC text | the answer, compiled by `oscc` | `osc` | 284 | `omegese` | Omegese (`docs/one_layer/OMEGESE.md`) | `omegese emit`, then `omega_emit emit`, then `x445 check` (`tools/exp445/reader.sh`) | `oscir` | 285 286 - Both arms get `arms/common.md`, their arm document, and the SAME set of 12 to 16 worked examples, 287 each written in both forms (the program in the arm's own form; the task text identical). Every 288 example is verified in both forms by `make test-exp445`: the reader accepts it, the back end 289 accepts it, and its behaviour tests pass. The two forms of an example must compute the same 290 function on the example's tests. 291 - Example tasks are dev-style tasks written by the builders. None may share an entry name with a 292 held-out task; `make test-exp445` checks this mechanically against the public view of the sealed 293 pack and prints only a count, so no builder reads a held-out task. 294 Disclosure (r3, 2026-10-15): the first example set shared 3 entry names with held-out tasks; the 295 builders saw those 3 names (no prompt text, requirement or test) and replaced the examples. No other 296 held-out information was seen. 297 - One-shot prompts (the r2 single example) are used only in Stage 0 (13.4), on dev tasks. 298 - Decode-time masking is OFF in r3. A masked arm needs its own revision once my engine applies the 299 `omegese next` mask. 300 301 ### 13.3 Configurations 302 303 | | Config A | Config B | 304 |---|---|---| 305 | model | Qwen3-30B-A3B-Instruct-2507, FP8 (weights and hashes as section 9) | Qwen3-8B, bf16 (weights and hashes as section 9) | 306 | server | Omega's own `aien-serve-http`, `--engine omega`, on :18091. Frozen in `tools/exp445/PARAMS` by the commit that opens Stage 0 (2026-10-15), for Stage 0 and Stage 1: `/home/drakestapleton/handoffs/pin-bin-`f881710a`/aien-serve-http`, sha256 ``663b85a506ec9bdffd09094cb2271d95efb46eeedfbfe017d31c2fe520c4b911``, built from aien-sovereign-core `f881710a` (Stage S merged: every reply reports mode, seed and p_repeat), omega `4799f9eb`, `libomega_gpu.a` `0629ad9c` | my own dense 8B engine (OWN-8B); frozen by a later revision once its requalification passes. Until then config B cannot run. | 307 | request extra | none | frozen with the server | 308 309 The experiment gate (13.6) is evaluated only when both configurations are scored. Config A alone 310 is reported as an interim result, labelled interim. 311 312 ### 13.4 Stages and pre-registered stop rules 313 314 **G0, the sampling gate (before every stage, per configuration).** G0 runs the Stage S sampling gate 315 (aien-sovereign-core `scripts/sampling-gate.sh`, merged `f881710a`; in Stage S its ignore-seed and 316 force-greedy mutant builds were shown to FAIL it) against the frozen server, with its repro requests 317 set to dev01 in the omegese arm at seeds s1..s8, plus one exp445 check: a repeat of s1. PASS when the 318 sampling gate passes, the repeat is byte-identical, and every reply reports mode=sampled with its own 319 seed. Identical replies across seeds pass only when the server's reported p_repeat makes them 320 plausible (p_repeat^(k-1) >= 0.01, as in the Stage S gate). The distinct-answer count is recorded, 321 not gated. The script and its output are saved in the run directory before any generation. On FAIL 322 nothing in that configuration runs. 323 324 **Stage 0, pilot on the 10 dev tasks (never evidence).** Config A, both arms, one-shot and 325 many-shot prompts, 3 attempts each: 10 x 2 x 2 x 3 = 120 generations. GO to Stage 1 when all of: 326 1. tooling is clean: every generation is logged, every candidate re-derives (section 10), the dev 327 harness run ends `RUN VALID`; 328 2. many-shot `omegese` attempt 1 produces a candidate the back end accepts on at least 7 of the 10 329 tasks; 330 3. many-shot does not do worse than one-shot in either arm on attempt-1 success, by more than 331 one task. 332 If (1) fails, fix the tooling and rerun Stage 0. If (2) or (3) fails, builders may change the 333 language, reader or examples using dev results only, then rerun Stage 0, at most twice. After a 334 third Stage 0 that does not GO, stop and report to Drake; no held-out generation happens. 335 336 **Stage 1, held-out (the evidence).** Config A, the 60 sealed tasks, both arms, many-shot prompts, 337 3 attempts: 60 x 2 x 3 = 360 generations. Order: attempt, then task, then arm, so attempt 1 of every 338 task in both arms finishes first. Stop rule: after attempt 1, if `omegese` attempt-1 success is at 339 most 30 of 60, attempts 2 and 3 are not run (the build needs work; more samples would not change the 340 decision), and the result is reported with the reason. Config B repeats Stage 1 once it can run. 341 342 **Stage 2 (later, its own revision):** the masked arm, and the repair loop studied separately. 343 344 ### 13.5 Unchanged rules, stated for r3 345 346 - Repair: exactly one repair round when round 1 is refused, as section 6 step 4. The primary 347 measure counts the final candidate; round-1-only success is reported beside it. 348 - Budget, sampling values, seeds, transport retries, hashing and validity: sections 5, 7 and 10, 349 with the arms of 13.2. 350 - Attempts 2 and 3 may repeat attempt 1 when the model is confident; this is measured (distinct 351 candidates per task are reported), not a fault. 352 - `top_p` and the seed on config A are no longer UNVERIFIED once G0 passes; G0's output is the record. 353 354 ### 13.6 Decision 355 356 - **Primary measure:** attempt-1 success per configuration and arm over the 60 held-out tasks, with 357 Wilson 95% intervals. 358 - **Gate (each configuration):** PASS when `omegese` attempt-1 success is at least 48 of 60 (80%) 359 AND `text` attempt-1 success minus `omegese` attempt-1 success is at most 10 percentage points. 360 The experiment passes when both configurations pass. 361 - **Cost, reported beside the gate:** mean completion tokens per generation, `omegese` / `text`, 362 and prompt tokens per generation (many-shot prompts are long; the engine reuses the shared 363 prefix). 364 - **Paired view:** for each task, attempt-1 success in both arms; the counts of tasks where only 365 `omegese` succeeds and where only `text` succeeds, with an exact two-sided McNemar test. 366 - **If the gate fails:** improve the language, reader and examples using aggregate results and 367 refusal classes only, and repeat Stage 1 once under a new revision.