The Forensic Metascience Agent
The Forensic Metascience Agent is an AI agent we are developing that reads a scientific paper — the body text, the tables in the main PDF, and any supplementary-information PDFs — and checks every checkable statistic for internal consistency. It applies a battery of 31 statistical forensics tools, ranging from classic granularity tests like GRIM to randomized-trial baseline checks in the tradition of John Carlisle's anesthesiology audits, and then writes an editorial review that ends in a plain-language trust verdict: trustworthy, questionable, or untrustworthy.
Why forensic metascience?
A surprising amount of error — and occasionally fabrication — can be detected from a published paper alone, without any access to the raw data. Reported statistics are internally redundant: a mean of integer-scaled responses can only take certain values for a given sample size; a standard deviation is bounded by the range of the measurement; a t-statistic, its degrees of freedom, and its p-value must agree with one another; two "independent" studies should not report identical means and standard deviations down to the second decimal place. When the reported numbers violate these constraints, something is wrong — a typo, a copy-paste slip, a miscalculation, or worse.
Checking these constraints by hand is tedious, error-prone work that a small community of specialists ("data thugs," as they've affectionately been called) has done for years. The methods themselves are well documented — our agent's toolkit implements the techniques catalogued in James Heathers' An Introduction to Forensic Metascience (2025) — but applying them exhaustively to a paper takes hours of expert attention. This is exactly the kind of systematic, rule-governed work that AI agents are well suited to: sweep every statistic, run the right check on each one, and record the results in a form a human can verify.
How it works
The agent runs a two-stage pipeline built on the Claude Agent SDK.
Stage 1 — the forensic sweep. An agent armed with all 31 forensic tools (exposed via an MCP server) reads the paper and works through it statistic by statistic: means and SDs are checked for granularity and range violations, test statistics are recomputed from group summaries, thresholded p-values are recalculated exactly, baseline tables in randomized trials are tested for excessive similarity, and all tables are cross-compared for duplicated data. The output is a schema-validated JSON file of structured findings. Every finding records the technique used, the exact inputs read from the paper, the computed versus reported values, a severity rating, and a reproduction command — so any human can re-run the exact check from the command line and confirm it.
Stage 2 — the editorial review. A second pass triages the findings and adds the contextual reasoning a numeric sweep can't: Is the headline effect size plausible against external benchmarks? Does the statistical analysis match the study design? Does the paper claim its data are available while actually withholding them? It then writes a narrative report, leading with the most important problem and ending with the trust verdict.
Every finding carries one of five severity levels:
- impossible — violates mathematics (e.g., a GRIM failure, an SD above the maximum possible for the measurement range, an implied correlation greater than 1)
- highly suspicious — technically possible but extremely unlikely under honest reporting
- suspicious — unusual but plausible (e.g., a recalculated statistic disagreeing beyond rounding)
- indeterminate — cannot be determined from the available information
- consistent — passes the check