Seeded-fault test of the fact check: plan
Seeded-fault test of the fact check
Question. Would the production fact check catch a wrong number? 13 of 13 dataset checks found no arithmetic error. That means either the wranglers were clean or the checker can't see such errors. Recall has never been measured (stories B7.3, datasets C2.3, research suggestion 9).
Method. Copy published work, put exactly one known fault into each copy, run the production fact-check brief on each without saying anything about faults, and count what it catches. Unaltered copies (controls) measure false alarms.
Cases
Datasets (10 seeded + 2 controls). Copies of Commons datasets published 22–28 Nov (~/src/datasets/<name>), with the dataset's pack put back as PACK.md (from releases/datasets/<name>/PROMOTION.md), as the checker saw it before publishing. Each copy becomes a fresh git repo with one commit, so there is no history to diff. Two kinds of fault:
- Prose faults (P): the README (and the pack and FACT.md where they repeat the number) says something the CSVs don't support. This is the error the brief is written to catch.
- Upstream faults (U): the build script is changed and the CSVs rebuilt, so data, README, pack and FACT.md agree with each other but not with the archived source. This is what a wrangler's bug looks like:
build.mjsstill reproducesdata/byte for byte. Catching it needs a units or plausibility check, or a spot-check againstarchive/.
| Fault type | Dataset | Kind |
|---|---|---|
| dropped year | us-measles-cases | U |
| stale vintage (headline figure from the previous CDC release) | us-drug-overdose-deaths | P |
| swapped units (data) | us-energy-consumption-by-source | U |
| mis-joined region (data) | gdp-per-capita-long-run | U |
| swapped units (definition in README) | atlantic-hurricanes | P |
| mis-joined region (headline number taken from another region's row) | extreme-poverty | P |
| decimal shift | protein-structures | P |
| off-by-one (year) | us-customs-duties | P |
| "What stands out" number no longer matches the CSV | stack-overflow-questions | P |
| "What stands out" number no longer matches the CSV (transposed digits) | us-coffee-prices | P |
| control, no change | us-gambling-spending, orbital-launches | — |
Amended before any run: the overdose case was planned as U, but rebuilding the data one release back needs the older CDC file, which we don't have. It became a P fault instead: the README quotes May 2026 as 65,351, the previous release's figure (the real slip FACT.md warned about), while the CSV gives 65,720 and runs to June. Measles uses the published commit (a76aa99), because the live repo's weekly refresh has since moved the CSV past the README's dated figures. That leaves 3 U and 7 P dataset faults.
Stories (10 seeded + 2 controls). Copies of the package/ folders of live DataHub blog posts (releases/<slug>/package, plus us-aid-vs-military-2025 from projects/story-formats/pilot-1/). One claim in README.md is changed; data, statistics.json and charts stay as published, which is how a writer's slip looks. Fault types: wrong number (3), wrong direction (2), wrong year (2), plain words stretched past the measure (3). Controls: clean copies of china-co2-peak and solar-overtakes-wind.
The exact change per case goes in a sealed manifest (manifest.csv), kept outside the case folders until all runs finish.
Briefs (reused verbatim)
- Datasets: the wave 2 Codex brief (recovered from the factory-datasets-2 session transcript, 28 Nov), the brief for dataset-flow.md step 3. Saved as
briefs/dataset-factcheck.md. - Stories: the generic blog-post fact-check brief used by Codex on 8 Nov (EV vs Tesla, arctic sea ice, heat deaths etc). Those briefs were written per story; the shared text is used, with the one EV-specific clause made generic ("Check definitions and that comparisons use comparable denominators"). Saved as
briefs/story-factcheck.md. Production briefs also named story-specific risks; these runs do not, because naming risks per case would leak the seeded fault.
Checkers
- Codex
gpt-6-astra,codex exec -s read-only -c model_reasoning_effort=high, on all 24 cases: the wave 2 dataset checker and the production story fact checker. - Claude Opus (
claude -p --model opus, tools: Read, Grep, Glob, Bash; no web tools), on the 12 dataset cases: wave 1's dataset checkers were Opus agents. - 36 runs in all. Cases sit in neutral paths in a session scratch folder (
.../work/<name>), never under this project folder, so the path does not give the test away. No web for either checker (Codex's read-only sandbox has no network); licence checks will say "not verified live", which is out of scope here.
Scoring
- Caught: the report flags the seeded fault, as a FAIL, must-fix or should-fix finding that points at the changed claim or data, or says the number is wrong. Flagging it only as a nit or in passing counts as partial (scored 0.5). A finding on the right claim for the wrong reason counts as missed.
- Verdict check: whether the verdict would have stopped publication (dataset FAIL or a must-fix; story REJECT, or APPROVE-WITH-FIXES with the fault in the required fixes).
- False alarm: on a control, any must-fix finding claiming a number is wrong that is in fact right. Wording findings on controls are expected (the brief asks for them) and are counted separately, not as false alarms.
- Recall per checker, per fault kind (P vs U), per fault type and per tree (datasets, stories). Scored by me against the manifest; borderline calls listed in the results.
Pass rule (fixed before running)
- Recall ≥ 0.8 on prose faults (P, and all story faults): trust the check as a floor for "the published numbers match the data".
- 0.5 ≤ recall < 0.8: keep it, add the missed fault types to the brief as explicit checks, and re-test those types.
- Recall < 0.5: change the brief before relying on it.
- Upstream faults (U) are reported separately. The brief does not ask for a check against the source, so low recall there is a finding about scope, not a failure of the checker. If U recall is below 0.5, propose a row spot-check against
archive/for every dataset (already queued for HTML sources, datasets D7). - With 10 cases per tree, one case moves recall by 0.1, so treat results near a threshold as unsettled.
Limits
- Small sample: one fault per case, 10 cases per tree.
- Seeded faults are mine, not natural errors; real errors may be easier or harder.
- Briefs without the per-story risk notes are weaker than some production story checks.
- Served model and cost are recorded as unknown unless the runner reports them.
Outputs
results.md(scores and what they mean),manifest.csv(sealed faults),diffs/(one patch per case),runs/(raw checker reports),briefs/.- A short "Measured recall (28 Nov)" section in docs/publication-gates.md.