Cited numbers found in the paper
Checks that each number the rule attributes to a paper actually appears in that paper.
When it applies: Citations with a context sentence that holds a checkable number, where we hold the paper's full text.
Inputs
citation.context_sentenceandcitation_context.claim_numbers- Paper full text (pdftotext)
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 (
has_fulltext = 1). - The citing sentence holds at least one number with a unit (
claim_numbersis a non-empty JSON array). link_confidencepassed, so the paper is the right one.
Filter as SQL over the audit views (D1):
SELECT c.citation_id FROM audit_claim c JOIN paper_fulltext f USING (paper_id) WHERE f.has_fulltext = 1 AND json_array_length(c.claim_numbers) > 0
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 plus the paper's abstract |
| Question | Does the rule attribute a specific quantitative result to this paper (not just background or a method)? |
| Answer type | yes / no |
| Run the check if | p(yes) > 0.6. Also the tier-2 follow-up for misses: "Is the number in the rule derived from, contradicted by, or absent from this passage?" (pick one of derived / contradicted / absent) |
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 citation_numbers --out out/
Then load out/results.jsonl into audit_run / audit_result (see audit/README.md).
Steps
- Take every number with a unit, a decimal or a thousands separator from the clause that cites the paper.
- Search the paper text for it, allowing rounding, percent versus fraction, and changes of scale (thousands, millions).
- Require the citation marker or the first author's surname in the same clause, so numbers are tied to the right source.
- For misses, record the closest values found.
- Next step (tier 2): ask a model whether a missed number is derived from the paper, contradicted by it, or absent.
Outcomes
| outcome | meaning |
|---|---|
| pass | all numbers found |
| flag | some or none found |
| not_applicable | no context sentence or no checkable number |
| no_text | no full text held |
Every result row carries evidence (JSON: quotes, values, ids, URLs) so a reviewer can confirm it without rerunning.
False positives
The agency did its own arithmetic (a new dollar year, annualising); the number is in an online appendix we do not hold; a common number matches by chance.
Precision: Hand-checked pilot: 2 real leads among 7 flagged claims.
Prompt to give an agent
Run the policyreplication audit check `citation_numbers` following audit/skills/citation_numbers/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.
Skill file
--- name: audit-citation-numbers description: Runs the policyreplication audit check `citation_numbers` (cited numbers found in the paper). Use when auditing papers cited by U.S. policy documents for this check. check_id: citation_numbers status: built tier: 1 unit: citation needs: fulltext cost: cpu module: Citation fidelity depends_on: [] --- # Cited numbers found in the paper Checks that each number the rule attributes to a paper actually appears in that paper. **When it applies:** Citations with a context sentence that holds a checkable number, where we hold the paper's full text. ## Inputs - `citation.context_sentence` and `citation_context.claim_numbers` - Paper full text (pdftotext) ## 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 (`has_fulltext = 1`). - The citing sentence holds at least one number with a unit (`claim_numbers` is a non-empty JSON array). - `link_confidence` passed, so the paper is the right one. Filter as SQL over the audit views (D1): ```sql SELECT c.citation_id FROM audit_claim c JOIN paper_fulltext f USING (paper_id) WHERE f.has_fulltext = 1 AND json_array_length(c.claim_numbers) > 0 ``` **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 plus the paper's abstract | | Question | Does the rule attribute a specific quantitative result to this paper (not just background or a method)? | | Answer type | yes / no | | Run the check if | p(yes) > 0.6. Also the tier-2 follow-up for misses: "Is the number in the rule derived from, contradicted by, or absent from this passage?" (pick one of derived / contradicted / absent) | 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 citation_numbers --out out/ ``` Then load `out/results.jsonl` into `audit_run` / `audit_result` (see `audit/README.md`). ## Steps 1. Take every number with a unit, a decimal or a thousands separator from the clause that cites the paper. 2. Search the paper text for it, allowing rounding, percent versus fraction, and changes of scale (thousands, millions). 3. Require the citation marker or the first author's surname in the same clause, so numbers are tied to the right source. 4. For misses, record the closest values found. 5. Next step (tier 2): ask a model whether a missed number is derived from the paper, contradicted by it, or absent. ## Outcomes | outcome | meaning | | --- | --- | | pass | all numbers found | | flag | some or none found | | not_applicable | no context sentence or no checkable number | | no_text | no full text held | Every result row carries `evidence` (JSON: quotes, values, ids, URLs) so a reviewer can confirm it without rerunning. ## False positives The agency did its own arithmetic (a new dollar year, annualising); the number is in an online appendix we do not hold; a common number matches by chance. **Precision:** Hand-checked pilot: 2 real leads among 7 flagged claims. ## Prompt to give an agent ``` Run the policyreplication audit check `citation_numbers` following audit/skills/citation_numbers/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.