Priced, not passed: what accounting agents actually lose in a SPED-native audit environment

Agent evaluations score tasks as passed or failed, or grade answers against a rubric. The economy prices errors in currency, and asymmetrically: a missed defect in a Brazilian tax filing costs its statutory fine times the probability of audit, and a false finding costs the hours spent chasing it. malha generates a synthetic company's complete fiscal year — NF-e XMLs, the double-entry journal, trial balances, and the statutory ECD and EFD-Contribuições filings — injects defects from a frozen 15-class taxonomy, re-derives every downstream artifact so the world stays consistent, and prices an agent's audit in the fines the law charges (Lei 8.218/1991, art. 12). The verifier recomputes from artifacts and never reads the answer key; agreement with the injected truth on the pilot gate is 100% across the 15 classes. Two frontier agent loops were measured on 30 worlds with 3 episodes each, intervals by paired bootstrap over worlds. Both beat the trivial floors decisively; neither beats the deterministic rules engine the agents were meant to obsolete — even with that engine exposed as a tool inside the loop — and one arm is decisively worse (+4,815 BRL per episode, 95% interval +1,333 to +8,815). The verdict is a regime map rather than a boolean: the agents' substantive recall (0.578 where the engine is blind by construction) pays only as enforcement intensifies, and under aggressive enforcement the better arm's margin flips sign (-3,329, interval crossing zero). Unioning the deterministic engine with the better agent's committed episodes cuts mean loss to 5,073 BRL (-4,067 vs. rules, 95% interval -6,231 to -2,257), isolating the failure as non-selective reliability rather than absence of judgment. Failure modes have geometry that binary scoring cannot separate: one model misses stochastically per episode, one over-flags, one is blind to whole defect classes deterministically, one engages bimodally with precision intact. A training study on Qwen3-8B fails with its mechanism visible: imitation on 80 verified traces worsens mean loss relative to the base model by collapsing erratic behaviour into format-perfect degenerate loops, and group-relative reinforcement cannot start because within-group outcome variance is exactly zero across seeds, initialisations and temperatures. The sample is 30 worlds of one task mode with synthetic texture, the loss model is one reading of the fine table, and the vendor models are moving targets. The environment, the worlds, the traces and the failed adapter are public. Not peer reviewed. Code, frozen pre-registration and artifacts: https://github.com/caiotheodoro/malha

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-25
DOI
https://doi.org/10.5281/zenodo.24542418
Primary Topic
Taxation and Compliance Studies
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Priced, not passed: what accounting agents actually lose in a SPED-native audit environment

Caio Theodoro
3 links
Zenodo (CERN European Organization for Nuclear Research)
Taxation and Compliance Studies
preprint

Priced, not passed: what accounting agents actually lose in a SPED-native audit environment

Caio Theodoro
preprint en

Abstract

Agent evaluations score tasks as passed or failed, or grade answers against a rubric. The economy prices errors in currency, and asymmetrically: a missed defect in a Brazilian tax filing costs its statutory fine times the probability of audit, and a false finding costs the hours spent chasing it. malha generates a synthetic company's complete fiscal year — NF-e XMLs, the double-entry journal, trial balances, and the statutory ECD and EFD-Contribuições filings — injects defects from a frozen 15-class taxonomy, re-derives every downstream artifact so the world stays consistent, and prices an agent's audit in the fines the law charges (Lei 8.218/1991, art. 12). The verifier recomputes from artifacts and never reads the answer key; agreement with the injected truth on the pilot gate is 100% across the 15 classes. Two frontier agent loops were measured on 30 worlds with 3 episodes each, intervals by paired bootstrap over worlds. Both beat the trivial floors decisively; neither beats the deterministic rules engine the agents were meant to obsolete — even with that engine exposed as a tool inside the loop — and one arm is decisively worse (+4,815 BRL per episode, 95% interval +1,333 to +8,815). The verdict is a regime map rather than a boolean: the agents' substantive recall (0.578 where the engine is blind by construction) pays only as enforcement intensifies, and under aggressive enforcement the better arm's margin flips sign (-3,329, interval crossing zero). Unioning the deterministic engine with the better agent's committed episodes cuts mean loss to 5,073 BRL (-4,067 vs. rules, 95% interval -6,231 to -2,257), isolating the failure as non-selective reliability rather than absence of judgment. Failure modes have geometry that binary scoring cannot separate: one model misses stochastically per episode, one over-flags, one is blind to whole defect classes deterministically, one engages bimodally with precision intact. A training study on Qwen3-8B fails with its mechanism visible: imitation on 80 verified traces worsens mean loss relative to the base model by collapsing erratic behaviour into format-perfect degenerate loops, and group-relative reinforcement cannot start because within-group outcome variance is exactly zero across seeds, initialisations and temperatures. The sample is 30 worlds of one task mode with synthetic texture, the loss model is one reading of the fine table, and the vendor models are moving targets. The environment, the worlds, the traces and the failed adapter are public. Not peer reviewed. Code, frozen pre-registration and artifacts: https://github.com/caiotheodoro/malha

Zenodo (CERN European Organization for Nuclear Research)
Taxation and Compliance Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon