---
name: audit-link-confidence
description: Runs the policyreplication audit check `link_confidence` (citation-to-paper link confidence). Use when auditing papers cited by U.S. policy documents for this check.
check_id: link_confidence
status: built
tier: 0
unit: citation
needs: metadata
cost: free
module: Citation fidelity
depends_on: []
---

# Citation-to-paper link confidence

Grades how sure we are that a policy reference was matched to the right paper, so later checks are not run on the wrong paper.

**When it applies:** Every linked citation.

## Inputs

- Raw reference text in the rule
- Linked paper title, authors and year

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

- Every linked citation (`paper_id IS NOT NULL`). Run before any other citation-level check, because they all trust the link.

Filter as SQL over the audit views (D1):

```sql
SELECT citation_id FROM audit_claim WHERE paper_id IS NOT NULL
```

**Decision-model trigger:** None needed: the filter is exact and the check itself costs less than a model call.

## How to run

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

```
python3 audit/plan.py --papers papers.json --openalex openalex.json --citations citations.csv --authors authors.json --tier 0 --check link_confidence --out out/
```

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

## Steps

1. Compare title words, author surnames and year.
2. Apply the error rules found by hand-checking 165 links: supplementary-information records, and recurring reports matched to the wrong year.
3. Assign a tier from A (title matches) to E.

## Outcomes

| outcome | meaning |
| --- | --- |
| pass | title matches (tier A) |
| flag | weak match or an error rule hit |

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

## False positives

Short references ("Smith 2019") cannot be graded well.

**Precision:** Hand-checked: tier A 0 of 40 wrong; flagged tiers 9 of 125 wrong, plus 4 unsure.

## Prompt to give an agent

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