---
name: audit-repl-package
description: Runs the policyreplication audit check `repl_package` (replication package or data link). Use when auditing papers cited by U.S. policy documents for this check.
check_id: repl_package
status: built
tier: 1
unit: paper
needs: fulltext
cost: cpu
module: Computational reproducibility
depends_on: []
---

# Replication package or data link

Level 0 of the package ladder: does the paper point to code or data?

**When it applies:** Papers with full text.

## Inputs

- Paper full text

## 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.

- Full text held.
- Empirical paper (not a review, commentary or modelling-only report).
- Highest yield for economics journals with a data policy (AEA, Econometric Society, REStud) from 2019 on.

Filter as SQL over the audit views (D1):

```sql
SELECT t.paper_id FROM audit_target t JOIN paper_fulltext f USING (paper_id) WHERE f.has_fulltext = 1 AND t.openalex_type = 'article'
```

**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 | Title and abstract |
| Question | Does this paper estimate results from data (rather than review, theorise or simulate)? |
| Answer type | yes / no |
| Run the check if | p(yes) > 0.5 |

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

This check is implemented in `audit/pilot_checks.py` (PR 10) and run by the planner:

```
python3 audit/plan.py --papers papers.json --openalex openalex.json --citations citations.csv --texts texts.db --tier 1 --check repl_package --out out/
```

Then load `out/results.jsonl` into `audit_run` / `audit_result` (see `audit/README.md`).

## Steps

1. Find links to openICPSR, Dataverse, Zenodo, OSF, GitHub, figshare, Dryad and Mendeley Data.
2. Find data availability statements, including "available on request".

## Outcomes

| outcome | meaning |
| --- | --- |
| pass | repository link |
| flag | "on request" only |
| not_applicable | nothing found |

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

## False positives

Absence is weak evidence: packages are often linked only from the journal page.

**Precision:** Link found about 95%.

## Prompt to give an agent

```
Run the policyreplication audit check `repl_package` following audit/skills/repl_package/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.
