The runnable successor preserves the accepted source and turns its normalized groups into reversible structural sequences with exact locations, exclusions and contextual search. Eighteen regression tests pass. This validates the reader and the stated structural comparisons; it does not establish historical opcode meanings or a translation.
engine/tokens.py loads only private copies under data/tokens/. It checks each manifest digest, replays the exact retained normalize, section, load and tokens definitions from the accepted corpus.py, and compares the resulting pages, loci and tokens with the pinned ledgers. The original historical parse_folio is not used. The component classifier is the accepted legacy_reclassify.py version; its backtracking view and an explicit greedy view remain distinct.
The source router is ../../collection/analysis/CURRENT_CORPUS.json; the accepted packet is ../../provenance/source-582dde2582eedc1e.html. Exact source paths, receipt relationships and SHA-256 values are in data/tokens/MANIFEST.json. At handback all 13 copied inputs still match their original files. The source text hash is c7ffff9e1f3ecbec174e234c04f056b2bec14f8d722726c456f108e2c7060db5.
operators: null, retained raw text and an exclusion reason. Searches stop at them.All six retained structural run queries in the source-bound EXPANSIONS.json reproduce their complete occurrence coordinates, including group and chip positions. Semantic annotation fields from that source are not used for dispatch or copied into the UI.
| Sequence | Literal runs | Complete group edges | Single complete group |
|---|---|---|---|
[CH] o [CKH] y |
26 | 23 | 23 |
[CH] o [CKH] e y |
6 | 6 | 5 |
| f75v.47/f84r.22 16-unit run | 2 | 2 | 0 |
| f81v.18 16-unit variant | 1 | 1 | 0 |
o l [SH] e d y |
96 | 47 | 22 |
o l [SH] [E2] y [QO] k [E2] d y at f79v.9 |
1 | 1 | 0 |
The 16-unit run is o l [SH] e d y [QO] k e d y [QO] k [E2] d y. It is identical at f75v.47 and f84r.22. The f81v.18 version substitutes e for [E2] at unit 14. These are literal, ordered comparisons of source transcription units.
The inserted-e count needs two distinct boundary predicates. Five occurrences occupy a single group. The sixth, f51v.12 cho,ckhey, occupies two complete groups under the accepted comma-boundary policy. whole_groups=True accepts aligned endpoints across multiple groups; single_group=True requires one entire group. Both retained sources agree. The earlier discovery summary's 6/5 phrasing referred to runs versus single groups, not different corpus versions.
On the same 38,762 normalized input groups, the exact retained old encoder still returns 38,762 zero bytes and no S sync token. Its interface expects preassigned family labels. The explicitly partial exemplar adapter assigns 1,217 groups: Q=276, C=506, S=435; the other 37,545 are X and G remains unassigned. Those unchanged diagnostic results are preserved.
Five fixed real f26r/f26v source intervals reproduce the predecessor's stored family sequences and checksum values. Reversing payload group order while retaining the declared trailer when applicable leaves the old XOR, sum and parity unchanged in all five cases. The successor detects the changed order: structural edit distances are 114, 63, 61, 139 and 105, while the unit multiset remains identical. The source intervals and permutations are recorded in tokens_sequences.json. This establishes order sensitivity; the partial adapter remains an experimental control and gains no historical meaning.
From the isolated root:
python3 -B engine/tokens.py audit
python3 -B engine/tokens.py export-ui
python3 -B engine/tokens.py query '[CH] o [CKH] e y' --single-group
python3 -B engine/tokens.py query 'o l [SH] e d y [QO] k e d y [QO] k [E2] d y'
python3 -B tests/test_tokens.py
The Python entry is load_bundle(). Its corpus offers get_locus, segments, find, codec.encode, codec.expand, audit and ui. compare_sequences returns edit operations and ordered digests. A query pattern is a sequence of structural units. To query normalized EVA groups, encode each group and concatenate its units first; preserve the desired boundary predicate explicitly.
tokens_ui.json supplies all folios, raw loci, slots, alternatives and provenance. tokens_sequences.json supplies all six contextual query results and old/new controls. tokens_test_results.json records 18 passing tests with code/test hashes; tokens_provenance_check.json records source preservation and a CLI query check. tokens_method.json states the premeasurement criteria. tokens_audit.json records complete counts and greedy/backtracking differences.
The literal 68-cell f57v ring belongs to the separate evidence module because the accepted alphabetic ledger intentionally excludes extended/nonalphabetic cells. Full-source retention here does not turn those cells into classified structural units. The work remains an isolated development and regression reader; the paper, predecessor packet and canonical research state were not modified by this module.
# Structural token module — isolated rebuild The runnable successor preserves the accepted source and turns its normalized groups into reversible structural sequences with exact locations, exclusions and contextual search. Eighteen regression tests pass. This validates the reader and the stated structural comparisons; it does not establish historical opcode meanings or a translation. `engine/tokens.py` loads only private copies under `data/tokens/`. It checks each manifest digest, replays the exact retained `normalize`, `section`, `load` and `tokens` definitions from the accepted `corpus.py`, and compares the resulting pages, loci and tokens with the pinned ledgers. The original historical `parse_folio` is not used. The component classifier is the accepted `legacy_reclassify.py` version; its backtracking view and an explicit greedy view remain distinct. The source router is `../../collection/analysis/CURRENT_CORPUS.json`; the accepted packet is `../../provenance/source-582dde2582eedc1e.html`. Exact source paths, receipt relationships and SHA-256 values are in `data/tokens/MANIFEST.json`. At handback all 13 copied inputs still match their original files. The source text hash is `c7ffff9e1f3ecbec174e234c04f056b2bec14f8d722726c456f108e2c7060db5`. ## Verified behavior - All 227 folio/panel records, 5,389 loci and 39,020 slots are retained. All 38,762 accepted normalized groups re-encode to the accepted units and invert exactly. Their 155,151 structural units comprise 44 observed types. - All 258 excluded slots remain typed: 247 nonalphabetic and 11 empty. They have `operators: null`, retained raw text and an exclusion reason. Searches stop at them. - Original source bytes export identically. Normalization is lossy, so its inverse reconstructs the normalized token only. Full raw loci and original source bytes preserve comments, punctuation and alternate readings, including an empty first alternative. Source alternatives are not silently promoted to the accepted reading. - Paragraph IDs reproduce the accepted parser. The inferred starts at f68r1.5 and f84v.42 are marked. Default search stays within one locus; paragraph crossing requires explicit scope. Neither mode crosses an excluded slot or a folio boundary. - Five groups differ between greedy and accepted backtracking representations. Greedy has five forbidden pairs; accepted backtracking has zero by construction. That zero is not an independent validation result. ## Real manuscript sequence results All six retained structural run queries in the source-bound `EXPANSIONS.json` reproduce their complete occurrence coordinates, including group and chip positions. Semantic annotation fields from that source are not used for dispatch or copied into the UI. | Sequence | Literal runs | Complete group edges | Single complete group | |---|---:|---:|---:| | `[CH] o [CKH] y` | 26 | 23 | 23 | | `[CH] o [CKH] e y` | 6 | 6 | 5 | | f75v.47/f84r.22 16-unit run | 2 | 2 | 0 | | f81v.18 16-unit variant | 1 | 1 | 0 | | `o l [SH] e d y` | 96 | 47 | 22 | | `o l [SH] [E2] y [QO] k [E2] d y` at f79v.9 | 1 | 1 | 0 | The 16-unit run is `o l [SH] e d y [QO] k e d y [QO] k [E2] d y`. It is identical at f75v.47 and f84r.22. The f81v.18 version substitutes `e` for `[E2]` at unit 14. These are literal, ordered comparisons of source transcription units. The inserted-e count needs two distinct boundary predicates. Five occurrences occupy a single group. The sixth, f51v.12 `cho,ckhey`, occupies two complete groups under the accepted comma-boundary policy. `whole_groups=True` accepts aligned endpoints across multiple groups; `single_group=True` requires one entire group. Both retained sources agree. The earlier discovery summary's 6/5 phrasing referred to runs versus single groups, not different corpus versions. ## Comparison with the recovered engine On the same 38,762 normalized input groups, the exact retained old encoder still returns 38,762 zero bytes and no S sync token. Its interface expects preassigned family labels. The explicitly partial exemplar adapter assigns 1,217 groups: Q=276, C=506, S=435; the other 37,545 are X and G remains unassigned. Those unchanged diagnostic results are preserved. Five fixed real f26r/f26v source intervals reproduce the predecessor's stored family sequences and checksum values. Reversing payload group order while retaining the declared trailer when applicable leaves the old XOR, sum and parity unchanged in all five cases. The successor detects the changed order: structural edit distances are 114, 63, 61, 139 and 105, while the unit multiset remains identical. The source intervals and permutations are recorded in `tokens_sequences.json`. This establishes order sensitivity; the partial adapter remains an experimental control and gains no historical meaning. ## Use and deliverables From the isolated root: ```sh python3 -B engine/tokens.py audit python3 -B engine/tokens.py export-ui python3 -B engine/tokens.py query '[CH] o [CKH] e y' --single-group python3 -B engine/tokens.py query 'o l [SH] e d y [QO] k e d y [QO] k [E2] d y' python3 -B tests/test_tokens.py ``` The Python entry is `load_bundle()`. Its corpus offers `get_locus`, `segments`, `find`, `codec.encode`, `codec.expand`, `audit` and `ui`. `compare_sequences` returns edit operations and ordered digests. A query pattern is a sequence of structural units. To query normalized EVA groups, encode each group and concatenate its units first; preserve the desired boundary predicate explicitly. `tokens_ui.json` supplies all folios, raw loci, slots, alternatives and provenance. `tokens_sequences.json` supplies all six contextual query results and old/new controls. `tokens_test_results.json` records 18 passing tests with code/test hashes; `tokens_provenance_check.json` records source preservation and a CLI query check. `tokens_method.json` states the premeasurement criteria. `tokens_audit.json` records complete counts and greedy/backtracking differences. The literal 68-cell f57v ring belongs to the separate evidence module because the accepted alphabetic ledger intentionally excludes extended/nonalphabetic cells. Full-source retention here does not turn those cells into classified structural units. The work remains an isolated development and regression reader; the paper, predecessor packet and canonical research state were not modified by this module.