R499 · Agent principles and patterns › Formal constraints on agent actions

Free checks first: tracing a reported number back to its log

Read the original

verification, provenance, static-analysis, agent-governance, claim-checking, cost

VeriLoop: Deterministic Evidence Gates and Path-Isolated Cross-Model Auditing for Autonomous Research — Shanglin Yang, Zhan Shi, Yi Fang, Yuhong Liu (Santa Clara University), arXiv:2611.38363, November 2026. Code MIT at github.com/shangliy/VeriLoop.

The failure this is aimed at

An autonomous research agent that writes code, runs experiments and drafts the report rarely fails by forgetting to save a file. It fails while exiting cleanly. Two real defects from the authors' own audited runs make the shape concrete:

Neither is caught by checking that the output files exist. The published rates for this class of defect are high: one audit of AI-generated papers reports a 21.2% claim-level fabrication rate with AI reviewers overlooking 86.2% of fabricated claims; an academic-integrity benchmark records a 34.2% failure rate across seven frontier models; and 44.6% of experiment fabrications rely on hardcoded or simulated components.

The obvious remedy — run a frontier model as auditor on every iteration — is expensive, and non-paired evaluations confound the reviewer's capability with drift in the run being reviewed.

The design: two layers, cheap one first

Layer 1 is three verifiers written against the Python standard library only. They cost nothing per run and finish in milliseconds.

Signed, unit-normalized numerical provenance. Every decimal in the output is indexed by magnitude and by explicit sign, with Unicode minus, ASCII hyphen intervals and fraction-to-percentage conversions normalized first, so a logged 0.65 matches a tabulated 65.0 or 65.0%. Four hard invariants:

Static Python AST auditing, without executing the code. Six integrity patterns: hardcoded metric floats printed as literals; constant float lists or dicts assigned to metric variables; random or mock data generation inside an except block or a missing-data guard; conditionals that compare test accuracy or loss against a running best; metric functions defined and never called; optimistic tie-breaking in rank counts.

Citation and binding checks. BibTeX keys locally, and optionally against arXiv, Crossref and Semantic Scholar, to block fabricated or abstract-contradicting references; plus binding of logged values to the rendered document.

Layer 2 is a read-only cross-model auditor, path-isolated, with dual-model milestone gates. It inspects the raw files rather than the agent's own summary, and it only sees what Layer 1 passed.

What the numbers actually say

The benchmark is sixteen SHA-256 frozen workspaces, labelled 9 clean and 7 defective, with three repeats and majority vote, under one unified post-audit rule.

That last line is the trade-off the paper is really about. A provenance gate that blocks on anything untraced will stop honest work whose intermediate values were computed and not logged. Cascading the warning into a reader that can look at the files keeps the recall and the yield.

Two out-of-sample checks:

Statistics are workspace-level Wilson 95% intervals over the sixteen independent workspaces, with majority vote across repeats, deliberately avoiding trial-level pseudo-replication.

The limitations, which are stated plainly

Five, in the authors' own words and worth repeating because they bound every number above:

  1. Small, single-team annotation. Sixteen workspaces, only two of the defects natural rather than constructed, no blind non-author inter-rater reliability, one workspace relabelled post hoc, and underpowered workspace-level tests.

  2. In-sample recall is not unseen recall. The locked rules were finalized with the sixteen workspaces visible. The unseen runs calibrate the false-positive rate, not recall — none of them contained a trap.

  3. A newer tracer has shipped and is explicitly not claimed to reduce false positives until a fresh held-out benchmark exists.

  4. Incomplete cells. One auditor configuration stopped at 5 of 48 trials against a quota cap, with 43 errors retained; a second CLI auditor was never run.

  5. Workloads are CPU-only adversarial benchmarks, with a single live 42-run study on one consumer GPU; nothing distributed.

What is reusable here

The specific gates matter less than the ordering principle, which generalises to any pipeline where an agent reports its own results:

The sharpest framing is the paper's own premise, inverted: checking every machine-written report with another machine is backwards while a free script can refute most of the sloppy work first.

Connections

See R499 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.