Our coding agent said "green" or "done" 15 times in one day. It was wrong every time
At the end of November we started a fail list. Every time one of our AI coding agents reports "green", "done" or "ready to roll out" and it wasn't, the list gets a line: the date, what was claimed, what was actually true
At the end of November we started a fail list. Every time one of our AI coding agents reports "green", "done" or "ready to roll out" and it wasn't, the list gets a line: the date, what was claimed, what was actually true, and the rule that should have caught it. Before the agent reports "done" again, it has to read the list.
The list has 29 dated lines from five days. Fifteen of them are from December 3, a day with review rounds running in several of our apps at once (Claude Code, one session per repository, with sub-agents writing the code).
When I sorted those fifteen, I expected skipped steps. There were a few. Mostly, though, the agent had run a check, the check had passed, and the check answered a smaller question than the claim.
The check was smaller than the claim
Three review rounds in a row ended with "lint 0 errors, all green". The repo's pre-push hook also runs architecture guards and a coverage check for library code, and the agent never ran those. When it finally pushed, the hook found logic in the web layer, new complexity hotspots, untested functions, one file over its size baseline and 15 new data-testid attributes, which our rules keep out of shipped markup. Once that was fixed, a CI job went red because the app's Astro site has its own lint step that the app hook doesn't run.
A sub-agent reported "typecheck green" for an Astro component that used a required prop it never destructured. tsc doesn't look inside .astro templates, and astro build failed with "lang is not defined".
In another app the agent ran the integration tests of the features it had touched, and they passed. CI then had six red integration tests, all outside those folders: a role matrix with no row for a new query, a test stub missing a new navigation entry, a test fixture built on the old default payment date, and a mail text that changed with a framework update.
The fix for those six tests was test-only, so it went out without a typecheck. It introduced a possibly undefined value, and the hook caught it.
For new infrastructure resources the unit tests were green. One more test renders every Pulumi resource and compares the result with a committed snapshot, and the new ConfigMap wasn't in that snapshot. The pre-push hook doesn't run that test. CI does.
The check ran somewhere else
A link check was green on a Mac and red in CI. Two links used CamelCase slugs, the docs generator writes lowercase paths, and macOS doesn't care about case, so every file lookup succeeded locally. The agent then re-ran the red CI job, which checked the old merge state again and stayed red.
The agent pushed a dependency bump and started watching CI 30 seconds later. It saw the green checks of the previous commit and squash-merged that commit. The live site kept the old privacy policy until a second PR.
A Pulumi preview ran on a branch two commits behind main, so it would have reverted pins another session had just shipped. After a fresh preview with --refresh, the agent ran up without it. Pulumi stopped with "violates plan", after one resource had already been replaced.
"Done" without looking at the real thing
One change was "ready to roll out" while only the app's CI had been watched. The website PR that belonged to the same change had been red since its push.
One report said "done" and then had a section called "still open" with 20 review findings nobody had worked on.
Another said "done" while the framework fix was merged but the app wasn't pinned to the new framework version yet.
A customer's document import had been reported done on December 1. No new record had come in since November 28. The desktop client had started sending file paths without the folder name, and the import's folder filter skipped every new file without a message. I found it through a status badge in our app builder, two days after the "done".
The graders graded pictures
We let agents play the roles of an app's real users and grade it, one grade per role with a reason. On December 3 that went wrong twice in the same way.
In our app builder, six role agents graded screenshots. None of them created a fresh free account and went from signup to payment. The free plan had zero AI tokens, the first AI step returned 403, and one screen offered an option it had no button for.
In a property management app, four rounds ended with grades near the top of the scale. The role agents got screenshots starting at a list view. The real workday starts in the inbox, and owner replies by mail weren't connected to anything there, which no screenshot could show.
A fact checked against the old text
Our framework's website said "Postgres with Drizzle ORM". The framework doesn't use Drizzle. Two review passes let it through, because both compared the new text with the old site text, which had the same mistake.
What the fifteen have in common
Each claim was wider than what had been looked at. "Green" covered a subset of the checks, "done" covered the merge and stopped before the running system, and a grade covered screenshots of a job that starts somewhere else.
So the rules that came out of the list mostly narrow the words:
- "Green" means the same steps the hook and CI run, on the commit that was pushed, and the merge only happens if CI ran on that exact commit.
- "Done" for an import means the newest file the customer delivered is a record in production.
- A role grade starts with a fresh account, or with a real case at the point where work arrives (for us usually an incoming mail).
- A fact on a public page is checked against the code of the release, never against the previous text.
These are still rules the agent reads, which is a soft gate. We wrote about how soft that can be in an earlier post: our agents skipped the pre-push hook on 118 of 411 pushes. Some of these rules can move into code. Comparing the merged commit with the pushed one is a few lines, and making a role agent start from an empty account is a fixture. "Done means the system shows it" is the hard one, because the system is different every time.
If you run coding agents: what does "done" mean in your setup, and where is it written down so the agent can't read it more loosely than you meant it?
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.