---
title: "Comment by Kartik N V J K on \"15 Ways AI Coding Agents Fail in Real Repos (and the Guardrails That Fix Them)\" | Hashnode"
description: "Your \"42 passed in 6.1s\" versus \"tests pass\" example is the clearest definition of done for agents I've come across. When I've asked agents for that kind of evi"
url: "https://hashnode.com/posts/15-ways-ai-coding-agents-fail-in-real-repos-and-the-guardrails-that-fix-them/6acd7565f368324e95be4626/comment/6acfae87eb1f8b8231eb4269"
---

[Discussion](https://hashnode.com/posts/15-ways-ai-coding-agents-fail-in-real-repos-and-the-guardrails-that-fix-them/6acd7565f368324e95be4626)

Comment [15 Ways AI Coding Agents Fail in Real Repos (and the Guardrails That Fix Them)](https://hashnode.com/posts/15-ways-ai-coding-agents-fail-in-real-repos-and-the-guardrails-that-fix-them/6acd7565f368324e95be4626)

[Kartik N V J K](https://hashnode.com/@kartik-nvj)

[Oct 14](https://hashnode.com/posts/15-ways-ai-coding-agents-fail-in-real-repos-and-the-guardrails-that-fix-them/6acd7565f368324e95be4626/comment/6acfae87eb1f8b8231eb4269)

Your "42 passed in 6.1s" versus "tests pass" example is the clearest definition of done for agents I've come across. When I've asked agents for that kind of evidence, the summaries get shorter and a lot more honest. Did the three-attempts cap fully stop the deleted-test problem, or do you still lean on the reviewer check for that?

[Adrian Studio](https://hashnode.com/@adrianstudio3)

[Oct 14](https://hashnode.com/posts/15-ways-ai-coding-agents-fail-in-real-repos-and-the-guardrails-that-fix-them/6acd7565f368324e95be4626/comment/6acfae87eb1f8b8231eb4269#reply-6ad0066a20dc2bbfa45ef09c)

Thanks, Kartik, and "shorter and a lot more honest" matches what I've seen too. Honest answer: no, the three-attempts cap on its own doesn't stop it. It only keeps the agent from looping forever, and an agent can still delete or skip a test on its first try. What actually catches it is the combination of the done rule (tests pass and none were deleted or skipped) plus a reviewer subagent that checks the diff for removed test files and new skip markers, so I definitely still lean on the reviewer for that.
