Inspiration

Coding agents finish with a confident report: the tests ran and passed, a file was added, the tree is clean, nothing was pushed. Checking each of those lines by hand against Git and the test output is slow, so reports often get trusted as written. A report that names a missing file or the wrong test count reads exactly like a correct one. We wanted a receipt check that does that comparison mechanically and shows its evidence.

What it does

agent-receipts runs a receipt check: it compares what a coding agent's final report says it did with what the repository and the test log show. It reads the report one statement per line, as plain text or Markdown, from a file or stdin. Each statement gets one verdict, confirmed, contradicted, or not checkable, with the evidence shown.

It checks these statement families:

  • a commit exists locally;
  • a file exists at HEAD;
  • the working tree is clean;
  • a test command passed with a stated count, against a captured log of cargo test, pytest, vitest, jest, npx vitest, or npx jest;
  • pushed or not pushed, against a local tracking ref you name;
  • which paths changed since a base commit: only touched, did not modify, added, created, deleted, renamed.

A statement with no evidence the tool can read stays not checkable; it never counts as confirmed. Output is a terminal table or versioned JSON. Exit codes are 0 when all statements are confirmed, 1 for any contradiction, 2 for invalid input, and 3 for missing evidence, so CI can fail a run whose report does not hold up. It runs offline, makes no model calls, and never executes report text.

Check it in a few minutes with stable Rust and Git:

git clone https://github.com/bananatruck/agent-receipts
cd agent-receipts
cargo build --locked --release
./target/release/agent-receipts --repo . --report examples/synthetic-report.md
sh examples/demo.sh

The first check prints 2 confirmed, 2 contradicted and 3 not checkable and exits 1, because the synthetic report contains false statements on purpose. The demo builds a throwaway repository and shows a clean-tree claim flipping to contradicted when an untracked file appears. The README shows a synthetic report checked against this repository's real history and a freshly captured test log.

How we built it

The project was built by AI coding agents directed by the author; the tools are listed in the disclosure below. Work began on November 24, 2026, after the event's stated start date. It is written in Rust with clap for arguments, regex for the fixed statement grammar, serde and serde_json for JSON, libc on Unix only so log files open without waiting on a pipe, and tempfile in tests. Git runs as a subprocess with global and system configuration excluded, replacement objects, filesystem monitor hooks, external diff drivers and lazy fetching disabled, and status computed from a private copy of the index. Each statement family started with a failing test. Integration tests build their own throwaway Git repositories under the system temp directory, and the log parsers are tested against captured Cargo and Vitest 3.2.4 output. The suite has 96 tests (12 unit, 84 command-line), and CI runs the format check, clippy with warnings denied, the tests, a release build, and the demo.

Challenges we ran into

The hard part was not confirming things that are not true. Three full-repository automated review rounds, each followed by several fix passes, kept finding cases where a statement could be confirmed wrongly. Examples: a test log whose counts match while the runner crashed, Cargo output lines that only look like suite announcements, Git configuration that could run filters during a status check, and rename detection that repository settings could switch off. Each case became a test and a rule: runner errors contradict even matching counts, malformed announcements stay not checkable, cleanliness is not checkable when filters are configured, and the exhaustive rename limit is disabled.

Accomplishments that we're proud of

Missing evidence never passes: it stays not checkable and gives exit code 3, not 0. Every verdict shows the evidence it used, so a reader can check the checker. The example output in the README is a real capture from this repository, not a mock-up.

What we learned

A captured log is evidence only of its own text, not proof that the command really ran in this checkout, and the tool says so in every count verdict. A local tracking ref is a snapshot that can be stale, so pushed-state verdicts describe that ref and never the server. A fixed statement grammar is less flexible than free-form parsing, but it is predictable, testable, and honest about what it skips.

What's next

Support for more test runners and more statement forms. A ready-made CI step that checks an agent's report before its pull request can merge.

Limits

Supplied logs establish only what their text records, not whether an authentic command ran in this checkout. Incomplete additional summaries stay not checkable, and matching failure counts cannot account for runner execution errors. A local tracking ref can be stale and cannot establish the server's present state or prove a push happened. Diff checks compare committed endpoint trees and do not establish everything edited during a session. The parser accepts documented statement forms rather than arbitrary prose. Headings and unsupported assertions remain visible as not checkable and prevent a successful CI exit. Cleanliness stays not checkable for configured filters, hidden index flags, or submodule worktrees. --log COMMAND=PATH splits at the final equals sign, so a log path containing an equals sign needs the two-argument form --log-file COMMAND PATH. The program cannot prove code quality, authorship, or completeness.

AI tools disclosure

AI coding agents built this project under the author's direction. The tools used on this repository, and what each did:

  • Codex: wrote the specification and the walking skeleton, built the second phase, and fixed findings in the first three review rounds.
  • Antigravity: read the finished build once as an adversarial reviewer, without changing code.
  • Claude (Opus 5.5 model, run as coding agents): fixed review findings in later passes, and prepared the documentation fixes, the demo video and this submission text.
  • CodeRabbit: automated pull request review in every review round.

Built With

Share this project:

Updates

Submission history