DEV Community

Evgenii Arsentev
Evgenii Arsentev

Posted on

Recount your AI agent's report before you act on it

Some AI agents write you a report every week or month. Team performance, sales, support, operations. The figures look tidy, so it's easy to just act on them.

Check them first. Ask each claim three questions: what is the formula, what is the denominator, what is the period. Then recount from your own data. If the agent can't answer one of the three, the claim isn't ready to act on.

I wrote a small open-source tool for the recounting part. It's called agentrecount.

What the tool is

It takes CSV in and gives you a Markdown table and JSON out. It needs Python 3.10 or newer and nothing else, because it uses only the standard library. No dependencies, no network calls, and it holds no keys. The license is MIT.

For every claim in a report, it asks for the formula, the denominator and the period. It recomputes the figure from your tables and puts the claim into one of four verdicts.

From a sentence to one row

Each claim becomes one row of claims.csv. Two columns are the basics: id, and claim, which is the sentence exactly as the agent wrote it. Then you describe it.

metric is the thing being measured, in words. kind is measurement by default. Use label for a stored score that isn't a measurement, and statement when there's no metric at all. value is the figure as the agent gave it, in forms like 600, 15%, +41%, x2 or 300 -> 600.

numerator and denominator are queries over your tables. period is the period the claim covers. group ties together the parts of one claim. alt_of marks a row as another way of counting the same claim. tolerance defaults to 2 percent relative, and note is free text.

The queries are written without eval(). You get count(table where ...), then sum, avg, min or max of table.column where ..., then distinct(...), and arithmetic between them. A table is a CSV or JSON file in your data folder, one table per file.

Take the agent's sentence "Calls doubled, 300 -> 600". It goes into claim as it is, and 300 -> 600 goes into value. The metric is calls. The queries count the calls in your own tables, and the period is the one the report states.

For any claim that matters, add a second row with alt_of pointing at the first. That row counts the same thing another way, with a different denominator or period.

The four verdicts

Verdict What it means
Holds as stated Reproduced under the stated definition and under every alternative listed.
Holds only under one way of counting Reproduced under some definitions, not all. A different denominator, period or metric gives another result.
Partly false or misleading One part of a multi-part claim fails, or the figure is a stored label presented as a measurement.
Not reproduced or not testable Reproduced under no definition, or there's no formula, denominator, period or metric to test.

The demo runs on a synthetic example company. Four of its claims show every verdict.

"Calls doubled, 300 -> 600" holds as stated.

"Talk time up 50% this week" reproduces as stated (+50%). But with another definition, answered calls of 60 seconds or more, the figure is +68%. So it holds only under one way of counting.

"Three trial candidates all scored 90/100 in the AI interview" reproduces the 90. The 90 is a stored label, though, not a measurement. That makes it partly false or misleading.

"A second new caller shows good results" has no metric, no formula and no period. It can't be reproduced or tested.

What to ask the agent first

The tool also lists every claim that arrived without a denominator or a period. Those are your first questions for the agent. Send the list back and ask for the missing definitions before you spend time writing queries.

Running it

The demo needs no install:

git clone https://github.com/arsentev-ai/agentrecount && cd agentrecount
python3 -m agentrecount demo
pip install .
agentrecount template --out my-audit
agentrecount my-audit/claims.csv --data my-audit/tables
Enter fullscreen mode Exit fullscreen mode

The template command creates a starter claims.csv and example tables. The last line audits your own files. If you prefer Docker, run docker build -t agentrecount . and then docker run --rm agentrecount to see the demo.

You can also hand the setup to a coding agent. The repository has an AGENTS.md, so you can ask a coding agent such as Claude Code to install the tool and ask you for the report and the tables. It then turns each claim into a formula with a denominator and a period, recounts, and gives you the four-verdict table.

A short checklist

  1. Copy each figure from the agent's report into its own row.
  2. Write the metric in words.
  3. Write the numerator and the denominator as queries over your tables.
  4. Write the period.
  5. Add one alternative way of counting for any claim that matters.
  6. Mark stored scores as labels.
  7. Run the tool, then send the agent the list of claims with no denominator or no period.

What it doesn't do

It doesn't read the agent's report for you. Turning prose into formulas is a human step, or a coding-agent step, and that step is where most of the disagreement lives.

It also doesn't judge whether the agent's work was good. It tells you whether the agent's figures are what your data shows, and under which definition.

Where the method comes from

The method comes from my published case report on an AI agent that supervised a phone team in a live company for three weeks (payrollburn series, part 1). Of nine checkable claims in the agent's own weekly report, one held as written, three held only under one way of counting, two were misleading and three could not be reproduced. The report concludes that an AI manager needs a named human reviewer.

Code: github.com/arsentev-ai/agentrecount, software DOI 10.5281/zenodo.24128963. The case report the method comes from: AI Call Center Supervisor in a Live Company, DOI 10.5281/zenodo.23926851.

Evgenii Arsentev, MD, PhD - creator of Arsminal; founder of ArsentevAI and Dad4Kids. ORCID 0000-0002-9120-7298 · Wikidata Q141398931

Top comments (1)

Collapse
 
salparvez profile image
Sal Parvez | ML Systems RI •

Formula, denominator, period are the same three questions an estimator asks of any number on a bid. "Talk time up 50%" holding under one definition and reading +68% under another is exactly why two people can look at the same job and both be honest. The verdict I'd use most is the label one: a stored score presented as a measurement. I tag figures MODELED or MEASURED for the same reason, because once a modeled number gets repeated without the tag, people act on it as if someone counted. One request: let a claim record who supplied the definition, the agent or the reviewer. When those differ, that's usually the finding.