My agents said the code was correct. A human tester found logic bugs. What I learned about verifying agent-written code, and why I'm trying Kun's no-mistakes.
separating the author from the verifier is the part i'd underline. a green run from tests the same agent wrote tells you the code matches its own idea of the task, not yours. checking against the requirements is the step that's easy to skip.
Thanks, Rafael, that's exactly it. A green suite the same agent wrote only shows the code matches the agent's model of the task. Checking against the original requirements is the easy-to-skip step, and that's the part I'm trying to make non-optional.
making it non-optional is the hard part. curious where that check lives for you, a CI step the agent can't skip, or something the reviewer has to sign off on?
Making that check non-optional is what I'm building Replume for too. When the agent says done it reruns the tests itself, flags any edit to tests or test config, and compares the diff to the task, outside the agent. Free beta, macOS and Linux. If you want to try it on one repo: npm i -g replume-cli, replume.dev/?utm_source=substack. Or a quick call: https://cal.com/rafaelibayev/replume-founder-call
Your point that passing agent-written tests can create a false sense of determinism resonates—separating the author from the verifier helps, but checking against the original requirements is what catches omissions. In AiEnsured agentest, an Agentic AI Testing platform, one contract-review run rated terms allowing fees to change without notice and imposing unlimited liability as medium risk rather than high; that kind of plausible, confident miss is why I value independent evidence and requirement-level checks over a green test suite.
Thanks, this is a great example. A confident "medium risk" on unlimited liability is exactly the kind of plausible miss that a green test suite won't catch. Checking against the original requirements is the part I'm still learning to do well. In no-mistakes, writing the intent up front is what makes that possible.
separating the author from the verifier is the part i'd underline. a green run from tests the same agent wrote tells you the code matches its own idea of the task, not yours. checking against the requirements is the step that's easy to skip.
Thanks, Rafael, that's exactly it. A green suite the same agent wrote only shows the code matches the agent's model of the task. Checking against the original requirements is the easy-to-skip step, and that's the part I'm trying to make non-optional.
making it non-optional is the hard part. curious where that check lives for you, a CI step the agent can't skip, or something the reviewer has to sign off on?
Making that check non-optional is what I'm building Replume for too. When the agent says done it reruns the tests itself, flags any edit to tests or test config, and compares the diff to the task, outside the agent. Free beta, macOS and Linux. If you want to try it on one repo: npm i -g replume-cli, replume.dev/?utm_source=substack. Or a quick call: https://cal.com/rafaelibayev/replume-founder-call
Your point that passing agent-written tests can create a false sense of determinism resonates—separating the author from the verifier helps, but checking against the original requirements is what catches omissions. In AiEnsured agentest, an Agentic AI Testing platform, one contract-review run rated terms allowing fees to change without notice and imposing unlimited liability as medium risk rather than high; that kind of plausible, confident miss is why I value independent evidence and requirement-level checks over a green test suite.
Thanks, this is a great example. A confident "medium risk" on unlimited liability is exactly the kind of plausible miss that a green test suite won't catch. Checking against the original requirements is the part I'm still learning to do well. In no-mistakes, writing the intent up front is what makes that possible.