Percentages consistent with their counts
A GRIM-style test for proportions: wherever a count, a denominator and a percentage appear together, k/N must round to the printed percentage.
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.
- Cheap text test: a count, a denominator and a percentage appear together ("12/48 (25.0%)", "25% (12 of 48)").
- Highest yield in clinical and epidemiological papers.
Filter as SQL over the audit views (D1):
SELECT t.paper_id FROM audit_target t JOIN paper_fulltext f USING (paper_id) WHERE f.has_fulltext = 1
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/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 pct_consistency --out out/
Then load out/results.jsonl into audit_run / audit_result (see audit/README.md).
Steps
- Find triples such as "12/48 (25.0%)" or "25% (12 of 48)".
- Check that k/N rounds to the printed percentage at its printed precision.
Outcomes
| outcome | meaning |
|---|---|
| fail | 2 or more inconsistent |
| flag | 1 inconsistent |
| pass | all consistent |
| not_applicable | no triples |
Every result row carries evidence (JSON: quotes, values, ids, URLs) so a reviewer can confirm it without rerunning.
False positives
PDF extraction sometimes drops digits. Weighted percentages are not k/N.
Precision: Hand-check every flag.
Prompt to give an agent
Run the policyreplication audit check `pct_consistency` following audit/skills/pct_consistency/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-pct-consistency
description: Runs the policyreplication audit check `pct_consistency` (percentages consistent with their counts). Use when auditing papers cited by U.S. policy documents for this check.
check_id: pct_consistency
status: built
tier: 1
unit: paper
needs: fulltext
cost: cpu
module: Reported-numbers consistency
depends_on: []
---
# Percentages consistent with their counts
A GRIM-style test for proportions: wherever a count, a denominator and a percentage appear together, k/N must round to the printed percentage.
**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.
- Cheap text test: a count, a denominator and a percentage appear together ("12/48 (25.0%)", "25% (12 of 48)").
- Highest yield in clinical and epidemiological papers.
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
```
**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/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 pct_consistency --out out/
```
Then load `out/results.jsonl` into `audit_run` / `audit_result` (see `audit/README.md`).
## Steps
1. Find triples such as "12/48 (25.0%)" or "25% (12 of 48)".
2. Check that k/N rounds to the printed percentage at its printed precision.
## Outcomes
| outcome | meaning |
| --- | --- |
| fail | 2 or more inconsistent |
| flag | 1 inconsistent |
| pass | all consistent |
| not_applicable | no triples |
Every result row carries `evidence` (JSON: quotes, values, ids, URLs) so a reviewer can confirm it without rerunning.
## False positives
PDF extraction sometimes drops digits. Weighted percentages are not k/N.
**Precision:** Hand-check every flag.
## Prompt to give an agent
```
Run the policyreplication audit check `pct_consistency` following audit/skills/pct_consistency/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.