---
name: audit-replication-creation
description: Runs the policyreplication audit check `replication_creation` (build a replication package (i4r style)). Use when auditing papers cited by U.S. policy documents for this check.
check_id: replication_creation
status: planned
tier: 3
unit: paper
needs: package
cost: human
module: Computational reproducibility
depends_on: [package_rerun]
---

# Build a replication package (I4R style)

For the highest-stakes papers, reproduces the main results from public data and runs robustness checks, as the Institute for Replication does.

**When it applies:** The top 10 to 20 papers by policy weight (citing rules times their economic significance) whose data are public.

## Inputs

- Paper, data, any existing code
- Analyst time

## When to run it

Cheap filters, cheapest first. The planner runs the check only on targets that pass them; the rest get a `not_applicable` row.

- Top 10 to 20 papers by policy weight (number of citing rules times their economic significance).
- Data public, and `package_rerun` failed or no package exists.
- The rule cites a specific estimate from the paper (`citation_numbers` ran on it).

Filter as SQL over the audit views (D1):

```sql
SELECT paper_id, n_docs FROM audit_target WHERE corpus = :corpus ORDER BY n_docs DESC LIMIT 20
```

**Decision-model trigger (Jev).** For cases the filters cannot settle, ask a typed question and run the check when the answer clears the threshold.

| Part | Value |
| --- | --- |
| Input | The rule's citing sentence and the RIA section around it |
| Question | How much does the rule's main cost or benefit estimate depend on this paper's result? |
| Answer type | score 1 to 5 |
| Run the check if | score >= 4 makes the paper a candidate |

Jev is weak at counting, dates and reading numbers literally, so it only decides whether to run the check, never the check's result.

## How to run

Not implemented yet. To build it, register a function with `@check(...)` in `audit/checks.py` style, using the id, tier, unit and needs above, and follow the steps below. Write a `not_applicable` row for every target the check skips.

## Steps

1. Rank papers by policy weight.
2. Rebuild the analysis for the estimates the rules rely on.
3. Run robustness checks: specification, sample, standard errors.
4. Write a short report of what reproduced and what moved.

## Outcomes

| outcome | meaning |
| --- | --- |
| pass | reproduced and robust |
| flag | reproduced but fragile |
| fail | does not reproduce |

Every result row carries `evidence` (JSON: quotes, values, ids, URLs) so a reviewer can confirm it without rerunning.

## False positives

Differences from data revisions, not errors.

**Precision:** Human-reviewed.

## Prompt to give an agent

```
Run the policyreplication audit check `replication_creation` following audit/skills/replication_creation/SKILL.md
in github.com/Jomanw/policyreplication. Target corpus: sig2025 (change as needed).
Write one result per target to out/results.jsonl in the audit_result shape
(check_id, version, paper_id, citation_id, outcome, value, evidence).
Then report outcome counts and list every fail and flag with its evidence for
human review. Do not publish or contact anyone about a flag.
```

## Rules for agents

- Write a result for every target, including `not_applicable`, so denominators stay honest.
- A flag is a lead for human review, not a finding. Never publish or report a flag that names a paper or its authors until a person has checked it.
- Use only legally obtained full text. Record blocks; never bypass them.
- Avoid paid LLM calls unless the check's tier is 2 and a budget has been set.
