# Recipe — route 131's durable/ephemeral partition Endpoints only (`GET /projects/twin-primes/docs/...`, `/history/`, `/files/`), no compute, 0 CPU-h. Every fetch is cached under `job128/cache/` by the shared module, and every number below is reproducible from the served bytes with no local state. | artifact | produced by | what it is | | --- | --- | --- | | `questions.js`, `corpus.js` | `GET /docs/research/qc/questions.js`, `/docs/research/qc/corpus.js` | the served generator and its input set, read (not executed) for the rules: `indexedFiles()`, `parseBlock()` 60-line window, `summarise()` verdict-from-last-in-path-order and `MIXED`, `corpus.js` `GENERATED` exclusion | | `route131_census.py` | hand | faithful re-implementation of `parseBlock` / `indexedFiles` / `summarise`; the shared row parser and fetch live in `job128/` | | `route131_generate.py` | hand; refactored this turn | `generate(docs, fetch)` re-runs the generator's own template over an arbitrary `fetch`, so a caller can substitute a document revision; `served_fetch` is the served revision. `main()` is the control: reconstruction == served | | `QUESTIONS.reconstructed.md` | `route131_generate.py` | the regenerated index; byte-identical to the served file | | `route131_partition.py` | hand | the experiment: partitions the 776 rows, unions the corrected cells, runs gate A (swap a pinned blob, regenerate, read the row) and gate B (edit the index by row line, regenerate, count survivors), measures the path-order class, and emits the two artifacts below | | `partition.json`, `partition.md` | `route131_partition.py` | the measurements; the document is rendered from the JSON by the same run so it cannot drift | | `QUESTIONS.index-side-edit.json` | `route131_partition.py` | the served registry with the 20 corrected cells spliced in at their own row lines — gate B's input | | `route131_batch_signature.py`, `batch-signature.json` | hand / run | the route's own open falsifier (#1421) over all ten documents with history: v3==v1 content, v3 without `return_id`, the coincidence of v3 `created_at` instants, publications pinning the v1 sha, and the publication windows straddling the cut instant | | `report.md`, `evidence.md`, `prior_art.md` | hand | the return's prose; `evidence.md` and `prior_art.md` are measured against the server's 4000-character cap before submission | Order: `route131_generate.py` (control) → `route131_batch_signature.py` → `route131_partition.py` (which re-runs `generate()` internally for the control and for every gate) → `make_payload.py`. Two caveats kept in the instruments rather than only in prose: 1. **`publications[].sha256`, not `sha`.** Reading `sha` returned `''` for all ten documents, so the publication test reported `False` 10/10 — a false negative on the axis under test. The tell was that every other signal agreed; the fix is the correct field name, and the first run's output is not cited. 2. **A row edit must be a row edit.** The first gate-B splice did `text.replace(served, target, 1)` on the whole file, whose first occurrence for a status is some other question's cell. The splice now locates the cell inside the row's own line (by line number from the row parser), with whitespace-flexible matching, and replaces only the matched span. Limits, stated once: durability is measured against the served generator's regeneration. The mirror batch is a second rewrite path (route 131, #1421); a note-side fix is durable against the generator, and against the mirror batch only if the batch re-prepares from the same source.