Curator receipt: TP-001 token prediction wedded into the per-folio lattice, 2026-10-07

Authority: Ed 2026-10-07 15:49 CT substrate updates approved for this thread, 18:32 CT wed token prediction into the lattice. Lane TP-001. DB: ../../../../../tools/substrate/index.html (serial writes, no parallel writer seen).

Backups

DB: ../../../../provenance/source-076b143bb64c3f43.html (sqlite3 .backup, integrity_check ok, 242 folio_substrate rows, 9289 relationships rows). TSV: ../../../../provenance/source-cd3b525238dc7b27.html Lattice md: ../../../../provenance/source-ac235d5b3e70a594.html (228 files). My own tar command failed on a bad glob (stub left at 45 bytes) and the render ran before I noticed. I replaced the stub with a copy of the 18:33:15 backup ../../../../provenance/source-78839e15f074d44c.html taken about one minute before the render. That is the nearest pre-render state. Script: ../../../../provenance/source-beb5ddbe2bad2b71.html

Step 1 folio_substrate notes

227 rows updated (folio_substrate 242 rows, count unchanged), 0 skipped, 0 missing, 0 null-notes. Line appended after a newline, never overwritten. Eight rows carry the " F-693." suffix: f87r f87v f88r f88v f93r f93v f96r f96v. Idempotence guard on the marker string. updated_at was also set to CURRENT_TIMESTAMP on those rows. Verified: 227 rows contain the marker, 8 end with F-693.

Step 2 relationships

extract_folio_links.py run (read-only), TSV regenerated: 18 proposed rows, 3 findings. Inserted only finding 693: 14 rows, relation_type folio-evidence-mention, date 2026-10-07, wording copied from row 13712 with the mention field set per row. relationships 9289 to 9303. IDs 13713 to 13726: f87r 13713, f87v 13714, f88r 13715, f88v 13716, f93r 13717, f93v 13718 (mention=title); f94r 13719, f94v 13720, f95r1 13721, f95r2 13722, f95v1 13723, f95v2 13724 (mention=notes); f96r 13725, f96v 13726 (mention=title). No -parent or -subfolio variants were needed. Other unlinked findings the TSV proposes, NOT inserted: finding 117 (Supported) to f49v and f57v, mention=notes; finding 692 (Observed) to f1r and f69v, mention=notes.

Step 3 lattice render

render_substrate_evidence.py: 228 files, 227 blocks written, 0 current, 1 skipped (INDEX.md). Second run: 0 written, 227 already current. The first run rewrote all 227 blocks, not just the F-693 pages, because the blocks were stale: they dated from 2026-09-28 and used old headings ("PASSED") and old tier membership. Examples in f1r: finding 51 and 290 added, 62/117/118/121/134 moved or dropped, Falsified rows split into their own section. This is the script working as designed against current DB state. Result: the 8 hand 4 files and the 6 other F-693-linked files (f94r f94v f95r1 f95r2 f95v1 f95v2) each list finding 693 in the evidence block.

Problem found and fixed: the lattice_wed.py section writer inserted '## Token prediction (TP-001, 2026-10-07)' directly after the BEGIN marker, inside the render's rewrite zone. The render therefore deleted every TP-001 section (0 sections found after the render). I changed lattice_wed.py to insert the section immediately before the SUBSTRATE-EVIDENCE:BEGIN marker (and its remove-regex to stop at that marker), re-ran it (227 written), then re-ran the render (0 written). Final state: 227 files have exactly one TP-001 section, one BEGIN and one END marker, with the section outside the markers; INDEX.md has none. All 8 hand 4 files confirmed. A future render will not remove the sections.

Integrity and tally

PRAGMA integrity_check: ok. Findings 693 total, unchanged by this job: Observed 226, Supported 140, Candidate 136, Confirmed 77, Falsified 72, Parked 42. No findings, status, or tier rows touched.

Complete source text and line addresses
## Curator receipt: TP-001 token prediction wedded into the per-folio lattice, 2026-10-07

Authority: Ed 2026-10-07 15:49 CT substrate updates approved for this thread, 18:32 CT wed token prediction into the lattice. Lane TP-001. DB: ../../../../../tools/substrate/index.html (serial writes, no parallel writer seen).

## Backups

DB: ../../../../provenance/source-076b143bb64c3f43.html (sqlite3 .backup, integrity_check ok, 242 folio_substrate rows, 9289 relationships rows).
TSV: ../../../../provenance/source-cd3b525238dc7b27.html
Lattice md: ../../../../provenance/source-ac235d5b3e70a594.html (228 files). My own tar command failed on a bad glob (stub left at 45 bytes) and the render ran before I noticed. I replaced the stub with a copy of the 18:33:15 backup ../../../../provenance/source-78839e15f074d44c.html taken about one minute before the render. That is the nearest pre-render state.
Script: ../../../../provenance/source-beb5ddbe2bad2b71.html

## Step 1 folio_substrate notes

227 rows updated (folio_substrate 242 rows, count unchanged), 0 skipped, 0 missing, 0 null-notes. Line appended after a newline, never overwritten. Eight rows carry the " F-693." suffix: f87r f87v f88r f88v f93r f93v f96r f96v. Idempotence guard on the marker string. updated_at was also set to CURRENT_TIMESTAMP on those rows. Verified: 227 rows contain the marker, 8 end with F-693.

## Step 2 relationships

extract_folio_links.py run (read-only), TSV regenerated: 18 proposed rows, 3 findings. Inserted only finding 693: 14 rows, relation_type folio-evidence-mention, date 2026-10-07, wording copied from row 13712 with the mention field set per row. relationships 9289 to 9303.
IDs 13713 to 13726: f87r 13713, f87v 13714, f88r 13715, f88v 13716, f93r 13717, f93v 13718 (mention=title); f94r 13719, f94v 13720, f95r1 13721, f95r2 13722, f95v1 13723, f95v2 13724 (mention=notes); f96r 13725, f96v 13726 (mention=title). No -parent or -subfolio variants were needed.
Other unlinked findings the TSV proposes, NOT inserted: finding 117 (Supported) to f49v and f57v, mention=notes; finding 692 (Observed) to f1r and f69v, mention=notes.

## Step 3 lattice render

render_substrate_evidence.py: 228 files, 227 blocks written, 0 current, 1 skipped (INDEX.md). Second run: 0 written, 227 already current. The first run rewrote all 227 blocks, not just the F-693 pages, because the blocks were stale: they dated from 2026-09-28 and used old headings ("PASSED") and old tier membership. Examples in f1r: finding 51 and 290 added, 62/117/118/121/134 moved or dropped, Falsified rows split into their own section. This is the script working as designed against current DB state.
Result: the 8 hand 4 files and the 6 other F-693-linked files (f94r f94v f95r1 f95r2 f95v1 f95v2) each list finding 693 in the evidence block.

Problem found and fixed: the lattice_wed.py section writer inserted '## Token prediction (TP-001, 2026-10-07)' directly after the BEGIN marker, inside the render's rewrite zone. The render therefore deleted every TP-001 section (0 sections found after the render). I changed lattice_wed.py to insert the section immediately before the SUBSTRATE-EVIDENCE:BEGIN marker (and its remove-regex to stop at that marker), re-ran it (227 written), then re-ran the render (0 written). Final state: 227 files have exactly one TP-001 section, one BEGIN and one END marker, with the section outside the markers; INDEX.md has none. All 8 hand 4 files confirmed. A future render will not remove the sections.

## Integrity and tally

PRAGMA integrity_check: ok. Findings 693 total, unchanged by this job: Observed 226, Supported 140, Candidate 136, Confirmed 77, Falsified 72, Parked 42. No findings, status, or tier rows touched.