[{"data":1,"prerenderedAt":274},["ShallowReactive",2],{"blog-\u002Fblogs\u002Fwhen-the-agent-is-wrong":3},{"id":4,"title":5,"author":6,"body":7,"date":265,"description":266,"extension":267,"meta":268,"navigation":269,"path":270,"seo":271,"stem":272,"__hash__":273},"content\u002Fblogs\u002Fwhen-the-agent-is-wrong.md","When the agent is wrong","James Orson",{"type":8,"value":9,"toc":254},"minimark",[10,22,25,38,41,46,49,57,61,64,74,88,91,102,106,109,135,147,185,188,192,228,232,235,238,241,244,247],[11,12,13,14,21],"p",{},"Hello friends! This is the sixth post in our series on how ",[15,16,20],"a",{"href":17,"rel":18},"https:\u002F\u002Fquark.autobutler.org",[19],"nofollow","Quark"," gets built by AI\nagents. So far we've covered the issues, the gates, the rules, the widget library, and the parallel setup. Now for what\nhappens when the agent is wrong.",[11,23,24],{},"Our agents don't usually fail by writing obviously broken code, as our gates catch most of that. The agents normally fail\nby telling us something went well when it didn't:",[26,27,28,32,35],"ul",{},[29,30,31],"li",{},"a masked exit code",[29,33,34],{},"a report written before the work completed",[29,36,37],{},"a confident, testable claim about the world that was simply untrue",[11,39,40],{},"None of that is lying. It reads exactly like success, but, if you pass it along without checking, you've likely shipped\na mistake.",[42,43,45],"h2",{"id":44},"evidence-runs-both-ways","Evidence runs both ways",[11,47,48],{},"When I disagree with an agent, my standard is that I need evidence presented to me. A good leader will listen to those\nhe is over and will reorient when he is provided contrary evidence.",[11,50,51,52,56],{},"That standard points the other way too. Our ",[53,54,55],"code",{},"AGENTS.md"," has a section called \"Verification before claiming done.\" An\nagent that says \"green\" owes me the same thing I owe it when I say \"you're wrong\".",[42,58,60],{"id":59},"the-green-check-that-wasnt","The green check that wasn't",[11,62,63],{},"On 2026-09-19 a subagent rebasing a wave of PRs ran the full gate set and reported exit code 0. Then it read its own\nraw output and caught itself:",[65,66,67],"blockquote",{},[11,68,69,70,73],{},"The 4b \"exit code 0\" was misleading. My trailing ",[53,71,72],{},"; echo \"EXIT=$?\""," masked the real status. Reading the output shows\nbackend unit and integration passed, but the frontend suite failed.",[11,75,76,77,80,81,84,85,87],{},"The log ended in ",[53,78,79],{},"gmake: *** Error 1",". One shell idiom was the difference between a green report and a true one:\n",[53,82,83],{},"echo"," succeeds, so the status you see would be the status of ",[53,86,83],{},".",[11,89,90],{},"Not every false green gets caught. These lines are from the coordinating session, about its own subagents:",[26,92,93,96,99],{},[29,94,95],{},"\"The agent claimed there was no cycle and that every gate exited 0.\"",[29,97,98],{},"\"The agent's 'All green' referred to the state before the scope change.\"",[29,100,101],{},"\"The rebase agent stopped before pushing and said its checks were 'still running'.\"",[42,103,105],{"id":104},"retractions","Retractions",[11,107,108],{},"The agents also correct themselves, in writing, and those corrections are some of my favorite things in our logs.",[11,110,111,115,116,119,120,123,124,127,128,130,131,134],{},[112,113,114],"strong",{},"The drift that wasn't there."," In early September, Claude and a subagent both reported 26 files of ",[53,117,118],{},"dart format","\ndrift on ",[53,121,122],{},"main",". That belief justified several ",[53,125,126],{},"--no-verify"," commits, and Claude offered a fix PR twice. On 2026-09-05\nat 17:33 it wrote: \"There is no drift. I was wrong, and so was the agent that reported it.\" The cause was running\n",[53,129,118],{}," in fresh worktrees with no ",[53,132,133],{},".dart_tool\u002F",". Language-version resolution failed, so the formatter fell back\nto Dart 3.7 style and reformatted files nobody had touched.",[11,136,137,140,141,146],{},[112,138,139],{},"A false claim in public."," Claude wrote \"Verified by hand on Chrome and Firefox\" into the body of an upstream PR\n(",[15,142,145],{"href":143,"rel":144},"https:\u002F\u002Fgithub.com\u002FMixinNetwork\u002Fflutter-plugins\u002Fpull\u002F503",[19],"MixinNetwork\u002Fflutter-plugins#503","). Nobody had verified it by\nhand. Within a minute it told me: \"I need to correct something immediately. I wrote a false testing claim into that PR body.\"\nIt added: \"Worth knowing it was public for a few minutes.\"",[11,148,149,152,153,156,157,160,161,164,165,168,169,172,173,176,177,180,181,184],{},[112,150,151],{},"The wrong culprit."," When our release binaries turned out not to be static, Claude first blamed the ",[53,154,155],{},"GoReleaser","\nconfig. It proved the problem with ",[53,158,159],{},"readelf"," (",[53,162,163],{},"PT_INTERP"," and ",[53,166,167],{},"DT_NEEDED libc.so.6","), then retracted the blame. The real\ncause was ",[53,170,171],{},"gen2brain\u002Fheic"," reaching ",[53,174,175],{},"libheif"," through use of purego's ",[53,178,179],{},"dlopen",", and building with ",[53,182,183],{},"-tags nodynamic"," fixed\nit.",[11,186,187],{},"None of these were caught by a gate. They were caught because the agent went back and looked at the evidence instead\nof its own summary from earlier.",[42,189,191],{"id":190},"copy-this","Copy this",[26,193,194,203,206,209,212,218,225],{},[29,195,196,197,199,200,202],{},"Never append ",[53,198,72],{}," to a gate command. It reports the status of ",[53,201,83],{}," and masks the failure.",[29,204,205],{},"After a green build, break it on purpose once to prove the file was in the compilation unit.",[29,207,208],{},"Stash the fix and re-run the test. A test that passes without the fix is not a test.",[29,210,211],{},"Put the pass\u002Ffail matrix in the PR body.",[29,213,214,215,217],{},"Ban ",[53,216,126],{}," in briefs by name, and require disclosure in the PR body when a gate gets bypassed anyway.",[29,219,220,221,224],{},"Run ",[53,222,223],{},"flutter pub get"," (or your equivalent) in a fresh worktree before the formatter runs.",[29,226,227],{},"Re-run the agent's gates yourself before you repeat the word \"green\" to anyone.",[42,229,231],{"id":230},"whats-next","What's next",[11,233,234],{},"Everything in this post got caught, by a gate, a test, a re-run, or an agent reading its own output. Next time is the\nother list: what slipped through anyway, and why each one was a hole no gate covered.",[11,236,237],{},"As always, we love you all and we want to build stuff for you. Feel free to reach out anytime.",[11,239,240],{},"Grace and peace,\nJames",[242,243],"hr",{},[11,245,246],{},"This is part 6 of 8 in our series on how we build Quark with AI agents.",[11,248,249,250],{},"← Previous: ",[15,251,253],{"href":252},"\u002Fblogs\u002Fthree-tabs-three-clones","Three tabs, three clones, a pile of worktrees",{"title":255,"searchDepth":256,"depth":257,"links":258},"",6,5,[259,261,262,263,264],{"id":44,"depth":260,"text":45},2,{"id":59,"depth":260,"text":60},{"id":104,"depth":260,"text":105},{"id":190,"depth":260,"text":191},{"id":230,"depth":260,"text":231},"2026-11-27","Our agents often report success when they fail, so the habits we have built to catch them are about verifying claims, and those same standards apply to the humans.","md",{},true,"\u002Fblogs\u002Fwhen-the-agent-is-wrong",{"title":5,"description":266},"blogs\u002Fwhen-the-agent-is-wrong","9AMOMHNNx6Qv50tXupeB9uCmQRSgDhUZfIz9u05bJhA",1795851024657]