<!-- Public copy of a research file: clock times, machine names, scratch paths and approval quotes removed. -->
Timestamp (date -u): 2026-12-01 (FROZEN by the main thread; draft text written 2026-11-26 by PREREG3)

# Look #56 preregistration, FROZEN (PREREG3 text; supersedes R4_MODEL/MODEL_PREREG_v2_DRAFT.md for look #56).
Status: DRAFT. Nothing here may be run on holdout pages. The runner R4_PREREG3/run_lik_holdout_v3.py refuses holdout mode
while `DRAFT = True`. Holdout not opened by PREREG3 (only page ids and ZL page-header metadata were read).
Adopted on Jon's instruction (2026-11-26 [time omitted], "Do it before #56"): sealed final test (prereg/seal/SEAL_v1.md), one
timestamped preregistration per look (claim, rival predictions, pass bar, stop rule), a decision log (kept by another agent).
Companion: R4_PREREG3/SEALED_TEST_PREREG_DRAFT.md (look #57), R4_PREREG3/POWER3.md (power for both looks).

## 1. Claim (one)
The fitted scribe program scribe4 (scribe4 core `int_prev` + the post-hoc sheet spelling cache) predicts the ZL text of
unseen sheets better than every rival generator program. Measured as held-out bits per EVA character (word end included) on
the 90 sheet-entangled holdout pages, each scored by models fitted without any page of its bifolio (bifolio-blocked), with
the same sheet cache on the claimed model and on every rival, as an intersection-union test over all 8 gated rivals.
Discovery basis (bifolio-fold CV, ZL, cache on both sides; R4_MODEL/LOG.md MOD-12): scribe4 1.76640 bpc; margin and CR1 z
vs fLAB +0.0230 (7.65), fB2K8 +0.0304 (7.67), fA +0.0340 (10.6), fNbase +0.0372 (10.8), M2 LAB +0.0517 (15.0).

## 2. What each rival family predicts (what a win for it would look like)
A rival "wins" look #56 if, for that rival, delta <= 0 or z < bar: then the claim fails (IUT), whatever the other rivals do.
- M2 LAB (language-split; self-citation with edits on top of a K = 8 page-regime row table, m2lib.Tilted): the text is a
 scribe copying and editing recent words of the page, with word choice also set by which row of a table is in use. A win:
 on unseen sheets the copy-with-edits kernel plus row regimes explain the words as well as scribe4's positional grammar,
 prevlast class and spelling model; the scribe model's discovery edge was sheet-local.
- M2 LA (self-citation with edits, per language): pure autocopy (recent-word copying and slot edits) generates the text;
 scribe4's position and line structure add nothing once copying is modelled on new sheets.
- M2 LB2K8 (page-regime grille/table rows, K = 8, per language): words are drawn from a small number of row distributions
 that switch within a page (grille/table generation). A win: row regimes carry the predictable structure on new sheets.
- M2 LNpure (Naibbe cipher, fixed key + spelling): text is a verbose cipher of a plaintext through glyph tables with
 positional unigram/prefix/suffix roles. A win: the cipher tables predict held-out words as well as scribe4.
- fLAB, fA, fB2K8, fNbase (R4_FAIR fair rivals: the same four mechanisms, Naibbe on the B0s base for fNbase, each given M1's
 full 36-feature position tilt with Currier-language / hand / section / quire offsets, fitted on honest inner-split source
 predictions): the rival mechanism plus the same position grammar the scribe model uses. A win: scribe4's own parts beyond
 that shared layer (proper KN spelling with exact normaliser, prevlast tilt group, end-zone / line-start rewrite channels,
 room term, lexicon/bigram/page-cache mixture) do not generalise to unseen sheets. fLAB is the strongest rival on discovery
 (POWER3.md); a fail driven by fLAB alone would say "copying + rows + the shared tilt" is as good as the scribe program.
- What scribe4 predicts: delta > 0 against all 8, with point estimates near the discovery margins above (the 90 pages are
 all sheet-entangled, i.e. scored exactly as the discovery bifolio folds were; no extra shrinkage is expected from the
 blocking itself). Smallest expected margin: fLAB, about +0.02 bpc.

## 3. Data and exact page list
- Pages scored: the 90 pages of `entangled_90` in prereg/seal/SEAL_v1_pages.json (sha256
 063f841e98f7fc2df43cbba60b79eb1ad790e916770b177f917157862ddc9e82; derived from split_v1 holdout and
 R3_BF/out/folds_and_holdout.json; listed there, not copied here). SEAL_v1.md sha256
 24f4a59c66eabd0718301f589e60fef6c72061f5b08eb7add4dfd6056ee95a56. split_v1.json sha256
 264dd995833c0957a73584c93212e5bf9074b8c697855d7936105a1c63fbb127. Training = the 124 discovery pages. All asserted by the runner.
- Transcription: ZL only = data/zl/ZL3b-n.txt (sha256 25920f0f...a794af470), loci without a;X tag.
- G (bifolio clusters, ZL header $Q + $B), computed with R3_BF/scripts/bf.py's header table, no text read
 (R4_PREREG3/scripts/g_count.py, out/G_bars.json): G = 45 for the 90 pages (every one of the 45 bifolios has a discovery
 mate; none is shared with clean_12). Pages per bifolio fold 0..4: 20 / 17 / 8 / 28 / 17.
- Tokens and contexts: R4_MODEL/MODEL_SPEC.md sections 1-2 (core.contexts, gparse.load(..., comma_space=False,
 para_fix=True), P loci). Unreadable words are context, not scored. Unit: -log2 p summed over readable words / sum(len + 1).
 A listed page with no scored token simply contributes nothing (the runner lists such pages in `allowed_pages_without_lines`).

## 4. Models (frozen as code AND as text)
- Claimed: scribe4.Scribe4(**scribe4.CONFIGS[S4_CONFIG]) + runner `sheet_cache`, specified in R4_MODEL/MODEL_SPEC.md.
 S4_CONFIG = `scribe4` (= CONFIGS['int_prev']) is a NAMED PLACEHOLDER: R4_MODEL/MODEL_verdict.md is still the [time omitted]
 provisional version; the freeze sets S4_CONFIG from the final verdict and re-hashes.
- Word features (fix of FAIR_SPEC D1): the position tilt uses 36 binary word features (M1 FNAMES: 9 first-unit + 8 last-unit
 + 6 length + 10 glyph-pair + 3 others; M1_program/scribe.py:30-36). Earlier drafts and MODEL_SPEC.md section 3's heading
 say "33"; the code, and this prereg, have 36.
- Rivals, gated (8, intersection-union):
 - M2 (R3_PRE definitions, each m2lib.Tilted over m2lib.ByLang of the family): LAB (FamAB K = 8), LA (FamA), LB2K8 (FamB2
 K = 8), LNpure (Naibbe pure). Fix of FAIR_SPEC D3: the M2 rivals do NOT get the scribe model's / M1's tilt. They carry
 their own narrower layer, m2lib.Tilted (m2lib.py:83-121): 27 one-hot features (10 first-unit + 7 length + 9 final + sho),
 keyed by the 7 core positions, no group offsets, L2 1.0, re-weighting in-vocabulary mass only.
 - R4_FAIR fair rivals fLAB, fA, fB2K8, fNbase = rivals_fair.FairTilt(source in {LAB, A, B2K8, Nbase}, trans) with defaults,
 specified in R4_FAIR/FAIR_SPEC.md (supersedes INTERFACE.md for the spec): M1's 36-feature, 10-position tilt with
 language / hand / section / quire offsets, fitted against honest 2-way inner-split source predictions.
 - Shared by all 9 models: the post-hoc sheet spelling cache (MODEL_SPEC.md section 9; FAIR_SPEC section 9). The rivals'
 cache uses scribe4.KNFixed, so scribe4.py's hash locks the rivals' scoring too.
 - Not rivals: M1-derived FAIR sources (M1kn, M1h, M1src, M1rows, M1copy).
- Hash list (draft-time sha256; the freeze re-hashes every entry into a SHA256SUMS file and into the runner's FROZEN map,
 which holdout mode asserts entry by entry). Fixes FAIR_SPEC D6: adds pairsplit.json, R3_BF/scripts/bf.py, fam_b_lik.py,
 the data files and the seal files.
 | file | sha256 |
 |---|---|
 | R4_MODEL/scribe4.py | 0e1936f019d4871e0325c82c33831cd5bc3fb8c6483a857b1072bd4bf7f52bbb |
 | R4_MODEL/scripts/exactz.py | 9704c3d5f03cccf11e9a1efdfb266e826e54887597779ceca97d91a8dfaa281b |
 | R3_INT/scribe3.py | 20b4864fcfab957db7c605613575681994d7456a766d650e4052603287710b7f |
 | M1_program/scribe.py | cc12d51d73317f085c380503582ab31bf6618d322104c0aeb1a4de69a09ac671 |
 | model/core.py | f93403b5809f6dffa1058e4a77c4d55cc2c19e5333aa0dd321932995136327dd |
 | R4_FAIR/rivals_fair.py | aed6e8833e4a686bbe83a6d2f7d4cae2e7a4960088608240591e7fc8efb79073 |
 | R4_FAIR/out/pairs57.json | dc9becbb5db1d6435083c7a82545ae6f761202dfcdb8dd023378570a514d5d36 |
 | R4_FAIR/out/pairsplit.json | 5d28f4f5d0fbff90503de3a9e4185d53546454d044bc2584c6c987e18b65fa2f |
 | R3_BF/scripts/bf.py | 77d3d5db0fb2462716637f26de5cac002971b9ca6d7dc5dc4600a3e7bdaebdd2 |
 | M2_rivals/m2lib.py | b68f0889b378ae4e2bf2ae2407979490718d7305fc5bd9544ba022c2efe62e60 |
 | M2_rivals/baselines_m2.py | 0e0d9a41d136ecedafcc798f2c237fac2f28e224cd0abbcfb1fa34dfb3700508 |
 | M2_rivals/fam_a_lik.py | 8d6f1da0ba9c55b2125701a8466fbc0f619a49e64fb5363d40be92c0afcd422d |
 | M2_rivals/fam_b2_lik.py | 295b8a8cb225efccad5ad76843a8dcb0acc3fee6dc06a4281751cd980af1e344 |
 | M2_rivals/fam_b_lik.py | d1fc9c78f186eccfea5cd46bbdaceb0503f5d7ebb08732a3e900034c04ef7f0b |
 | M2_rivals/naibbe_lik.py | c7c45e533ff8036eff7c3d3f835168e540b6719c575bf0ee82a7f7fb27d84498 |
 | scripts/generators/common.py | 323a60066b4e6761de07af3fcecb6dae0be923d5323f8fda579339a63b9a8c38 |
 | scripts/gallows/gparse.py | 0d384742b18d12c4c63872c7c77c181960ac4601ef3779ae0d1e267f4bcc5c74 |
 | results/generators/naibbe/naibbe_tables.csv | 4e7cfd54b7ec66515d39a51e11ec97e8e19b643b0b189124eebc3982e707dcec |
 | data/zl/ZL3b-n.txt | 25920f0ff8f103f5a944f75533a0008e8e5458a1ac978669b3c9535a794af470 |
 | data/interlinear/Interlinear_ivtff_1.5.txt | 345efcc4dcce2bde1adea37c2652292c813ef639020bc2172bf940877561419a |
 | prereg/split/split_v1.json | 264dd995833c0957a73584c93212e5bf9074b8c697855d7936105a1c63fbb127 |
 | prereg/seal/SEAL_v1_pages.json | 063f841e98f7fc2df43cbba60b79eb1ad790e916770b177f917157862ddc9e82 |
 | prereg/seal/SEAL_v1.md | 24f4a59c66eabd0718301f589e60fef6c72061f5b08eb7add4dfd6056ee95a56 |
 | R4_MODEL/MODEL_SPEC.md (text spec) | 2d8577fd53bf3bbae6f24916e8d8c000779b6e0e423da14759b4cf0d75490d3a (must be final at freeze; fix its "33" heading) |
 | R4_FAIR/FAIR_SPEC.md (text spec) | 018a3f32e5e76f47b52e3814435504c5e7d9055357b53402c37c5a86c2579f6d |
 | R4_PREREG3/run_lik_holdout_v3.py (draft runner, as unit-tested) | e201d3e33d48dacc10ab5c962dde5e39c80642b384799cf8f7b0d64ae66c6213 |
- Run-time caches (fix of FAIR_SPEC D11): the scoring path reads two pickle caches outside the project that no sha256 covers:
 rivals_fair.CACHE = (scratch folder) (MC spelling draws; FAIR_SPEC D11) and scribe4.DPCACHE =
 (scratch folder) (exact-DP pattern distributions of each KNFixed spelling model; the same issue, found by
 PREREG3, not in FAIR_SPEC). The runner creates two NEW EMPTY directories at run time
 ((scratch folder) stamp>_<pid>), asserts both are empty, points both module
 globals at them before the first fit, asserts the redirection in every factory, and writes the two paths to the result.
 Every MC draw and DP table of the look is therefore computed by the hashed code during the look. Cost: more compute than
 a cached run (CV-fold training sets equal the holdout training sets, so the old caches would have been hit); plan for it.

## 5. Scoring (fixed): bifolio-blocked
- Bifolio = ZL header $Q + $B; bifolio fold f(p) = int(sha256('voynich-model-cv-bif:' + Q + B), 16) % 5.
- For f = 0..4: fit each model on the discovery pages with f(p) != f; score the entangled_90 pages with f(p) = f, lines in file
 order. Groups hold 20 / 17 / 8 / 28 / 17 pages. The runner asserts that no scored page shares a bifolio with a training page.
- scribe4's room term: the model is built with all_lines = training + scored lines (token skeleton and earlier-line lengths
 of the scored pages only; MODEL_SPEC.md sections 7 and 10). The scored lines are the 90 pages' lines only.
- Sheet cache (MODEL_SPEC.md section 9), claimed model and every rival: cache = earlier complete lines of the page + earlier
 scored pages of the same bifolio in the same group; mu per cache-size bucket by maximum likelihood on the other four
 groups' tokens (leave-one-group-out). Only entangled_90 lines are ever loaded into the scored set, so no clean-12 text can
 enter any cache (the clean bifolios share no bifolio with the 90; asserted by page sets). Rivals without the cache:
 reported, not gated.

## 6. Statistic (fixed)
- delta_r = sum_p (bits_r(p) - bits_claimed(p)) / sum_p chars(p) (bpc; positive = claimed better).
- SE: ratio-estimator sandwich clustered by holdout bifolio, CR1: z = delta / (SE sqrt(G/(G-1))). G = number of bifolios
 with at least one scored token (45 by the header count; the runner counts it from the scored pages).
- Bar = max(isf(0.05/56) = 3.124, t_{G-1} isf(0.05/56)). At G = 45: max(3.1237, t_44 3.3258) = **3.326**. If fewer than 45
 bifolios carry scored tokens the same formula is applied to the actual G (no other change).
- Reported with the decision: one-sided lower confidence bound delta - bar x SE_CR1, per rival.

## 7. Pass rule (one look, ZL only)
- PASS iff, for EVERY one of the 8 rivals (LAB, LA, LB2K8, LNpure, fLAB, fA, fB2K8, fNbase): delta_r > 0 and z_r >= bar.
 Intersection-union test: no multiplicity correction across rivals. A run that did not score all 8 rivals is a FAIL.
- FAIL otherwise. No re-analysis with other models, folds, transcriptions, page subsets or bars.

## 8. Stop rule (what we conclude and do)
- Schedule fixed now, independent of the outcome: look #56 (this) and then look #57 (the sealed test) both test the SAME
 model frozen before #56. Nothing learned from #56 may change the model, the rivals, the runner or #57's prereg; any such
 change voids #57 for this model.
- On PASS: conclude "scribe4 predicts the ZL text of unseen sheets better than each named rival program, by the reported
 margins and LCBs" (90 sheet-entangled pages; not shown to be the true generating process). Record in the ledger and the
 decision log; then run #57 unchanged. The claim counts as confirmed (charter: second and third transcription) only if #57's
 gated part also passes.
- On FAIL: conclude "not confirmed on ZL"; name the rival(s) that blocked it and report delta, z and LCB for each. Record in
 the ledger and the decision log. Do not reframe. #57 still runs as scheduled on the same frozen model (deciding
 afterwards whether to run it would be an outcome-dependent fork) and is reported as is; a #57 pass after a #56 fail is
 reported as "mixed", not as confirmation. Then: gap analysis on DISCOVERY data only (which positions / sections carry the
 shortfall, from the reported per-position deltas), next model branch. A model revised after #56 cannot be scored on the
 sealed cells (they belong to this frozen model's test); it needs new held-out data.
- Either way: the ZL text of the 90 entangled pages is spent for likelihood claims after #56; any further use is a new look.

## 9. Reported, not gated (same run)
- Per rival: delta, SE_CR1, z, LCB with the cache on both sides (gated form), with neither side cached (`rivals_nocache`),
 and with the claimed side only cached (`rivals_mixed`); rival bpc; rival mu table.
- Claimed bpc with and without the cache; fitted mu per group and bucket.
- Per-position deltas (PARA_START, LINE_START, WORD2, POST_GAP, PRE_GAP, LINE_FINAL, PENULT, INTERIOR).
- Secondary: standard (leaky) training on all discovery pages, no cache, vs the first rival (LAB).
- Pages where the claimed model is better (count), per-group page counts, scored-page list, allowed pages without lines.

## 10. The 12 clean pages are NOT scored in #56; what has already been seen
- ZL on the 12 sheet-disjoint holdout pages (clean_12: f58r f58v f65r f65v f103r f103v f107r f107v f112r f112v f116r f116v;
 bifolios H2, T1, T5) is a sealed cell of SEAL_v1 and belongs to look #57. So are Takahashi (;H) and FSG (;F) on all 102
 holdout pages. The look-56 runner refuses any transcription but ZL and any page outside entangled_90 before any model is
 built, drops every other line at load, and so never computes, prints or saves any number for a sealed cell
 (UNITTEST_v3.md). v2's "delta on the 12 bifolio-disjoint pages" report line is removed.
- Already seen (copied from SEAL_v1.md, "What has already been seen of these cells"):
 - Their raw text is not new to the project. Holdout looks #1 to #55 read ZL, H and F text on holdout pages, the 12 clean
 pages included, for positional and glyph-pair statistics (BATCH 1, 2b, 3, 4, 5b, 6 and others; see the ledger).
 - No likelihood model has ever scored any holdout page in any transcription: no held-out bits for scribe4, M1, INT or any
 rival exist for any sealed cell. R4_MODEL's runner refused holdout mode throughout (DRAFT = True); R4_FAIR, R4_ADJ,
 R4_ZONE and FAIRSPEC report the holdout never loaded.
 - Takahashi and FSG numbers HAVE been seen on the discovery half: every round-3/4 agent reports H and F discovery-CV bits
 (e.g. R4_FAIR M1src H bif 1.7851, F bif 1.7444). Model choices were made with those in view. What is sealed is the
 holdout half of H and F, which no model has scored.
 - The 12 clean pages are small (3 bifolios, one hand). Their part of the sealed test will have low power; the sealed
 test's prereg must give its power before freezing and say which parts are gated and which are descriptive.
- The same holds for the 90 entangled pages: their ZL text was read in looks #1-#55 for item rates, never scored by a
 likelihood model.

## 11. Power (discovery only; R4_PREREG3/POWER3.md)
- Design R3_PRE/paired.py / R4_MODEL power4.py, G = 45 bifolio clusters drawn with replacement from the discovery's 47,
 CR1, bar 3.326, joint IUT over the 5 rivals with per-token discovery files (fLAB, fA, fB2K8, fNbase, M2 LAB; cache on both
 sides; LA, LB2K8, LNpure are weaker than LAB on discovery, M2_verdict.md / TABLES.md). IUT power 1.000 / 0.983 / 0.566 at
 100 / 75 / 50% of the discovery margins (binding rival fLAB: 1.000 / 0.983 / 0.639); max false pass 0.0043 (2000 / 4000 runs).
 Gate (power >= 0.80 at the discovery effect, false pass <= 0.05): PASSES. Below about 60% of the discovery margin the test
 is more likely to fail than pass.

## 12. Freeze and run procedure (main thread only)
1. Wait for R4_MODEL/MODEL_verdict.md (final); set S4_CONFIG; MODEL_SPEC.md final (36-feature heading) and hashed.
2. Copy this file and run_lik_holdout_v3.py to new frozen names; in the runner copy set DRAFT = False and FROZEN = the
 {path: sha256} map of section 4; write every sha256 (incl. this prereg, the runner copy, MODEL_SPEC.md, FAIR_SPEC.md)
 into a SHA256SUMS file; re-stamp the timestamp line; record the look in prereg/split/HOLDOUT_LEDGER.md BEFORE the run.
3. Re-run the unit-test command of UNITTEST_v3.md once on the frozen copy in test mode (no --holdout).
4. `sha256sum -c` the SHA256SUMS file; then `python3 <frozen runner> --look 56 --holdout` (single run, ZL only).
 Output R4_PREREG3/out/LOOK56_holdout_result.json, field decision.verdict. Any edit after freezing voids the freeze.

## 13. Changes vs R4_MODEL/MODEL_PREREG_v2_DRAFT.md
Look #56 restricted to ZL x entangled_90 (H and F moved to #57, sealed); FSG secondary bar removed from #56; G 48 -> 45 and
bar 3.312 -> 3.326; D1 (36 features), D3 (M2 rivals keep m2lib.Tilted), D6 (hash list), D11 (+ scribe4 DP cache: fresh empty
directories) fixed; rival predictions, stop rule, seen-data statement and power filled in; runner v2 -> v3.


## 14. Freeze record (2026-12-01)
- Approval: recorded in the private decision log.
- S4_CONFIG = scribe4 (= CONFIGS['int_prev']) confirmed FINAL by R4_MODEL/MODEL_verdict.md (2026-11-28): best of all configs on ZL, H and F.
 Same as the draft's placeholder, so POWER3's look-56 numbers were computed on the final tokens (IUT 1.000 / 0.983 / 0.566).
- MODEL_SPEC.md changed only as section 12 asked (heading 33 -> 36 features; mu-bound note). New sha256 in SHA256SUMS_LOOK56.txt.
- Runner: frozen56/run_lik_holdout_look56_FROZEN.py (DRAFT = False, FROZEN map of all 23 FROZEN_FILES, S4_CONFIG final).
 Every FROZEN_FILES hash equals its draft-time value in section 4.
- Run command: python3 frozen56/run_lik_holdout_look56_FROZEN.py --look 56 --holdout (single run, ZL, entangled_90).
- Pre-run test: the frozen copy in test mode with all 8 rivals, split over 4 parallel processes (2 rivals each, S4_CONFIG final),
 each from its own copy so outputs do not collide. Plumbing only; discovery stand-in pages; no holdout page.
