Aglio blog

November 24, 2026 · Aglio team · 3 min read

A run has to show its work

Agents grade their own homework too easily. How Aglio records verification evidence on the card and refuses to call a run done without it.

An agent finishing a task is not the same as a task being finished. The model reads its own diff, decides the diff is what was asked for, and reports success. Sometimes it is right. The failure mode is not that it lies; it is that it checks the wrong thing. It confirms the code exists instead of confirming the code works, and the two feel identical from inside a chat.

The fix is mechanical, not rhetorical. A run has to produce evidence that someone else could inspect.

Put the check in the run, not in the prose

Ask for a test suite to pass and the agent will run it. Ask for code that "handles errors correctly" and the agent will describe how the code handles errors. Only one of those answers is falsifiable.

So the card names commands, not adjectives. pnpm typecheck clean. pnpm --filter @aglio/web build passes. The migration applies against a disposable database. The screenshot shows the empty state instead of the happy path. When the acceptance criteria are commands, verification stops being a discussion.

If the project has no checks, that is the first task, not a reason to trust the summary. One test that fails before the change and passes after is worth more than a paragraph of confident narration.

Record the result where the work lives

Terminal output lives in a container that disappears. A summary in a chat window lives in someone's memory of the session. Neither survives the review.

Aglio stores verification on the card: which check ran, when, and what it returned. Reviewers read the evidence next to the diff instead of asking the author to re-run something. Two weeks later, when a regression shows up, the same record answers whether the check ever ran at all.

Evidence is also what separates a retry from a guess. If the test failed, the next attempt has a concrete error to fix. If no test ran, the next attempt has nothing new to go on, and the model will produce another plausible variation of the same wrong idea.

Make the cheap checks fail loudly

The checks worth automating are the boring ones: types, lint, build, the handful of tests that guard the main flow. They catch the majority of agent mistakes and they cost seconds. A run that skips them is not faster; it moves the cost into review, where a person has to notice what a compiler would have said instantly.

Cheap checks also constrain the agent while it works, not just at the end. A build that breaks on the first wrong import stops the wandering early, before twenty files depend on the mistake.

Some claims still need a person

Evidence is not an autopilot. A passing suite says the login flow still works; it does not say the new settings page reads well. Behavior, wording and visual judgement stay with a human. The point of recording evidence is to spend a reviewer's attention on the parts a machine cannot judge, not to replace the reviewer.

Done means checkable

The rule is short: if you cannot name how someone confirms the change, the card is not ready. Write the confirmation on the card. Let the run produce it. Read the result before you read the summary, because the summary was written by the same model that wrote the code.