CommunityRecherche & Datenanalysegithub.com

paper-repro-verifier

Verify a paper's reported numbers by actually running its method, and turn any mismatch into a verifiable attribution instead of a guess. Use when a task gives you a paper (or a claim sheet) plus candidate code/data and asks whether the reported value can be reproduced, which parameters the claim depends on, or why two candidate implementations disagree. Produces a parameter table with provenance, an environment snapshot, a tolerance-declared comparison, an attribution table, and a verdict.

Was ist paper-repro-verifier?

paper-repro-verifier is a Claude Code agent skill that verify a paper's reported numbers by actually running its method, and turn any mismatch into a verifiable attribution instead of a guess. Use when a task gives you a paper (or a claim sheet) plus candidate code/data and asks whether the reported value can be reproduced, which parameters the claim depends on, or why two candidate implementations disagree. Produces a parameter table with provenance, an environment snapshot, a tolerance-declared comparison, an attribution table, and a verdict.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/yangpei401-commits/paper-repro-verifier/tree/HEAD

Installed? Explore more Recherche & Datenanalyse skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

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.md is 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)

  1. Read /input/case.json and task.md (or whatever the case declares). Find output_contract, case_id, required fields, and any budget/limit.
  2. 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.
  3. 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.

stepscriptoutputwhat it must contain
1 inventoryscripts/inventory.pywork/inventory.jsonevery file read, its sha256, size, and role; a missing list for declared-but-absent material
2 claimsyouwork/claims.jsoneach reported number with anchor (page/table/figure/line) and the exact quote
3 parametersscripts/params_table.pywork/params.jsonevery knob the run depends on, each tagged paper_stated / code_inferred / assumed, with anchor and default
4 environmentscripts/env_snapshot.pywork/env.jsoninterpreter, package versions, seeds, CPU/memory, and any deviation from what the paper states
5 runyouwork/runs/*.logthe exact command, exit code, wall time, and the raw output the comparison reads
6 comparescripts/compare.pywork/comparison.jsonper claim: reported, reproduced, deviation, tolerance, verdict inside / outside
7 attributeyouwork/attribution.jsonper 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.missing and 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 anchor or a log path.

What this cannot catch (the boundary)

Stated plainly, because a verifier that oversells itself is not a verifier:

it does not catchwhywhat would
a tolerance set after seeing the numberthe value is self-declaredtolerance_rationale is visible in the artifact; a reviewer can see the excuse
a plausible but wrong attributionan experiment is attached, but it may not discriminatea second, independent experiment; list both causes with resolved: false
a claim extracted wrongly, with a real anchorthe anchor proves where the text is, not that you read it righta quote next to the anchor, so a reviewer reads the same sentence
a re-implementation that matches by coincidencetwo errors can cancelthe alternatives list in comparison.json, which shows the candidates side by side
an under-specified case answered too confidentlythe gate checks structure, not judgementlowering 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 returns partial).
  • 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.

Verwandte Skills