# Audit of the f76r margin-index test, 2026-10-15

The findings hold. C1, C2, C3, C4, C5 and C6 all PASS on independent checks, and the p-values reproduce exactly. The defects are bookkeeping and wording (FIX list at the end). None changes a verdict.

Auditor scratch scripts (not edited into the folder): ../../../resources/tools/provenance/index.html#s-529f6f6c536356f3 (mt_copy.py, c4.py, c5.py, c6.py). ZL = c7ffff9e1f3ecbec174e234c.txt No other file in the folder was edited.

## Paragraph structure (C1): PASS

Command: `sed -n 4140,4198p $ZL | grep -n '<%>\|<\$>'` and `... | grep -o '^<f76r.[0-9]*,.[A-Z0-9]*>' | sed 's/.*,//' | sort | uniq -c`

- `<%>` occurs four times in f76r: locus 1 (`@P0`), 39, 44 and 51 (all `+P0`). `<$>` closes at 38, 43, 50 and 56. There is no `<%>` anywhere in loci 2 to 38.
- Tag counts: 1 `@P0`, 37 `+P0`, 9 `=P0`, 9 `*L0`. Every `=P0` line is the line directly after a glyph locus (5, 8, 11, 15, 19, 23, 28, 32, 38).
- Loci 39, 44 and 51 open with polalchdy, poleedaran and qkor. None has a glyph, and the lines before them (38, 43, 50) are text.
- Image f76r_margin_column_lines1-43.png: no gap, indent or paragraph sign at any glyph-headed line. Glyph-headed lines hang a few pixels left, which is the glyph beside them, not a paragraph indent. The only visible breaks are the long-bar gallows openers at about y 1620 (locus 39) and y 1860 (locus 44).
- Alignment check by eye: s sits level with locus 5 (qokedy...), d with 8 (qoaiin...), q with 11, the fourth glyph (s) with 15 and the ninth with 38. Each glyph is level with the first text line after its ZL locus, which is how margin_tests.py builds its blocks.
- Wording note: "38 lines" is the ZL locus count. There are 29 physical text lines and 9 glyph loci in loci 1 to 38. The "2 to 5 line intervals" figure counts text lines and is correct.

## Glyph sequence and positions (C2): PASS

Command: `sed -n 4140,4198p $ZL | grep '\*L0'`

The loci are f76r.4 s, 7 d, 10 q, 14 s, 18 o, 22 l, 27 k, 31 r and 37 s. That gives s d q s o l k r s at the claimed lines. The ZL page header also reads "sdqsolkrs".

## Reproduction (C3): PASS

Command: `sed "s#^OUT = .*#OUT = '<scratch>/rerun/'#" margin_tests.py > <scratch>/mt_copy.py; python3 -I <scratch>/mt_copy.py; diff results.tsv <scratch>/rerun/results.tsv`

The script keeps seed 20261015 and N=10000. Runtime was 33 s, on Python 3.14.4. Both `diff results.tsv` and `diff sequences.json` came back empty, so all 52 data rows and the header match, byte for byte. No row differs. Real row count: 53 lines including the header. REPORT.md says "56 rows" in its Files list, which is wrong.

## Rigging check (C4): PASS

Command: c4.py in the scratch directory, which reuses the script's parser and the same T1 statistic.

- Block boundary definition: block i is the text loci strictly after glyph locus g_i up to the next glyph locus, and block 9 stops at 38. The page is in blocks 2,2,3,3,3,4,3,5,1 text lines, first lines 5, 8, 11, 15, 19, 23, 28, 32 and 38. These match the raw ZL. Lines 1 to 3 are excluded, and so are lines 39 and later. Both exclusions are right, because those are other paragraphs.
- Off-by-one: none found. Boundary robustness was tested directly:

| variant | word-initial p | any-position p |
|---|---|---|
| baseline | 0.711 | 0.393 |
| each block shifted one text line earlier | 0.907 | 0.558 |
| each block shifted one text line later | 0.481 | 0.155 |
| block 1 widened to include lines 1 to 3 | 0.695 | 0.268 |

- Permutation unit: the unit is the label, shuffled over the nine fixed blocks. That is sensible for "does a glyph go with its own block", since it keeps block text, block lengths and the label multiset fixed. The T2 random triples and the balne same-line-count windows are also reasonable.
- Power, to rule out a test that cannot fire:
  - Labels set to each block's true most common word-initial glyph gave p 0.001 (word-initial) and 0.009 (any position).
  - The same with q excluded gave p 0.0015 and 0.002.
  - Planting the label as a word-initial prefix on 5% of block tokens gave p 0.024. At 10% it gave p 0.001, and at 15% p 0.0003.
  - So T1 detects a keyed-block signal of about 5% word-initial enrichment. It is not rigged toward null. It would miss a weaker, sub-5% effect.
- Two cells at the low extreme are not mentioned in REPORT.md. Block 7 (k) and block 9 (s) have an own-rate of 0.000, which is p 1.0 on the low side. They are not "high" cells and do not matter for "keys its block". Block 9 is a single 6-token line.

## Census (C5): PASS with bookkeeping defects

Command: c5.py in the scratch directory, which is my own regex over all `<fNN.n,Xyy>` loci: every L-type locus with 3 or fewer glyph characters, and every L locus followed by an `=` locus.

- Pages with 3 or more short glyph loci in a margin or line-end column (0 to 3 chars): f1r (3), f49v (26), f66r (about 34), f69r (6), f75v (6) and f76r (9). That is six. Single short loci: f11v `dd`, and f102v2 `os`.
- Three-character label columns also exist on f73r, fRos and f99r (oky, ar, kar; oko, osy, ...). Those are three-letter word labels on star or rosette diagrams, not single-glyph columns, so excluding them is right. REPORT.md does not say it excluded them.
- One glyph per paragraph: the only short L locus followed by `=P` outside f49v and f76r is f11v `dd`, a single instance and not a series. Every other L-then-`=` case has a long word (f68r, f75v, f77r, f77v, f80r, f82r, f84r). No page carries a one-glyph-per-paragraph series.
- Defects in the stored census:
  - census.py's regex allows only `[@+*=]`, so it drops `~` and `&` loci. f75v's `o` is a `~L0` locus (f75v.8), so census.tsv shows 5 loci and `s l l r s`. The ZL has 6 loci, `s l l o r s`. REPORT.md says "5 loci, 6 glyphs", which is also wrong. margin_tests.py's regex does include `~&`, so the f75v test used the right 6.
  - census.tsv gives f66r 32 short loci, while REPORT.md says 34. My grep gives 34 plus a `qo[r:n]` word.
  - census.tsv's `alignment` column labels f76r and f11v "per-paragraph". That contradicts the REPORT's finding that f76r is not one glyph per paragraph, and it is the label a future reader will grep. census.tsv also lists f102v2 (`os`), which the REPORT never mentions.

## F-290 bracket leg (C6): PASS

Command: c6.py in the scratch directory, with an exact multinomial calculation plus a 100000-draw simulation. Draws are from the balne word-initial distribution, f76r excluded.

| quantity | result |
|---|---|
| P(some glyph appears at least 3 times in 9 draws) | exact 0.7905, simulated 0.7907 |
| P(s appears at least 3 times), p(s) = 0.154 | exact 0.1492, simulated 0.1513 |
| P(s appears exactly 3 times) | 0.112 |
| P(some glyph appears exactly 3 times) | 0.537 |
| P(positions 1, 4, 9 same glyph) | 0.031 (the script's p 0.029 is the simulated version) |

- Including f76r in the pool gives 0.787 and 0.154. Using the f76r word-initial distribution alone gives 0.772 and 0.206, so the conclusion survives the choice of reference distribution.
- Reading "3 times" as "at least 3" matches the report. As "exactly 3" it would be 0.54 and 0.11.

## FIX list

All items are FIX-IN-SCOPE for a builder. The first two are changes to census.py and census.tsv only. The rest are text edits to REPORT.md.

1. Change `loc_re` in census.py from `([@+*=])` to `([@+*=~&])`, rerun it, and reconcile census.tsv with the report: f75v should read 6 loci and `s l l o r s`, and f66r should read 34 (or the REPORT should say 32 plus the `?` and `air` loci).
2. Rename the census.tsv `alignment` value "per-paragraph" for f76r to "per-stretch within one paragraph". For f11v use "single". The classifier in census.py should key on the paragraph markers, not on a `=P0` follower.
3. Edit REPORT.md as follows:
   - "results.tsv (56 rows)" becomes 52 data rows.
   - "38-line paragraph" becomes "loci 1 to 38 (29 text lines plus 9 glyph loci)".
   - The f75v line "5 loci, 6 glyphs" becomes 6 loci.
   - The F-290 bracket quote becomes "at least 3 times" (0.79 for any glyph, 0.15 for s), with the exactly-3 values 0.54 and 0.11 beside them, so the wording cannot be misread.
   - Add one line to the census scope saying the three-letter word-label columns on f73r, fRos and f99r were excluded as word labels, and that f102v2 (`os`) is a single short locus.
   - Add that the "1 of 18 cells" count is high-side only. Two cells (k in block 7, s in block 9) sit at the low extreme, p 1.0, and block 9 is a single 6-token line.
