The Research Report
Deterministic Scaffolds Beat Prompts: The Convergence Hitting Critical Mass
Five independent voices landed on the same conclusion within 48 hours. When you find yourself writing MANDATORY in a system prompt, you are not engineering. You are begging.
Brian Suh's post "agents need control flow, not more prompts" hit the Hacker News front page on May 7, 2026, with 300+ points. The opening line cut straight to the problem: if you have ever resorted to MANDATORY or DO NOT SKIP in a prompt, you have already hit the prompting ceiling. You need deterministic code.
CrossValid published "Premature Compilation" on March 7, 2026, naming the anti-pattern: developers building elaborate agent frameworks before establishing whether the LLM should be in the loop at all. Hugo Sanson's "Agents Need Structure More Than Prompts" made the same case from a practitioner's perspective. The 12-Factor Agents framework (19,300+ GitHub stars) codified it. The Agentic Workflow Design wiki formalized it into nine principles.
And the Victorino Group put production data behind it. Their analysis of 14 production agent workflows found that 65% of nodes run as deterministic code. Not LLM calls. Not agentic reasoning. Plain code.
The pattern now has a name (Premature Compilation), production data (the 65% rule), and multiple frameworks. The convergence is real.
The MANDATORY Tell
Suh's argument starts with a simple diagnostic. If your system prompt contains words like MANDATORY, DO NOT SKIP, CRITICAL, or YOU MUST, that is not a prompt. That is a wish. You are trying to enforce behavior through capital letters in a probabilistic system.
The diagnostic maps to a clear progression. First, you write a system prompt. The agent mostly works. Then you add rules. The agent mostly follows them. Then you add more rules. The agent follows some of them, some of the time. Then you start writing MANDATORY. The agent still skips steps. You add more urgency. It skips different steps.
At no point in this progression did the problem get solved. The problem was never the wording. The problem was asking a probabilistic system to provide deterministic guarantees.
The correct response is not a stronger prompt. It is a deterministic scaffold that the LLM operates within.
Premature Compilation: The Name for What You Are Doing Wrong
CrossValid's essay gives the anti-pattern its name: Premature Compilation. The term borrows from premature optimization. Just as premature optimization wastes engineering effort on code paths that do not matter, premature compilation wastes engineering effort on agent frameworks before establishing whether the LLM should be the decision-maker at all.
The argument is precise. Most teams building AI agents start by picking a framework. LangChain, CrewAI, AutoGen. They wire up tool calls, add memory, build retrieval pipelines. Then they write prompts. The agent works in a demo. It fails in production. They write longer prompts. It fails differently.
CrossValid's point: the team solved the wrong problem first. They started with the LLM as the center of the architecture. They should have started by asking which decisions require LLM reasoning and which can be handled by deterministic code.
The 65% rule validates this. In production agent workflows, most decisions do not need an LLM. They need an if statement.
The 65% Rule: Production Data
Tom Tunguz at Theory Ventures analyzed 14 production agent workflows after running them for six months. The specific finding: 65% of nodes across those workflows execute as deterministic code. Not LLM calls. Not agentic reasoning. Plain code.
The distribution tells a sharper story than the average. Of those 14 workflows, 29% use zero LLM calls. They started as agentic experiments and ended as traditional software. Another 36% are between 67% and 91% deterministic. Only 14% remain fully agentic.
Thiago Victorino, writing for the Victorino Group, contextualized this number. He is careful to note limitations. This is N=1 data. One team's workflows, one firm's production environment. It is not an industry study. Anyone citing "65%" as an established benchmark is overstating the evidence.
But the direction matches what other teams report independently, through different lenses. Stripe's Minion architecture processes over 1,000 pull requests per week with zero human-written code. Their Toolshed platform provides over 400 MCP tools, but those tools are overwhelmingly deterministic operations. The LLM decides which tools to invoke. The tools themselves are code.
Workpath's Noa Aboy published findings from over 1,000 manual conversation reviews. Users called only 5 of 50 available tools. Half of all requests were for bulk operations the agent could not perform. Tools failed silently, returning success indicators while producing no useful result. Aboy's summary: "everything failing successfully."
The pattern is consistent. More code, not less. More deterministic scaffolding, not more LLM reasoning. More governance architecture, not more prompt engineering.
From the Individual to the System: A Paradox
There is a paradox here. At the individual level, developers write less code than ever. Andrej Karpathy says 80% of his code is now AI-generated. Cursor reports 35% of internal PRs come from autonomous agents. The narrative says AI is eating software development.
Zoom out to the system level, and the opposite is happening. The teams running AI in production are systematically replacing LLM calls with deterministic code. Not because AI failed. Because this is what works when you have to ship.
Victorino frames it across three levels. The individual writes less code. The system uses less AI. The organization needs more operational discipline. None of these contradict each other. They describe the same reality from different altitudes.
Five Signals in 48 Hours
The convergence happened fast. Within a 48-hour window in early May 2026, five independent sources made the same core argument:
1. Brian Suh, "agents need control flow, not more prompts" (Hacker News front page, 300+ points, May 7, 2026). The diagnostic: if you write MANDATORY in prompts, you need deterministic code, not stronger wording. The solution: explicit state machines, validation gates, typed I/O. The LLM becomes a component inside a system that controls it.
2. CrossValid, "Premature Compilation: Why agent developers write too much code" (March 7, 2026, widely cited through May). The naming: premature compilation borrows from premature optimization. Teams build agent frameworks before establishing whether the LLM should be making decisions at all. The corrective: start with which decisions need an LLM and which need an if statement.
3. Hugo Sanson, "Agents Need Structure More Than Prompts" (March 22, 2026). The practitioner angle: agent productivity does not come from clever prompting. It comes from durable, structured work. Prompts guide execution. Structure makes execution resumable, parallelizable, and trustworthy.
4. 12-Factor Agents framework (19,300+ GitHub stars). The codification: production LLM apps are mostly deterministic code. The framework's core principle is that reliable agents wrap LLM capabilities in software, not the other way around. LLM calls are tools invoked by deterministic workflows, not workflows orchestrated by LLMs.
5. Agentic Workflow Design wiki. The formalization: nine principles for building reliable, deterministic AI agents. Zero LLM-based branching. Decisions branch on file-system state, not LLM output. The LLM is a controlled tool invoked for specific, well-defined tasks.
Five sources. Different angles. Same conclusion: deterministic scaffolds beat prompts for production AI systems.
The Agentic Workflow Design Principles
The Agentic Workflow Design wiki formalizes what the other sources describe informally. Its nine principles are worth listing because they represent the most specific articulation of the deterministic scaffold thesis:
- Deterministic Decision Trees: Every stage entry governed by explicit Q&A decision trees. Binary yes/no outcomes determined by verifiable file-system checks, never by LLM judgment.
- Explicit State and Contracts: All workflow state persisted to the file system. Inter-stage communication governed by formal contracts with predefined schemas.
- Minimum Context Principle: Workflow instructions forbid loading all documents upfront. Summary reports link to detailed sub-reports. Skills loaded on-demand.
- Layered Abstraction: Four layers: Workflow (the why), Phase (the what), Skill (the how), Definitions (shared knowledge). Modify any layer without touching the others.
- Knowledge-Driven Analysis: Build semantic knowledge bases first, then perform targeted analysis rather than keyword scanning.
- Test-Driven Verification and Remediation: A bug is confirmed only when a failing test reproduces it. A fix is accepted only when the test passes and the regression suite shows no new failures.
- Iteration and Convergence Control: Controlled feedback loops with explicit convergence criteria prevent infinite loops.
- Gatekeeping and Circuit Breakers: Hard quality gates at critical junctures. If the build fails, the entire workflow halts immediately.
- Feedback Loop and Self-Healing Knowledge: Later stages can correct knowledge bases built in earlier stages.
These principles describe software engineering applied to agent architecture. They describe prompts-as-contracts, not prompts-as-wishes.
Stripe's Architecture as Proof
Stripe's Minion architecture provides the most detailed production evidence for the deterministic scaffold thesis. Minion processes over 1,000 pull requests per week with zero human-written code. The architecture uses directed acyclic graphs where deterministic nodes (git operations, linting, CI validation) alternate with agentic nodes (code generation, reasoning about test failures).
Two design decisions stand out. First, the two-round CI cap. When a Minion-generated PR fails continuous integration, the agent gets exactly two attempts to fix it. After two rounds, the task escalates. Stripe could allow five rounds or ten. The two-round cap is a deliberate governance constraint that prevents agents from chasing their own tails.
Second, the tool architecture. Stripe built Toolshed with over 400 MCP tools. Those tools are overwhelmingly deterministic operations: read this file, run this linter, execute this test suite. The LLM decides which tools to invoke. The tools themselves are code.
This is the hybrid architecture the 65% rule points toward, implemented at massive scale by a company processing hundreds of billions of dollars in payments.
The Prompt Portability Problem
Jason Lemkin at SaaStr surfaced a different angle on why deterministic code matters more than the AI layer. He described an AI company with over $100M in annual recurring revenue that closes only one-year deals. The reason: customers discovered they could migrate prompt-based agents to competing models in minutes. Fifty to eighty percent of the migration happened automatically.
If your product is primarily prompts talking to an LLM, your moat evaporates the moment a cheaper or better model appears. The durable value lives in the deterministic layer. The workflow logic. The integration code. The validation rules. The governance artifacts. These do not port to a new model in minutes. They represent genuine institutional knowledge encoded as software.
This is a commercial argument for the same architectural thesis. Prompts are portable. Scaffolds are not.
Containment or Maturation?
Victorino raises an honest counterargument. Maybe the high ratio of deterministic code does not represent architectural maturation. Maybe it represents coping. Teams discover that LLMs are unreliable in production, so they wall them off with deterministic guards. The 65% is not wisdom. It is containment.
Gartner predicts that 40% or more of agentic AI projects will fail or be abandoned by 2027. If the industry is building containment architecture rather than mature architecture, those failure rates make sense.
But Victorino's own conclusion applies regardless of which interpretation you choose. Whether you call it maturation or containment, the governance implication is identical. You need deterministic validation. You need escalation boundaries. You need monitoring at the workflow level. You need to know which nodes are agentic and which are code, and you need different oversight mechanisms for each.
The architecture is the same whether you are optimistic or pessimistic about where LLMs end up. Build the deterministic scaffold. Let the ratio shift over time as models improve. The scaffold is never wasted because it is also your governance layer.
What to Do Next
Three practical steps follow from this convergence.
Track your deterministic ratio. For every agentic workflow in production, measure what percentage of nodes are deterministic code versus LLM calls. If you do not know this number, you do not understand your own system's behavior. Stripe knows. Tunguz's team knows. You should too.
Invest in the scaffold before scaling the AI. Validation rules, CI constraints, escalation boundaries, monitoring. These are not bureaucratic overhead. They are the architecture. StrongDM built the most rigorous governance framework in the industry, and they did it because they were the most aggressively AI-native company, not despite it.
Treat prompt portability as a feature, not a bug. If your governance architecture is strong enough, swapping the underlying model is a configuration change. Your competitive advantage lives in the workflow logic, the validation layer, and the operational discipline. Not in which model you call.
The Naming Matters
Premature Compilation is a useful name because it reframes the problem. Before CrossValid coined it, the conversation was scattered. Some people said "use state machines." Others said "write less prompt, more code." Others said "wrap your LLM calls in guardrails." All correct. All pointing at the same thing. None had a name.
Now the pattern has a name, production data, and multiple frameworks. That matters because named patterns spread faster than unnamed intuitions. "You might be doing premature compilation" is a sharper diagnostic than "maybe write less prompt."
The 65% rule matters because it gives teams a benchmark to compare against. Am I at 40% deterministic code? 55%? 80%? The specific number varies, but the direction provides a compass.
The convergence across five independent sources matters because it rules out vendor bias, framework evangelism, and personal hobby horses. A Hacker News front-page post, a research essay, a practitioner blog, a 19,000-star framework, and a formal wiki all converged on the same thesis in the same week. The signal is not coming from one source. It is coming from everywhere.
The MANDATORY Diagnostic, Revisited
If you take one thing from this article, let it be this diagnostic:
Open your system prompts. Search for MANDATORY, DO NOT SKIP, CRITICAL, YOU MUST, IMPORTANT, NEVER. Count the occurrences. Each one is a place where you asked a probabilistic system for a deterministic guarantee. Each one is a place where you need code, not words.
The five sources agree. The production data agrees. The frameworks agree. The only question is whether you build the scaffold before production or after your first outage.
Citations
- Brian Suh, "agents need control flow, not more prompts," bsuh.bearblog.dev, May 7, 2026. https://bsuh.bearblog.dev/agents-need-control-flow/
- CrossValid, "Premature Compilation: Why agent developers write too much code," crossvalid.com, March 7, 2026. https://www.crossvalid.com/blog/premature-compilation
- Hugo Sanson, "Agents Need Structure More Than Prompts," hson.fr, March 22, 2026. https://hson.fr/blog/agents-need-structure-more-than-prompts/
- 12-Factor Agents framework, humanlayer/12-factor-agents, GitHub (19,300+ stars). https://github.com/humanlayer/12-factor-agents/
- Agentic Workflow Design wiki, "Principled Scaffolding for Reliable AI Agents." https://agentic-workflow.wiki/
- Thiago Victorino, "The 65% Rule: Why Production AI Is Becoming Mostly Code," Victorino Group, March 3, 2026. https://victorinollc.com/thinking/65-percent-rule
- Tom Tunguz, "Is AI Doing Less & Less?," Theory Ventures, February 26, 2026. https://www.tomtunguz.com/categories/agents/
- Stripe Engineering Blog, "How we built an AI agent," February 2026. https://stripe.com/blog/how-we-built-an-ai-agent
- Noa Aboy (Workpath), "Everything Failing Successfully," LinkedIn, February 2026.
- Jason Lemkin (SaaStr), AI company deal structure observations, February 2026. https://www.saastr.com/
Suggested Title
Deterministic Scaffolds Beat Prompts: The Convergence Hitting Critical Mass
Word Count
2,417
Fact-Check Notes
- The "65% rule" figure comes from Tom Tunguz's analysis of 14 production agent workflows at Theory Ventures. Victorino Group cites this data and is careful to note it is N=1, not an industry benchmark. The article reflects this nuance.
- The Hacker News front-page claim for Brian Suh's post comes from a dev.to article noting 300+ points. I was unable to directly verify the current point count from HN. The general claim that it hit the front page and received significant engagement is well-supported.
- The 29% zero-LLM and 36% majority-deterministic distribution figures come from Victorino Group's summary of Tunguz's data. The original Tunguz post should be checked for exact phrasing.
- Stripe's Minion architecture details (1,000+ PRs/week, 400+ MCP tools, two-round CI cap) come from Stripe's engineering blog and Victorino Group's analysis. These are public claims from Stripe.
- The Jason Lemkin / SaaStr anecdote about prompt portability ($100M ARR company, one-year deals, 50-80% automatic migration) is cited by Victorino Group. The original source should be verified for exact details.
- The Gartner 40% failure prediction for agentic AI projects by 2027 is cited by Victorino Group. The original Gartner source was not independently verified.
- The 12-Factor Agents GitHub star count (19,300+) was from search results and may have changed.
- The naming of "Premature Compilation" is attributed to CrossValid's March 7, 2026 essay. The concept predates the name. I verified the essay exists at the cited URL.