Table totals and sample sizes add up
Rows and columns sum to their totals, shares sum to 100%, and N is consistent across tables and text.
When it applies: Papers with extracted tables.
Inputs
- Extracted tables
- Sample sizes from the 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, and tables extracted.
- At least one table with a "Total" row or column, or a share column.
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
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
- Find total rows and columns and check the sums within rounding.
- Check shares sum to 100% within rounding.
- Compare N across tables, the abstract and the methods.
Outcomes
| outcome | meaning |
|---|---|
| flag | a sum or N disagrees |
| pass | all consistent |
| not_applicable | no tables |
Every result row carries evidence (JSON: quotes, values, ids, URLs) so a reviewer can confirm it without rerunning.
False positives
Tables with subsets or missing categories; N that legitimately changes across specifications.
Precision: Not measured.
Prompt to give an agent
Run the policyreplication audit check `table_arithmetic` following audit/skills/table_arithmetic/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-table-arithmetic description: Runs the policyreplication audit check `table_arithmetic` (table totals and sample sizes add up). Use when auditing papers cited by U.S. policy documents for this check. check_id: table_arithmetic status: planned tier: 1 unit: paper needs: fulltext cost: cpu module: Reported-numbers consistency depends_on: [] --- # Table totals and sample sizes add up Rows and columns sum to their totals, shares sum to 100%, and N is consistent across tables and text. **When it applies:** Papers with extracted tables. ## Inputs - Extracted tables - Sample sizes from the 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, and tables extracted. - At least one table with a "Total" row or column, or a share column. 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 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. Find total rows and columns and check the sums within rounding. 2. Check shares sum to 100% within rounding. 3. Compare N across tables, the abstract and the methods. ## Outcomes | outcome | meaning | | --- | --- | | flag | a sum or N disagrees | | pass | all consistent | | not_applicable | no tables | Every result row carries `evidence` (JSON: quotes, values, ids, URLs) so a reviewer can confirm it without rerunning. ## False positives Tables with subsets or missing categories; N that legitimately changes across specifications. **Precision:** Not measured. ## Prompt to give an agent ``` Run the policyreplication audit check `table_arithmetic` following audit/skills/table_arithmetic/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.