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 / calibration / docs / BLINDING_PROTOCOL.md

430 lines · 28831 bytes Raw Blame History Rendered
1# Blinding protocol: Turing-profile-v1.0, EXP-001 (and Turing-profile-v1.1, EXP-001R, see the end of section 4)
2
3This document says who may see which data, when the sealed test data comes into
4existence, how the machine enforces the separation, and how anyone checks
5afterwards that it held. It covers gate CAL-0's `blinding_method`,
6`holdout_commitment`, `test_generation_seed_commitment`, `sealed_test_split` and
7`overlap_audit` fields.
8
9The guarantee has three layers:
10
111. **The data does not exist yet.** Sealed seeds are derived from the freeze
12 commit hash. Nobody can compute them, or generate the data, before that commit
13 exists. That commit already contains the hashed candidate artifacts.
142. **The machine hides the data.** After generation, only processes started through
15 the Evaluator wrapper can see the sealed directory. Processes started through
16 the Candidate wrapper have no such path at all: the kernel builds their file
17 system view without it.
183. **Anyone can check it afterwards.** `verify_holdout_separation.sh` re-derives
19 every seed, re-hashes every file, and checks file times against the freeze
20 commit. It also checks, at the digest and record level, that no sealed crumb
21 also appears in development data.
22
23## 1. Roles and environments
24
25| Environment | May read | May write | Network | How it runs |
26|---|---|---|---|---|
27| Candidate | development data (`~/aien-data/crumbline`, read-only), the public profile and task definition, its own working tree, the git history (read-only) | its working tree | off (on only with `--net`) | `calibration/scripts/candidate_env.sh` |
28| Generator | the pinned generator binary and learner (read-only) | one sealed group directory | off | inside `generate_sealed_data.sh` |
29| Evaluator | the frozen evaluation tree (a clean clone checked out at C_f, step 7: candidate artifacts, reference coders, verifier, independent scorer; read-only), one sealed set (read-only) | one output directory | off, always | `calibration/scripts/evaluator_env.sh` |
30| Auditor | development data and the sealed set, both read-only | the audit output | off | `evaluator_env.sh --ro ~/aien-data/crumbline` running `verify_holdout_separation.sh` |
31
32The Candidate cannot query the Evaluator. The Evaluator runs offline, exposes no
33socket or service, and starts only after the candidate freeze.
34
35Paths:
36
37* sealed root: `~/aien-data/turing-cal/sealed/` (mode 0700), one directory per freeze
38 commit: `sealed/<commit>/`
39* evaluator outputs: `~/aien-data/turing-cal/eval/` (also hidden from the Candidate)
40* trial runs (feasibility only, never sealed): `~/aien-data/turing-cal/trial/`
41
42## 2. Lifecycle, in order
43
44Each step names who runs it and where. A step may not start before the one above
45it has finished.
46
471. **Protocol designed; candidate families declared; power simulation; sample size
48 fixed.** Lane A, ordinary worktree. The profile states `sealed_seeds_per_group = N`.
49 `generate_sealed_data.sh` reads that exact key.
502. **Candidate development.** Candidate side, on development data only. Vocabulary
51 (same as the profile `development_split`): rep10 seeds 1-7 are the development
52 seeds used for fitting; rep10 seeds 8-10 and everything in `final-20260927` were
53 never used for fitting but are burned (seen during earlier work), so they are
54 development data too and can never be sealed data. The seed check refuses 0-10
55 and 20260927. Any computation that touches data should run through
56 `candidate_env.sh` so the sealed root is out of reach even after it exists.
573. **Freeze, step 1: the freeze commit C_f.** `freeze_candidate.sh --freeze` writes
58 `calibration/experiments/EXP-001/candidate_manifest.json` with `"status": "frozen"`:
59 the hash of every candidate artifact, the profile hash, every shared-background
60 hash, `independent_scorer_source_sha256` (the independent scorer's source tree,
61 rule in `indep_source_digest.sh`) and `runtime_sha256` (the seven binaries,
62 `runtime_digest.sh`). The profile `runtime_digest` value, the sidecar and
63 `preregistration.json` `"status": "frozen"` (set before `--freeze`, which refuses
64 otherwise) are in the same commit. The manifest names **no commit**: a file cannot hold
65 the hash of the commit that contains it. The commit that adds these files is the
66 **freeze commit C_f**. It reaches `origin/main` by a real merge or a fast-forward,
67 **never a squash or rebase merge** (those make a new commit and C_f would not be
68 on main). The binaries hashed at freeze are built from the tree that becomes C_f;
69 C_f only adds the manifest, the profile value and the sidecar, none of which is
70 compiled into any binary. From here on no candidate artifact, profile byte,
71 evaluator or independent-scorer source may change; a change is a new
72 experiment version, reported beside this one.
734. **Freeze, step 2: the freeze receipt.** Orchestrator, ordinary shell, after
74 `git fetch origin`:
75
76 ```
77 calibration/scripts/freeze_receipt.sh <C_f>
78 ```
79
80 It reads C_f through git and refuses unless: C_f is an ancestor of `origin/main`;
81 the manifest there is frozen; the profile there has no `FILL_AT_FREEZE` and
82 matches its sidecar and the manifest; the profile `runtime_digest` equals the
83 manifest's; the independent-scorer source at C_f hashes to the manifest value;
84 every shared-background file at C_f matches; no sealed data exists for C_f. It
85 writes `calibration/experiments/EXP-001/freeze_receipt.json` with
86 `TURING_PROFILE_V1_FROZEN = PASS` and C_f. That receipt is committed in a later
87 commit (the first place C_f is written down); nothing the seeds or the evaluator
88 use changes in it. It is pushed to `origin/main` before step 5: sealed generation refuses to
89 start until that receipt, naming C_f and its profile digest, is on `origin/main`.
905. **Sealed data generated.** Orchestrator, ordinary shell (the script jails the
91 generator itself):
92
93 ```
94 calibration/scripts/generate_sealed_data.sh --commit <C_f> \
95 --profile-digest <digest in Turing-profile-v1.0.sha256 at C_f>
96 ```
97
98 The seeds are derived from C_f (section 3). The script refuses unless all of these
99 hold: C_f is an ancestor of `origin/main` (it fetches first); `origin/main` holds
100 `calibration/experiments/EXP-001/freeze_receipt.json` with `TURING_PROFILE_V1_FROZEN = PASS`, naming this C_f
101 and this profile digest (step 4 is committed before any sealed byte exists); the candidate
102 manifest at C_f is `"status": "frozen"`, the profile at C_f has no
103 `FILL_AT_FREEZE` and hashes to the given digest, which the sidecar also carries.
104 It also refuses if the generator and learner hashes differ from the pins, or if
105 `sealed/<C_f>/` already exists, or if EXP-001 has already ended (three void receipts or a final receipt in
106 `~/aien-data/turing-cal/eval/<C_f>/run/bundle`). It records C_f's commit time. Failed attempts
107 follow section 3 ("If generation fails"); each is a void receipt in that one EXP-001 counter.
1086. **Sealed data released to the Evaluator.** The Evaluator reads `sealed/<C_f>/`
109 through `evaluator_env.sh --sealed` only. The release time is the
110 `started_utc` of `seed_commitment.json` (the start of generation, the earliest
111 moment sealed bytes exist), copied into the dataset manifest as `released_utc`; the
112 evaluator refuses unless C_f's commit time and the manifest `frozen_at` are both
113 before it.
1147. **Frozen tree and overlap audit** (Auditor). First the orchestrator prepares the
115 frozen tree in an ordinary shell. It is a clone checked out at C_f (not a
116 `git archive` export), because the evaluator checks C_f against `origin/main`
117 and the clean-tree state through git; the jail binds it read-only and nothing
118 can be built inside it:
119
120 ```
121 F=~/aien-data/turing-cal/frozen/<C_f>
122 git clone -q https://github.com/aien-dev/omega $F && git -C $F checkout -q --detach <C_f>
123 mkdir -p $F/build/no-physics
124 make -C $F PHYSICS_DIR=$F/build/no-physics crumbline-learner turing-exp001-a-build \
125 turing-cal-overlap turing-coder turing-cal-eval turing-verify-indep
126 sh $F/calibration/scripts/runtime_digest.sh # must print the frozen runtime_digest
127 ```
128
129 These six make targets build every binary of the runtime listing except `crumbs` (runtime_digest.sh names the
130 file of each): `crumbline-learner` is built here from C_f exactly as generate_sealed_data.sh builds it (an
131 empty `PHYSICS_DIR`; the build is byte-reproducible, and runtime_digest.sh refuses unless it hashes to the
132 pinned `LEARNER_SHA256`); `crumbs` is never built here: it is the prebuilt, pinned binary at
133 `~/workspace/hive-worktrees/crumbs-v1/target/release/crumbs` (or `$TC_CRUMBS`), section 3, and
134 runtime_digest.sh refuses unless it hashes to `CRUMBS_SHA256`. `build/` is ignored by git, so the clone stays
135 clean. A failed build or test here, or a runtime_digest that differs, is a VOID of the stage "tests": record
136 it with `calibration/scripts/record_void.sh --commit <C_f> --step 7 --code <BUILD|TEST|RUNTIME_DIGEST>
137 --reason <text> --command <the exact command>` (FAILURE_REPORTING.md section 2).
138
139 Then the audit runs in the jail:
140
141 ```
142 $F/calibration/scripts/evaluator_env.sh --frozen $F \
143 --sealed ~/aien-data/turing-cal/sealed/<C_f> \
144 --ro ~/aien-data/crumbline \
145 --out ~/aien-data/turing-cal/eval/<C_f>/audit -- \
146 $F/calibration/scripts/verify_holdout_separation.sh \
147 --sealed-dir ~/aien-data/turing-cal/sealed/<C_f> \
148 --out ~/aien-data/turing-cal/eval/<C_f>/audit/overlap_audit.json \
149 --repo $F
150 ```
151
152 The same audit (with `git archive` and `--repo ~/workspace/omega/.git`, which
153 works the same way for the audit) was run on 2026-09-29 against a throwaway
154 freeze commit and the full default development set (54 trace files, 86 million
155 records). It returned PASS in 3 min 44 s.
156
157 The result is copied to `calibration/experiments/EXP-001/overlap_audit.json`. An
158 audit that runs to the end and finds an overlap or a freeze-order break is an
159 **S2 FAIL, final**: it is reported with the verdict FAIL (FAILURE_REPORTING.md
160 section 2); the set is never quietly replaced. An audit that cannot run (exit 2)
161 is an infrastructure failure and follows the void rule: record it with `record_void.sh --commit <C_f> --step 7
162 --code AUDIT ...` as above.
1638. **Evaluation.** Orchestrator, inside `evaluator_env.sh`, with run root
164 `R=~/aien-data/turing-cal/eval/<C_f>/run` (layout: DATA_FORMAT.md section 4).
165 First, in an ordinary shell (reads the sealed set only through the script's own
166 hash checks, writes one file):
167
168 ```
169 mkdir -p $R && cp $F/calibration/experiments/EXP-001/candidate_manifest.json $R/
170 $F/calibration/scripts/make_dataset_manifest.sh --sealed ~/aien-data/turing-cal/sealed/<C_f> $R/dataset_manifest.json
171 cp ~/aien-data/turing-cal/eval/<C_f>/audit/overlap_audit.json $R/
172 mkdir -p $R/docs/profiles && cp $F/calibration/profiles/Turing-profile-v1.0.toml $R/docs/profiles/
173 cp $F/calibration/experiments/EXP-001/candidate_manifest.json $R/docs/
174 ```
175
176 Then the run, in the jail. The two memorization controls (76 MB and 45 MB, not in
177 git) are bound read-only from `~/aien-data/turing-cal/candidates/`; they are the
178 files hashed at freeze and are never regenerated at evaluation time (the
179 evaluator re-checks every hash before scoring):
180
181 ```
182 $F/calibration/scripts/evaluator_env.sh --frozen $F \
183 --sealed ~/aien-data/turing-cal/sealed/<C_f> \
184 --ro ~/aien-data/turing-cal/candidates \
185 --out $R -- sh -c "cd $R && $F/build/turing-exp001-eval/turing-cal-eval run --repo $F \
186 --manifest candidate_manifest.json --cand-dir $F/calibration/experiments/EXP-001/candidates \
187 --cand-dir ~/aien-data/turing-cal/candidates --dataset dataset_manifest.json \
188 --overlap overlap_audit.json --out bundle --work work"
189 ```
190
191 Then the independent scorer, in the same jail and the same run root, reading only
192 the published docs at C_f, the bundle and the sealed CTR1 files named in the
193 dataset manifest (it never includes or links omega `src/`):
194
195 ```
196 ... -- sh -c "cd $R && $F/build/turing-verify-indep/indep-scorer --docs docs \
197 --bundle-root . --cand-dir $F/calibration/experiments/EXP-001/candidates \
198 --cand-dir ~/aien-data/turing-cal/candidates \
199 --out bundle/scorer_independent.json --details indep_details.json"
200 ```
201
202 (`docs/` holds the profile and the candidate manifest from C_f, copied above.)
203 Finally the gate, in the jail:
204
205 ```
206 ... -- sh -c "cd $R && $F/build/turing-exp001-eval/turing-cal-eval gate --bundle bundle \
207 --independent bundle/scorer_independent.json"
208 ```
209
210 The bundle is `$R/bundle` = `~/aien-data/turing-cal/eval/<C_f>/run/bundle`, outside git. In sealed mode
211 the evaluator refuses any other bundle location (OUT_PATH), because this directory also holds the one EXP-001
212 void counter. The gate writes `final_receipt.json` there exactly once (exclusive create); nothing in the run
213 writes into the git tree.
214
215 The independent scorer is frozen at C_f (its source hash is in the manifest). It
216 may not be revised after the sealed release: a revision is a new scorer version,
217 and for this experiment S8 = FAIL. Group 2 (second-seed replication) is scored in
218 the same run. The dev dry run (`make turing-exp001-eval-dry`) runs exactly this
219 sequence on development seeds 7 and 6.
2209. **Results published whether pass or fail**, together with every void receipt and
221 every failed generation attempt. A later publication commit copies, byte for byte, the files listed in
222 FAILURE_REPORTING.md section 6 from `$R` into `calibration/experiments/EXP-001/` (same relative paths) and
223 writes `calibration/experiments/EXP-001/published_manifest.sha256` over them
224 (format in FAILURE_REPORTING.md section 6). Files derived byte for byte from the
225 sealed data stay outside git.
226
227## 3. Sealed data: seeds, generator, layout
228
229**Seed rule `turing.cal.sealed.v1`.** For group `g` in {1, 2} and index `j` in
2300..N-1:
231
232```
233msg = ASCII "turing.cal.sealed.v1|<commit>|<profile_digest>|g<g>|<j>" (no newline;
234 commit = 40 lowercase hex, digest = 64 lowercase hex, j decimal)
235seed = first 16 hex chars of SHA-256(msg), top bit cleared, as a decimal integer
236```
237
238Anyone can recompute a seed with:
239`printf '%s' 'turing.cal.sealed.v1|<commit>|<digest>|g1|0' | sha256sum`. Take the
240first 16 hex characters, subtract 8 from the first one if it is 8 or more, and read
241the result as a hexadecimal number. `generate_sealed_data.sh --derive-only --commit C
242--profile-digest D --n N` prints the whole table. A seed that equals a burned
243development seed (0-10 or 20260927), by EXP-001R also one of the six EXP-001 sealed seeds, or that repeats, stops the script. The chance
244is about 2^-59.
245
246**Generator (pinned).**
247
248* `crumbs` = `~/workspace/hive-worktrees/crumbs-v1/target/release/crumbs`, SHA-256
249 `72e396b15532aa93afb1f215521e04dca8470f779f3de35c10b04b07bff96638`. It is used
250 prebuilt; nothing in this protocol builds Rust.
251* The learner is part of the generator. The traces record the learner's own search,
252 so a different learner build gives different `trace.ctr` bytes. The script builds
253 `crumbline-learner` with `make crumbline-learner` from a clean `git archive` of
254 the freeze commit. The result must hash to the pinned
255 `8159bdff248efa67fa2cf75bb0b506bc359f4a2269139d03479753c0fc393416`, which is the
256 build of omega `1b75aa8`. The same bytes come out whether it is built in a
257 worktree or in a `/tmp` export.
258* Command per seed, inside the generation jail:
259 `crumbs experiment --learner <learner> --seed <seed> --out <group dir>/seed-<seed>`.
260 `experiment` always runs both conditions: control first (library off, independent
261 of learning), then learning. The Turing profile uses the control condition. The
262 learning files are hashed into `manifest.json` and then deleted, unless
263 `--keep-learning` is given.
264* The generator appends to existing files, so every seed directory must be new. The
265 script refuses otherwise.
266
267**Determinism (measured 2026-09-29, lane C).** One trial seed
268(9000000000000000001) was generated twice outside the jail and once inside it.
269`trace.ctr`, `samples.cts`, `evaluations.jsonl` and `promotion.json` came out
270byte-identical every time (trace.ctr SHA-256 `7e1509f5...`). `ledger.jsonl`,
271`report.json` and `*-outcomes.json` differ from run to run, because they carry
272time-based UUIDs and wall-clock times. `manifest.json` marks those three as
273`"volatile": true`. Generation reads no bank, ledger or state file: its inputs
274are the seed, the generator binary, the learner binary and the fixed experiment
275design compiled into the generator. Seeds up to 2^64-1 are accepted. Cost: about
27610 s of wall time per seed and 0.93 GB with both conditions, or 0.50 GB with
277control only.
278
279**Lineage note.** Regenerating development seed 1 with today's generator and
280learner reproduces `final-20260927/rep10/seed-1` byte-for-byte. It does not
281reproduce `exp-20260927-rep10/seed-1`: 16 of 2,172,776 records differ in
282`result_class`. That set was produced with an earlier generator build and an
283earlier learner (its ledger records a different learner digest). Sealed data
284therefore follows the `final-20260927` lineage. The profile states which lineage
285its development data comes from.
286
287**Layout** of `sealed/<commit>/`: `group-<g>/seed-<S>/control/{trace.ctr,
288samples.cts, evaluations.jsonl, ledger.jsonl, promotion.json}`,
289`group-<g>/seed-<S>/{report.json, control-outcomes.json}`, `seed_commitment.json`
290(rule, inputs, all seeds, SHA-256 of the seed list, generator and learner hashes,
291times, manifest hash), `manifest.json` (every file with its SHA-256, bytes, record
292count (`trace.ctr` bytes/247, `samples.cts` bytes/268, `.jsonl` lines), volatile
293flag and kept flag), `generation.log`, and `COMPLETE`, which is written last and
294holds the SHA-256 of `seed_commitment.json`. Files end mode 0400 and directories
2950500. No sealed file may have a second hard link.
296
297**If generation fails** part way (before any score exists, so it is an infrastructure
298failure), the script itself renames the partial directory to
299`sealed/<commit>.failed-<k>` (k = 1, 2, 3) with a `FAILED` note (reason, exact command,
300time), writes the next void receipt (stage "generation") into the one EXP-001 void counter
301`~/aien-data/turing-cal/eval/<commit>/run/bundle` (calibration/scripts/tc_void_lib.sh), and stops. It is kept
302and published, never used. The retry must be the byte-identical command under the same C_f: the seeds are fixed by
303C_f, so a retry produces the same data and gives no room to pick a better sample. Nothing may change between
304attempts. The limit is three voids for all of EXP-001, generation, frozen-tree tests and evaluation counted
305together: the void that is the third of the experiment writes `final_receipt.json` (INCONCLUSIVE, reason INFRA) in
306that counter, generation also writes `sealed/<commit>.INCONCLUSIVE_INFRA`, and every later start is refused:
307EXP-001 ends INCONCLUSIVE with reason INFRA (FAILURE_REPORTING.md section 2). A new freeze commit
308is never used to get around a failed generation.
309
310## 4. Overlap audit (`verify_holdout_separation.sh`)
311
312It writes `overlap_audit.json`. PASS requires every gate:
313
314| Gate | Check |
315|---|---|
316| complete | `COMPLETE` equals SHA-256 of `seed_commitment.json` |
317| integrity | every kept file re-hashes to its `manifest.json` value |
318| seeds | every seed re-derives from the rule; none is burned |
319| after_freeze | every sealed file's modification time is later than the freeze commit's committer time, and the candidate manifest at that commit is `"status": "frozen"` (so the commit is C_f) |
320| single_link | no sealed file has a second hard link |
321| crumb_digest | no ledger `crumb_digest` appears in both development and sealed data |
322| sealed_digest | no ledger `sealed_digest` (hidden held-out set) appears in both |
323| trace_stream | no ledger `trace_stream_digest` appears in both, except degenerate stream digests: a digest repeated across different crumbs inside one ledger file belongs to a content-empty stream. The audit lists these; it does not hide them. |
324| crumb_block | no crumb's CTR1 record-body block (SHA-256 over bytes 0..214 of each of its records; bytes 215..246 are the position-dependent chain digest) appears in both (`tools/turing_cal_overlap.c`). The tool checks only CTR1 framing (magic, version 1, event index rising within a crumb), so learning traces with a different origin field are read too; a malformed file stops the audit with exit 2. |
325
326Reported but not gated, with their counts:
327* `first_state_overlap`: different crumbs of small families can start from the same
328 state. A trial seed against development seeds 1-7 showed 1 such crumb, whose block
329 digest was different.
330* `record_body_overlap`: single search events can be byte-identical across different
331 crumbs. The trial run found 15 of 4.2 million.
332
333Development data defaults to every `trace.ctr` under `~/aien-data/crumbline`, both
334conditions and all runs, plus each one's sibling `ledger.jsonl`.
335
336Self-checks, run 2026-09-29 on a throwaway freeze commit with N = 1: PASS against
337development seeds 1-7. The same sealed set also got a planted overlap: one sealed
338trace was added to the development list. That run FAILED on crumb_digest (188),
339sealed_digest (188), trace_stream (186) and crumb_block (186), as it should. A second run used the full default development set (54 trace files, 86 million records) and the jailed Auditor command of section 2 step 7 (archive form): PASS in about 4 minutes.
340
341### EXP-001 outcome and the EXP-001R amendment
342
343EXP-001 used the table above unchanged. Its audit FAILED on `crumb_digest` (1 shared; every other gate passed) and
344EXP-001 ended as a terminal FAIL of S2, published in `calibration/experiments/EXP-001/`. `crumb_digest` hashes only the
345visible part of a crumb. The shared crumb was population Ambiguous (families that by design show too few observations
346to determine the hidden answer) and its `sealed_digest`, the hidden held-out set, differed. Chance matches are
347therefore expected for such crumbs.
348
349EXP-001R (`EXP_ID=EXP-001R`, profile `Turing-profile-v1.1`, `calibration/preregistration/EXP-001R.md`) amends two
350things, written before any EXP-001R data exist. With `EXP_ID` unset the scripts behave as for EXP-001. The C tools read the same variable: `turing-cal-eval` and `indep-scorer` (both `EXP_ID=EXP-001` by default, profile v1.0; `EXP_ID=EXP-001R`, profile v1.1) put it in every receipt (`experiment`, `run_id`), keep the bridge key name `EXP_001_COMPRESSION_BRIDGE` for both, and refuse an unknown id. The void counter is per experiment because it lives in the per-freeze-commit run directory. `make turing-exp001-eval-dry EXP_ID=EXP-001R` is the development dry run for the successor.
351
352* **Amended G6.** A sealed `crumb_digest` shared with any development or burned `crumb_digest` FAILS, EXCEPT when the
353 sealed record's population is Ambiguous AND its `sealed_digest` differs from the `sealed_digest` of every
354 development or burned record carrying that `crumb_digest`. Exempt matches are counted and listed (crumb_digest,
355 population, both sealed_digests) in `overlap_audit.json` under `g6_exempt_matches`; the G6 detail reads "N shared, M
356 exempt (Ambiguous, different hidden set)". G7 (`sealed_digest`), G8 (`trace_stream`) and G9 (`crumb_block`) are
357 unchanged for all populations. There is no numeric tolerance.
358* **Burned data added.** The six EXP-001 sealed seeds are burned (`calibration/scripts/burned_seeds_exp001.txt`):
359 `generate_sealed_data.sh` refuses them (`--is-burned SEED` prints the verdict) and gate G3 fails on them. The EXP-001
360 sealed traces and ledgers (`~/aien-data/turing-cal/sealed/d3cba292b9282116d1e374db22344bca4d47717e`) join the
361 development and burned comparison list (`--burned-dir DIR`, repeatable; EXP-001R adds this root by default,
362 `TC_EXP001_SEALED` overrides the location) in addition to every `trace.ctr` under `~/aien-data/crumbline`, which is
363 kept whole.
364
365`make test-turing-cal-blinding` checks both on synthetic planted ledgers: an Ambiguous visible-only match with a
366different `sealed_digest` passes with 1 exempt (against a development or a burned trace); the same match with an equal
367`sealed_digest`, or with a non-Ambiguous population, fails; the EXP-001 strict rule still fails the Ambiguous match;
368each burned seed is refused.
369
370## 5. What the machine enforces, and its limit
371
372**Mechanism.** `bubblewrap` (`/usr/bin/bwrap` 0.9.0, not setuid). AppArmor lets it
373create user namespaces for an ordinary user; plain `unshare --user` is blocked on
374this host. No sudo is needed. Every jail starts from an empty root and binds in
375only the paths listed in section 1. The jail also gets its own user, pid, network,
376IPC and UTS namespaces, cannot create further user namespaces
377(`--disable-userns`), gets a fresh `/proc`, an empty `/tmp` and HOME, and dies
378with its parent. A path that is not bound, such as the sealed root inside the
379Candidate jail, does not exist there, and mounts made outside cannot be undone
380from inside. The wrappers refuse any bind that equals, contains or sits inside a
381hidden path (the sealed root and the evaluator root).
382
383**Test** (`make test-turing-cal-blinding`, 17 checks, all PASS on 2026-09-29). The
384test plants a random canary file in the real sealed root. The Candidate jail
385cannot read it, cannot list the sealed root, cannot find it by name anywhere,
386cannot reach it through `/proc/*/root`, cannot create a user namespace, cannot
387mount, and has no network. It can read development data and write its own working
388tree. The Candidate wrapper refuses to bind a parent of the sealed root. The
389Evaluator jail can read the canary, cannot modify the frozen tree or the sealed
390data, can write its output, has no network, and cannot see development data. The
391Evaluator wrapper refuses an output directory inside the frozen tree.
392
393**Limit.** Everything here runs as one Unix user (uid 1000). The kernel enforces
394the jail on every process started through a wrapper. A process of the same user
395started outside any wrapper can still open the sealed root, because file modes do
396not separate a user from itself. Layer 1 (the data does not exist until the freeze
397commit exists) and layer 3 (the audit) cover this for the candidates themselves,
398since those are hashed before any seed can be computed. The uid upgrade below
399closes the gap for everything else.
400
401**Optional upgrade: a separate sealed user (needs sudo, which only Drake can
402run).** Run once, in a terminal on the Spark, before step 4:
403
404```
405sudo useradd --system --no-create-home --shell /usr/sbin/nologin turing-sealed
406sudo mkdir -p /home/drakestapleton/aien-data/turing-cal/sealed
407sudo chown turing-sealed:turing-sealed /home/drakestapleton/aien-data/turing-cal/sealed
408sudo chmod 0700 /home/drakestapleton/aien-data/turing-cal/sealed
409```
410
411Generation and evaluation would then run as that user, through
412`sudo -u turing-sealed calibration/scripts/generate_sealed_data.sh ...` and
413`sudo -u turing-sealed calibration/scripts/evaluator_env.sh ...`. Every process
414belonging to `drakestapleton`, agents included, would get "permission denied" on
415the sealed root. This should work but has not been tested. The `turing-sealed` user also needs read and execute access to the frozen export, the omega git directory under `~/workspace` and the pinned `crumbs` binary under `~/workspace/hive-worktrees`, so those parent directories must let it through. EXP-001 does
416not depend on this upgrade; the profile records which arrangement was used.
417
418## 6. Files
419
420* `calibration/scripts/generate_sealed_data.sh`: seed derivation, freeze checks, jailed generation, manifest, commitment
421* `calibration/scripts/candidate_env.sh`, `evaluator_env.sh`, `tc_jail_lib.sh`: the jails
422* `calibration/scripts/verify_holdout_separation.sh` + `tools/turing_cal_overlap.c`: the overlap audit
423* `calibration/scripts/test_blinding.sh`: the enforcement self-test
424* `mk/turing_exp001_c.mk`: `make turing-cal-overlap`, `make test-turing-cal-blinding`
425* `calibration/scripts/freeze_candidate.sh`: the candidate manifest (step 1; `--freeze` makes C_f's content)
426* `calibration/scripts/freeze_receipt.sh`: step 4, the freeze receipt for C_f (TURING_PROFILE_V1_FROZEN)
427* `calibration/scripts/indep_source_digest.sh`: the independent scorer source digest (turing.cal.indep_source.v1)
428* `calibration/scripts/runtime_digest.sh`: the runtime digest over the seven binaries
429* `tools/turing_verify_indep/` (`make turing-verify-indep`, `mk/turing_exp001_indep.mk`): the lane D independent scorer
430* `calibration/docs/DATA_FORMAT.md`: the trace, dataset manifest, run root and bundle formats