Paper reproduction & method verification
You are the verifier, not the author. The output that matters is a claim, a number, a tolerance, and an attribution — each pointing at a file, a page, or a log line that another person can re-open.
In a hurry?
QUICKSTART.mdis the six-command runbook for a 10-minute budget. Read it first if the case's budget is under ~20 minutes; come back here for the reasoning.
When this applies
The case usually looks like one of these:
- "Here is a paper and two candidate numerical methods; run them and say which matches the reported table, and why the other does not."
- "Here is a claim sheet and a repo; check whether the reported metric is reproducible under the stated environment."
- "Two implementations disagree; decide which is faithful to the description."
All three are the same job: make the claim executable, then measure the gap.
Contract first (do this before anything else)
- Read
/input/case.jsonandtask.md(or whatever the case declares). Findoutput_contract,case_id, required fields, and any budget/limit. - Copy every required field name into
work/contract.json. Never invent a field; never drop one. If the contract is missing, derive the minimal one (case_id,status,claims,parameters,environment,runs,comparison,attribution,verdict,evidence,uncertainty) and say so. - Declare tolerances before running anything (
references/tolerance_policy.md). A tolerance chosen after seeing the number is not a tolerance.
The seven steps
Work in /app/work. Each step writes one JSON file. Do not skip a step to save
time: the value of the answer is that the chain is inspectable.
| step | script | output | what it must contain |
|---|---|---|---|
| 1 inventory | scripts/inventory.py | work/inventory.json | every file read, its sha256, size, and role; a missing list for declared-but-absent material |
| 2 claims | you | work/claims.json | each reported number with anchor (page/table/figure/line) and the exact quote |
| 3 parameters | scripts/params_table.py | work/params.json | every knob the run depends on, each tagged paper_stated / code_inferred / assumed, with anchor and default |
| 4 environment | scripts/env_snapshot.py | work/env.json | interpreter, package versions, seeds, CPU/memory, and any deviation from what the paper states |
| 5 run | you | work/runs/*.log | the exact command, exit code, wall time, and the raw output the comparison reads |
| 6 compare | scripts/compare.py | work/comparison.json | per claim: reported, reproduced, deviation, tolerance, verdict inside / outside |
| 7 attribute | you | work/attribution.json | per outside claim: cause class, the experiment that distinguishes it, and the evidence |
Then scripts/emit_result.py assembles result.json in the contract's field
names; scripts/selfcheck.py refuses to pass if a contract field is missing or
an outside claim has no attribution.
Attribution: the part that earns the score
An unexplained difference is worth less than an honest "cannot distinguish".
Use the classes in references/attribution_taxonomy.md — environment,
data, implementation, under-specified, reporting, unknown — and for
each candidate cause name the experiment that would separate it. If you ran
that experiment, say what it showed; if the budget did not allow it, say so in
uncertainty rather than asserting a cause.
Worked shape of one entry:
{"claim_id": "C2", "cause": "under-specified", "what": "the paper gives
'standard settings' without values; the two candidates differ only in the
integration step", "experiment": "rerun B with A's step size",
"observed": "B matches the reported value to 0.002 (tolerance 0.01)",
"supports": "the report omits the step size; the method is not wrong"}
Rules that keep the result legitimate
- Run the code. A number copied from the paper is a claim, never a result.
- If a file, repo, dataset, or license is absent, register it in
inventory.missingand continue with what exists; never fabricate it. - If the contract asks for something the materials cannot produce, return
status: "partial"with the blocking file named — not a padded answer. - Distinguish "we reproduced it" from "we reproduced it by accident": if two errors cancel, say which two.
- Every number in the final answer carries an
anchoror a log path.
What this cannot catch (the boundary)
Stated plainly, because a verifier that oversells itself is not a verifier:
| it does not catch | why | what would |
|---|---|---|
| a tolerance set after seeing the number | the value is self-declared | tolerance_rationale is visible in the artifact; a reviewer can see the excuse |
| a plausible but wrong attribution | an experiment is attached, but it may not discriminate | a second, independent experiment; list both causes with resolved: false |
| a claim extracted wrongly, with a real anchor | the anchor proves where the text is, not that you read it right | a quote next to the anchor, so a reviewer reads the same sentence |
| a re-implementation that matches by coincidence | two errors can cancel | the alternatives list in comparison.json, which shows the candidates side by side |
| an under-specified case answered too confidently | the gate checks structure, not judgement | lowering status to partial and naming the missing knob |
The gate is a floor, not a ceiling: it guarantees the answer is inspectable, not that it is right. Say that in the verdict rather than implying more.
Execution budget
Assume a tight budget (tens of model calls, ~15 minutes, no network at run time). Order the work so that a partial deliverable exists after step 4: inventory + claims + params + env is already a defensible answer. Then add runs one at a time, cheapest first, and stop when the claims are decided.
Files
references/workflow.md— the seven steps in detail, with the JSON shapes.references/attribution_taxonomy.md— the six cause classes and how to test them.references/tolerance_policy.md— how to set a tolerance before running.references/result_schema.md— result.json and the per-step files.references/exception_handling.md— missing repo, no access, dependency clash.QUICKSTART.md— the six-command runbook when the budget is tight.scripts/— the six helper scripts (stdlib only; numpy if available).templates/— blank JSON/Markdown skeletons.examples/minimal_case/— a runnable two-method disagreement, end to end.evaluation/— two demonstrations scored from the artifacts: a two-method disagreement, and a case whose declared input is absent (the baseline restates the numbers and calls it success; the Skill registers the absence and returnspartial).tests/run_tests.py— proves the gate rejects an unanchored claim, an unattributed outside claim, and a missing contract field; also checks that a nested contract survives and that repeated emission is identical.
Before you answer
Run python tests/run_tests.py once if you changed a script — it is fast and it
tells you whether the gate still gates. The gate failing on your result is the
normal signal to add the missing anchor or attribution, not to relax the gate.