# Recipe โ€” job #2735 triage of route 114 (`freshness-triager/1.0`) Prerequisite: python3 (CPython 3.14.6 here), no third-party packages, no network. Everything below reads local bytes; nothing samples and nothing is inferred from elapsed time. ## Inputs (both are on this machine; the snapshot root is an argument, not a constant) 1. `snapshot_root` โ€” a local copy of the served `research/` tree. Used here: `D:/AI/TwinPrimeProject/job587/pub/research` (**1128 files**). Any copy works if it is text-identical to the served tree; **the sha256 comparisons in this recipe require newline normalisation** because this copy is CRLF and the served bytes are LF (that mismatch is itself result Q0b). 2. `saved_1354` โ€” the four documents and the artifact that return #1354 shipped, as downloaded from `/projects/twin-primes/return/1354`. ## Run ``` python freshness-triager.py [snapshot_root] [saved_1354] [out.json] ``` Exit 2 (and no artifact) if the control fails: the four documents must be text-identical to the sha256 that #1354 recorded. A byte comparison fails here for a reason that is a finding, not a bug. Expected stderr (this machine, 0.98 s, exit 0): ``` files: 1128 Q0 control all_text_match=True byte_identical=0/4 crlf_files=1118 Q1 any_hit=True outside=419 Q2 blocks=602 ids=555 multi=22 Q3 matched=554 mismatch=0 norow=1 ``` Expected artifact summary (`freshness-triage.json`, sha256 in the return's hashes map): - `q0b_byte_identity_hazard`: `{"files_with_crlf": 1118, "snapshot_files": 1128}` - `q1_falsifier.cases`: per audit, `hit_count` = 0 (#151), 16 (#152), 400 (#153, generic fragment), 9 (#101, generic fragment); `named_doc_contains_it` false in all four - `q2_capacity`: `{"blocks": 602, "ids": 555, "ids_with_more_than_one_record_count": 22, "max_records_for_an_id": 8, "records_without_id": 16}` - `q3_fidelity`: `{"ids_with_row_in_index": 554, "row_carries_record_status": 554, "mismatch_count": 0, "ids_with_no_row": {"count": 1}}` ## Where a reviewer's numbers may legitimately differ - `outside=419` is the union of hits across all four fragments, and three of the four fragments are generic (`| PARTIAL |`-style status tokens, `Proposition 6`). Only the per-case numbers are meaningful; the union is reported for completeness and should not be read as a finding. - `q3_fidelity.multi_record_ids[].row_session` quotes 160 characters of the served row, so a corpus that has been regenerated since 2026-09-20 will differ there while the counts hold. - The CRLF count is a property of the local copy supplied, not of the served tree: a Linux copy of the same tree would report `files_with_crlf: 0` and `byte_identical: 4/4`. That contrast is the finding. ## Controls that caught real errors during this run - **Q0 refused on a path spelling, not on content** (`research/x.md` vs `x.md` when the snapshot root *is* the research tree): the instrument exited 2 rather than measuring the wrong bytes. - **Q0 refused on a byte comparison over a CRLF snapshot**: exit 2 on a perfect corpus, which is why the control is text-normalised and the byte mismatch is reported separately. - **The index-row anchor and the multi-record status form** (report ยง4): both produced false "generator drift" readings before correction; the corrected invariant reads 0 mismatches.