Zero Labs
Industry News / AI

When the Model Pushed Back

Source · Towards AI By Venkat Peri

From the publisher’s feed, collected in the ZeroLabs newsroom.

Seven days, 535 prompts, and five times an AI codegen loop refused the architecture we proposedThe standard objection to AI-generated codebases is that the model is a yes-machine. Ask for agents and you get agents. Ask to adopt the heavier runtime and you get migrated, whether or not the move was earned. The architecture accumulates by request instead of by argument, and six months later nobody can say why the system has the shape it has.We spent the first week of June rebuilding a production natural-language assistant for financial advisors, with every line of code generated by Claude. The transcripts from that week tell a different story. Five times one of us proposed reaching for heavier machinery. Five times the model pushed back, with reasoning grounded in the system’s own numbers, and it was right each time. The pushback came with a condition, though, and that condition is the most repeatable lesson of the build.The build, in numbersEverything in this piece comes from the Claude Code session logs, June 1 through June 9.The 535 human prompts are the number worth sitting with. Almost none of them contain code. They are questions, observations from using the app, decisions, and merge confirmations. The 6,300 tool calls are where the code came from.The loop that produced itThe working loop is short: use the app, notice something wrong or missing, paste the bad turn into the session with a question, discuss, decide, let the model implement and test, merge. Repeat. The day-one questions look like this, verbatim from the logs: “this one was routed to the holdings and not accounts?”, “how did this call know the ID? in the actual app, we’d call the search endpoint to get this”. Each one surfaced a real design gap, and each fix landed with tests in the same hour.By day two the loop got tooling. A flag button in the UI wrote failures to a database, and the human prompt shrank to “see the flags.” By day four the model had a dev MCP sidecar and could pull bug reports, traces, and logs off the running server itself, then analyze, fix, add tests, and raise a PR. Two days in, with the pipeline shape proven, we migrated the architecture wholesale to LangGraph and Anthropic skills, run as a phased plan into a clean project with parity tests against the old engine. In our experience that mid-flight rebuild is where AI-generated codebases either survive or rot; the parity suite is what made it a non-event here.Seven days after a CLI harness was the whole product, the system had a multi-user streaming UI, entity resolution with numbered disambiguation, a deterministic verification layer that checks every figure in a response against tool output with provenance on each fact, PII-aware mutation flows, multi-tenancy, OTel metrics, and an admin sidecar for triaging flagged issues. None of that was in the day-one spec. It accumulated through use.Leveraging the Harness: 535 prompts in, 6,300 tool actions out, and the ratio per day barely moves, so the harness was doing constant-factor amplification rather than degrading as complexity grew.Where the model said noThe day-one spec asked for something deliberately boring: a Python CLI harness exercising a 3-stage routing pipeline (rewrite -> route -> tool call) with mock fixtures and a stated design bias, “favor inspectability over cleverness.” Pressure to outgrow that bias arrived almost immediately, and it came from us, the humans. The transcript excerpts below are verbatim, typos preserved.Three things make these worth studying. Every pushback applied the same decision rule: a shape knowable from the query gets deterministic machinery, and only open-ended composition earns a model in the loop. Agents, model-picked chips, and skills-for-compare all fell to the same test. Every no was really a not-yet with a named trigger, which converts architectural opinion into a monitorable condition; two of those triggers are now things the eval suite watches for. And every pushback defended properties the project had already paid for: determinism, scorability, the parity gate, fixture-backed evals. Once the test harness and eval suite existed, they generated their own gravity, and the model itself resisted changes that would have broken them.The same judgment showed up where the answer was close. Asked on the last day whether to hand the model the full GraphQL schema instead of curated tools, it produced the sharpest line in the logs: the dangerous failure is a valid query that confidently answers the wrong question, which sails straight through grounding checks because the answer matches the data, just the wrong slice of it.The pushback was invitedEvery one of those five exchanges was phrased as a question (“should we,” “do I need,” “does it make sense”) or carried an explicit “lets discuss.” Where we issued a directive, the model executed it without protest. Phrase architectural moves as questions and the model becomes an interlocutor; phrase them as instructions and it becomes a printer.That distinction is the cheapest process change available to any team running one of these loops. It costs one habit of phrasing, and on the evidence of this build it is the difference between a codebase that accumulates architecture by request and one where every structural move had to survive an argument.Tests are what make the speed safeThe loop runs at this speed because regressions are caught mechanically, so neither the human nor the model has to hold the whole system in their head. Two layers did that work. Around 550 deterministic tests cover routing, entity resolution, clarification and resume flows, the verification layer, and tenant isolation, and they run on every PR. Live evals push real utterances through the actual models, with adversarial permutations, multi-turn drills, corrections (“i meant feb 1”), and answer-content checks against per-test similarity thresholds. The live suite costs real money and carries some non-determinism, so it runs hourly when a PR landed in that hour rather than on every merge, a tradeoff decided in the session with the reasoning logged.The eval corpora came from what already existed: the prior version’s test-strategy pages, its known-limitations docs, and a question library. The model read those over MCP, turned them into eval cases, ran them, and the failures became the work queue. This is the cheapest requirements-gathering we have ever done. The routing regression in the table above, 98% down to 72% during a refactor, was caught by exactly this suite, which is the strongest single argument for building it before you need it.What a week of generation costsThe token ledger from the transcripts: 15.2M output tokens and 2.7M uncached input tokens. The number that makes the economics work is on the input side. 6.27 billion tokens of context were read from prompt cache against 86 million written to it, a 98.6% cache-read share. Each assistant turn carried roughly 475K tokens of context (codebase, conversation, tool catalog), and almost all of it was a cache hit.We leave dollar figures out because they depend on plan and current list pricing, but the shape of the ledger is the durable lesson: in a long-running codegen loop, input dwarfs output by two to three orders of magnitude, and cache hit rate, not output volume, is the cost lever. The decision that secured it was one line on day two, made in passing, switching cache TTL from five minutes to an hour. A one-line config call turned out to be load-bearing for the entire week’s economics.What brokeA build story that only shows wins invites skepticism, so here is the failure inventory.The largest bucket was the environment, and none of it was AI-specific: corporate TLS interception blocking a model download until a native-TLS flag fixed the certificate chain, a private package index returning 401s until a token landed in the right environment variable, and enough permission-prompt friction in the tooling that reducing it became its own task. Most of the upfront cost of a loop like this is VPNs, package indexes, and configuration, the same things that slow down a human-typed project.The second bucket was process: git hygiene under high PR throughput with a single human merge gate. PRs landed out of order and needed rebases, one commit got pushed to an already-merged PR and orphaned, and one PR was merged before its follow-up UI changes were in. When one side of the loop produces branches faster than the other side can review them, branch discipline becomes the human’s second job after intent.The model bucket is the shortest, which is the point. The routing regression, caught by evals. And one test anchored to the current date that would have gone red the next morning, caught by a human reading the diff: “this test will fail tomorrow?” That catch is worth dwelling on, because it is exactly the class of error a green test suite cannot surface on the day it is written. What is absent from the logs matters too: there is no multi-hour debugging arc caused by the model misunderstanding its own codebase, largely because decisions, todos, and design docs were committed to the repo as they happened and re-read after each of the 10 context compactions. The context window was treated as ephemeral and the repo as the memory.What we have not solvedIntent drift is the open problem. When every change is generated, the guard against the app slowly becoming something nobody decided it should be is the spec, the eval suite, and the human’s attention, and we do not yet have a mechanical check for it. The merge gate serializes the work; stretches of the transcript are the model waiting on PR approvals, and the wall-clock compression in this build came from one person willing to sit with the loop for very long days, with 14-to-18-hour active spreads on the core days, rather than from the loop running unattended.The division of labor at the end of the week was clean. The model wrote the code. We owned why the code should exist, expressed in 535 prompts that were mostly questions. The five refusals above suggest the model can carry part of the architectural judgment too, but only for teams that ask instead of instruct. That habit costs nothing to adopt, and on the evidence of this build it was worth more than any single tool in the stack.The author works on AI and agentic application development for wealth management at Advisor360°. The transcripts, numbers, and verbatim prompts in this piece come from our own build logs.When the Model Pushed Back was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.