Character fallback folio holdout correction

VERDICT: PASS. This isolated candidate excludes every occurrence on the scored folio from character trigram counts, history counts and the training alphabet. Shared words retain occurrences found on other folios. Canonical source, transcription, previous results and database remain unchanged.

The baseline and candidate were scored on the identical 227 folio units, 39016 word occurrences, at lambda 0 and 0.2. Parser, token Kneser-Ney model, character probability formula, discount, candidate-set rules and within-page cache are structurally unchanged. Character training and exception restoration are the corrected boundaries.

Word-weighted aggregate at lambda 0: baseline 12.187808864, candidate 12.313135234, delta +0.125326370 bits/word.

Word-weighted aggregate at lambda 0.2: baseline 12.140430607, candidate 12.259963229, delta +0.119532621 bits/word.

f57v has 198 words. At lambda 0 its baseline/candidate bits are 13.159939830/14.469822799. At lambda 0.2 they are 10.191728636/10.590004854. Context gain changes from 2.968211194 to 3.879817945. Its baseline/candidate context-gain ranks are 1/1 of 227. All bit rankings, top-1/top-5 rates and raw/rounded deltas are in comparison.json and comparison_rows.json.

Independent verification reconstructed character counts, histories and alphabets for all 227 exclusions. A sentinel fixture proves a character found only on the held-out folio disappears, while two shared-word occurrences on another folio remain. Injected scoring and next-command exceptions restore token counts. Actual folio, next and full rank CLI commands exit successfully; all 227 rank CLI bit/gain values agree with the comparison arithmetic. The 97 canonical source/result hashes and transcription hash remain unchanged.

Saved historical rank artifacts differ from the current baseline rerun on 0 folios in the measured rounded fields. See saved_rank_vs_baseline_rerun.json for exact differences. Those historical differences are kept separate from the paired candidate deltas. The primary comparison always uses the freshly rerun baseline on the same frozen transcription as the candidate.

The correction establishes folio-level exclusion for both training components. It does not calibrate the probability model, broaden candidate sets, change the parser, establish an independent manuscript sample, decode text, or promote a research finding. Within-page cache updates remain authorized earlier-page context. Numeric ties can affect top-k membership under Python set ordering; rounded bits and gains are independently matched to CLI output. Whole-corpus character training is no longer constructed in candidate main.

Run the comparison with python3 run_comparison.py, then python3 cli_smoke.py, python3 verify_next_training.py and python3 finalize.py from this directory. The corrected standalone source is vms_predict_corrected.py; it uses the preserved local transcription and weight file. Baseline copies and all original source/result hashes are retained. No installation or canonical overwrite was performed.

Complete source text and line addresses
# Character fallback folio holdout correction

VERDICT: PASS. This isolated candidate excludes every occurrence on the scored folio from character trigram counts, history counts and the training alphabet. Shared words retain occurrences found on other folios. Canonical source, transcription, previous results and database remain unchanged.

The baseline and candidate were scored on the identical 227 folio units, 39016 word occurrences, at lambda 0 and 0.2. Parser, token Kneser-Ney model, character probability formula, discount, candidate-set rules and within-page cache are structurally unchanged. Character training and exception restoration are the corrected boundaries.

Word-weighted aggregate at lambda 0: baseline 12.187808864, candidate 12.313135234, delta +0.125326370 bits/word.

Word-weighted aggregate at lambda 0.2: baseline 12.140430607, candidate 12.259963229, delta +0.119532621 bits/word.

f57v has 198 words. At lambda 0 its baseline/candidate bits are 13.159939830/14.469822799. At lambda 0.2 they are 10.191728636/10.590004854. Context gain changes from 2.968211194 to 3.879817945. Its baseline/candidate context-gain ranks are 1/1 of 227. All bit rankings, top-1/top-5 rates and raw/rounded deltas are in comparison.json and comparison_rows.json.

Independent verification reconstructed character counts, histories and alphabets for all 227 exclusions. A sentinel fixture proves a character found only on the held-out folio disappears, while two shared-word occurrences on another folio remain. Injected scoring and next-command exceptions restore token counts. Actual folio, next and full rank CLI commands exit successfully; all 227 rank CLI bit/gain values agree with the comparison arithmetic. The 97 canonical source/result hashes and transcription hash remain unchanged.

Saved historical rank artifacts differ from the current baseline rerun on 0 folios in the measured rounded fields. See saved_rank_vs_baseline_rerun.json for exact differences. Those historical differences are kept separate from the paired candidate deltas. The primary comparison always uses the freshly rerun baseline on the same frozen transcription as the candidate.

The correction establishes folio-level exclusion for both training components. It does not calibrate the probability model, broaden candidate sets, change the parser, establish an independent manuscript sample, decode text, or promote a research finding. Within-page cache updates remain authorized earlier-page context. Numeric ties can affect top-k membership under Python set ordering; rounded bits and gains are independently matched to CLI output. Whole-corpus character training is no longer constructed in candidate main.

Run the comparison with `python3 run_comparison.py`, then `python3 cli_smoke.py`, `python3 verify_next_training.py` and `python3 finalize.py` from this directory. The corrected standalone source is vms_predict_corrected.py; it uses the preserved local transcription and weight file. Baseline copies and all original source/result hashes are retained. No installation or canonical overwrite was performed.