<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Tdd on David Parry</title>
    <link>https://davidparry.com/tags/tdd/</link>
    <description>Recent content in Tdd on David Parry</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 14 Aug 2026 15:00:00 -0500</lastBuildDate>
    <atom:link href="https://davidparry.com/tags/tdd/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>🖥️ You Don&#39;t Need a Frontier Model. You Need a Spec.</title>
      <link>https://davidparry.com/blog/2026/08/14/%EF%B8%8F-you-dont-need-a-frontier-model.-you-need-a-spec./</link>
      <pubDate>Fri, 14 Aug 2026 15:00:00 -0500</pubDate>
      <guid>https://davidparry.com/blog/2026/08/14/%EF%B8%8F-you-dont-need-a-frontier-model.-you-need-a-spec./</guid>
      <description>&lt;img src=&#34;https://davidparry.com/images/you-dont-need-a-frontier-model-linkedin.png&#34; alt=&#34;A laptop on a desk running a local spec-driven loop: a spec-tests-code triangle on one side, a local machine on the other, and a test bar going from red to green&#34; style=&#34;display: block; margin: 0 auto; width: 70%; max-width: 560px;&#34; /&gt;&#xA;&lt;p&gt;&lt;strong&gt;You do not need a frontier model to build professional software. You need a spec, a test bar, and a workflow that will not let anyone — human or model — skip either.&lt;/strong&gt; Frontier models are what you reach for when you want day-zero results: something that compiles this afternoon and looks finished until you have to live with it. A responsible solution is slower in the screenshot and faster over the life of the system. The surprise of the last year, for me, is that this path is now cheap enough to run on a laptop.&lt;/p&gt;</description>
      <content:encoded>&lt;img src=&#34;https://davidparry.com/images/you-dont-need-a-frontier-model-linkedin.png&#34; alt=&#34;A laptop on a desk running a local spec-driven loop: a spec-tests-code triangle on one side, a local machine on the other, and a test bar going from red to green&#34; style=&#34;display: block; margin: 0 auto; width: 70%; max-width: 560px;&#34; /&gt;&#xA;&lt;p&gt;&lt;strong&gt;You do not need a frontier model to build professional software. You need a spec, a test bar, and a workflow that will not let anyone — human or model — skip either.&lt;/strong&gt; Frontier models are what you reach for when you want day-zero results: something that compiles this afternoon and looks finished until you have to live with it. A responsible solution is slower in the screenshot and faster over the life of the system. The surprise of the last year, for me, is that this path is now cheap enough to run on a laptop.&lt;/p&gt;&#xA;&lt;p&gt;I already wrote that &lt;a href=&#34;https://davidparry.com/blog/2026/08/07/spec-first-was-always-right-agents-just-made-it-fast/&#34;&gt;spec-first was always right, and that agents finally made it fast&lt;/a&gt;&#xA;. That post was the argument. This one is what I learned once I stopped treating the hosted model as the product and started treating a local model as one tool inside a spec-driven loop. The working proof is the &lt;a href=&#34;https://github.com/davidparry/tdd-bdd-agentic&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;bdd&lt;/code&gt; CLI&lt;/a&gt;&#xA; that grew out of that workshop — one native binary, &lt;a href=&#34;https://ollama.com&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Ollama&lt;/a&gt;&#xA; by default, no cloud calls, no token meter.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-cli-is-the-discipline-compiled&#34;&gt;The CLI is the discipline, compiled&lt;/h2&gt;&#xA;&lt;p&gt;The workshop needed an MCP server so an agent could not wander. The CLI is that same loop as a program you run yourself. The &lt;a href=&#34;https://davidparry.github.io/tdd-bdd-agentic/manual/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;command manual&lt;/a&gt;&#xA; is the full surface; the idea is one sentence:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The requirements spec is the source of truth, and the discipline is enforced by tooling, not by convention.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Everything else follows from that. The spec is machine-validated (&lt;code&gt;bdd spec validate&lt;/code&gt;) and its wording is quality-gated (&lt;code&gt;bdd spec refine&lt;/code&gt;) before any scenario or line of production code exists. A valid-but-vague requirement is caught and reworded first. Behavior flows downhill from the approved spec: Gherkin scenarios tagged with requirement ids, step definitions, unit tests, and only then production code. The Red/Green/Refactor cycle is a state machine, not a suggestion — &lt;code&gt;start_refactor&lt;/code&gt; is refused on a red bar, and a requirement is only marked implemented behind a green one.&lt;/p&gt;&#xA;&lt;p&gt;Agents get no escape hatches. No arbitrary file writes, no shell, no &amp;ldquo;just install this for me.&amp;rdquo; Every mutation goes through a typed, validated tool, lands in staging (&lt;code&gt;.bdd-staged/&lt;/code&gt;), and waits for a human to review it. The same tools serve a person at a prompt and an agent over MCP. The LLM is local, discovered rather than assumed, and generation falls back to deterministic templates when Ollama is down or empty. Nothing is ever installed for you.&lt;/p&gt;&#xA;&lt;p&gt;Run bare &lt;code&gt;bdd&lt;/code&gt; and you get the loop, the version, and whatever local model is already on the machine:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ bdd&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ╭──────────────────────────────────╮&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  │                                  ▼&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  │    &amp;gt; bdd  v0.2.4                 │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  │    spec → RED → GREEN → REFACTOR │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ▲                                  │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  ╰──────────────────────────────────╯&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Model set for this session: qwen3-coder-next:q4_K_M (not saved - keep it with: bdd model use qwen3-coder-next:q4_K_M).&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;bdd&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;From an empty directory, &lt;code&gt;bdd greenfield&lt;/code&gt; runs the whole creation order with exactly two human gates: the wording of the driving spec, and the review of generated tests before they are committed. From an existing project, you drive the same phases yourself — &lt;code&gt;spec draft&lt;/code&gt;, &lt;code&gt;spec validate&lt;/code&gt;, &lt;code&gt;spec refine&lt;/code&gt;, &lt;code&gt;test&lt;/code&gt;, &lt;code&gt;implement&lt;/code&gt;, &lt;code&gt;refactor&lt;/code&gt; — and &lt;code&gt;bdd status&lt;/code&gt; names the one next step that actually moves the loop forward.&lt;/p&gt;&#xA;&lt;p&gt;The model is not sitting above this process. It is boxed inside a few commands: drafting a requirement from plain words, polishing step definitions and unit tests, attempting an implementation against a recorded RED bar. &lt;code&gt;test&lt;/code&gt;, &lt;code&gt;state&lt;/code&gt;, and &lt;code&gt;refactor&lt;/code&gt; never call it. That is not a prompt instruction. It is the architecture.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-i-actually-learned-about-local-models&#34;&gt;What I actually learned about local models&lt;/h2&gt;&#xA;&lt;p&gt;The lesson is not &amp;ldquo;an 8B model beats Opus.&amp;rdquo; The lesson is: &lt;strong&gt;once you move the deterministic work out of the model, a local model becomes enough.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I measured a version of that claim in &lt;a href=&#34;https://davidparry.com/blog/2026/07/20/skills-vs-mcp-what-the-token-bill-actually-measures/&#34;&gt;Skills vs MCP&lt;/a&gt;&#xA;. For one workload, putting the business rules in code instead of in the model&amp;rsquo;s head cut hosted cost by 32% on Claude Opus 4.8 and 76% on GPT-5. The same implementation on &lt;code&gt;qwen3:30b&lt;/code&gt;, served locally through Ollama on an Apple M4 Max, cost nothing and dropped mean latency from 43.4 seconds (instruction-only Skill) and 54.4 seconds (prompt only) to 10.8 seconds with the tool. There is no per-token invoice to blame on that last comparison. Generating fewer tokens still consumed less wall-clock time on my hardware.&lt;/p&gt;&#xA;&lt;p&gt;The CLI takes that architecture and applies it to the development loop itself. Spec validation is code. Wording critique is code. The TDD state machine is code. Gherkin parsing is code. Test execution is Maven, cucumber-js, &lt;code&gt;dotnet test&lt;/code&gt;, or &lt;code&gt;cargo test&lt;/code&gt; — the project&amp;rsquo;s own runner, not a model&amp;rsquo;s impression of a runner. The model is asked to propose, not to be the system of record. When it proposes a step definition, the CLI prefers that output only if it validates; otherwise the deterministic template ships. That is why &lt;code&gt;qwen3-coder-next:q4_K_M&lt;/code&gt; is a reasonable default on this tool, and why &lt;code&gt;qwen3:30b&lt;/code&gt; is a luxury rather than a requirement.&lt;/p&gt;&#xA;&lt;p&gt;Open-weight coding models have also closed enough of the raw-capability gap that this is no longer a thought experiment. Alibaba&amp;rsquo;s &lt;a href=&#34;https://qwenlm.github.io/blog/qwen3-coder/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Qwen3-Coder&lt;/a&gt;&#xA; reports state-of-the-art results among open models on SWE-Bench Verified without test-time scaling, and describes the 480B variant as comparable to Claude Sonnet 4 on agentic coding. You can argue with any one leaderboard. You cannot argue with the direction: the model you can run next to the repo is no longer a toy, and the remaining gap is exactly where unconstrained agent loops still fall down — long-horizon, multi-file, &amp;ldquo;figure out what I meant&amp;rdquo; work. Spec-driven development is how you stop asking the model to do that work.&lt;/p&gt;&#xA;&lt;p&gt;METR&amp;rsquo;s &lt;a href=&#34;https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;early-2025 randomized trial&lt;/a&gt;&#xA; is the other data point I keep coming back to. Experienced open-source developers working on their own mature repositories, using frontier tools of the day (primarily Cursor with Claude), took 19% longer when AI was allowed. They expected a 24% speedup. After living through the slowdown, they still believed they had been sped up by 20%. Perception and the clock disagreed. METR was careful about what that does &lt;em&gt;not&lt;/em&gt; prove. They said, explicitly, that they do not provide evidence &amp;ldquo;there are not ways of using existing AI systems more effectively&amp;rdquo; — scaffolding, prompting, repository-specific context. Their later &lt;a href=&#34;https://metr.org/blog/2026-02-24-uplift-update/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;2026 follow-up&lt;/a&gt;&#xA; ran into a different problem: too many developers now refuse to work without AI, so the experiment can no longer see the tasks where people expect the biggest lift. I read both results the same way. Unconstrained generation on a real codebase is not the same activity as a gated spec-to-green loop. The first can feel fast and still be slow. The second is slower to start and cheaper to finish, and it does not require the most expensive model on the market.&lt;/p&gt;&#xA;&lt;h2 id=&#34;day-zero-is-a-product-professional-software-is-a-process&#34;&gt;Day-zero is a product. Professional software is a process.&lt;/h2&gt;&#xA;&lt;p&gt;I will say this as cleanly as I can. Frontier models are extraordinary at day-zero. You describe a thing, files appear, a demo boots, a screenshot looks like a product. That is a real capability, and it is the capability the labs demo, because it is the capability that converts. If what you wanted was a prototype before lunch, pay for the tokens. I do that too.&lt;/p&gt;&#xA;&lt;p&gt;Professional software is a different shape. Someone has to write down what &amp;ldquo;done&amp;rdquo; means in a form that can be checked. Tests have to fail for the right reason before they pass for the right reason. The code has to be the simplest thing that makes that true, and then it has to be reviewed. Edge cases have to be found on purpose, not stumbled into in production. That work has been preached at us for as long as I have been doing this — test-first, behavior-first, requirements-first. Cucumber and Gherkin were the first tools that let the requirement itself become executable, and I never went back. What changed is not the advice. What changed is that an agent will now execute the advice if you put it in a tool instead of a slide.&lt;/p&gt;&#xA;&lt;p&gt;GitClear&amp;rsquo;s &lt;a href=&#34;https://www.gitclear.com/ai_assistant_code_quality_2025_research/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;2025 look at 211 million changed lines&lt;/a&gt;&#xA; — Google, Microsoft, Meta, and enterprise C-corps, 2020 through 2024 — is what day-zero looks like when it becomes the default. Lines associated with refactoring fell from 25% of changed code in 2021 to less than 10% in 2024. Copy/pasted lines rose from 8.3% to 12.3% in the same window, and 2024 was the first year in their dataset where copy/paste exceeded moved (refactored) code. Assistants do beget more lines. Senior developers, asked what would unlock their team, do not answer &amp;ldquo;more lines.&amp;rdquo; They answer reuse, tests, and the courage to change old code. Those are the habits a day-zero loop does not practice, because they do not show up in the demo.&lt;/p&gt;&#xA;&lt;p&gt;GitHub putting a name and a toolkit on this — &lt;a href=&#34;https://github.com/github/spec-kit&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Spec Kit&lt;/a&gt;&#xA;, &amp;ldquo;define what to build before building it&amp;rdquo; — is the industry catching up to a sentence some of us have been repeating for twenty years. I am glad it exists. Specs that live as markdown for an agent to interpret are still a step up from a vibe. They are not the same as a spec that is structurally validated, wording-gated, and tied to a real Cucumber suite and a TDD state machine that will refuse to refactor on red. That difference is why &lt;code&gt;bdd&lt;/code&gt; exists. The closest tools I know of each do part of this. None of them combine a machine-validated spec, a wording gate, real Cucumber across Java, JavaScript/TypeScript, .NET, and Rust, an enforced test-state machine, typed mutations with no shell escape hatch, an embedded MCP server, and a local-only LLM, in one binary.&lt;/p&gt;&#xA;&lt;h2 id=&#34;it-does-not-behoove-them-to-teach-you-this&#34;&gt;It does not behoove them to teach you this&lt;/h2&gt;&#xA;&lt;p&gt;I want to be as careful here as I was in the token-bill post. This is an incentive, not a conspiracy. Model providers have good reasons to make models more capable, and customers are free to buy that capability. Still, the bill is not subtle. On the two hosted models I priced, output tokens cost five to eight times input tokens. When a model does more work, customers usually buy more inference.&lt;/p&gt;&#xA;&lt;p&gt;It does not behoove a frontier lab to teach you a workflow in which an 8B local model drafts a requirement, a validator rejects the sloppy wording, a test runner produces a red bar, and the model is only then allowed to attempt the smallest patch that turns it green. That workflow spends its calories in code you already own. It does not spend them on a metered API. The labs need the habit: open the chat, describe a feeling, accept a tree of files, come back when it breaks. Addiction is an ugly word for a pricing model, but the loop is the same shape. You stay because the first screenshot was free in time and expensive in everything that came after.&lt;/p&gt;&#xA;&lt;p&gt;I do not think the models are the enemy. I think the missing guidance is the enemy, and the missing guidance is the same guidance we have had since before any of this: write the spec, write the test, write the code last, keep all three in sync. Frontier models do not ship with that. A CLI can.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-rehire-articles-are-a-symptom-they-are-not-the-point&#34;&gt;The rehire articles are a symptom. They are not the point.&lt;/h2&gt;&#xA;&lt;p&gt;I have seen the articles, and the videos, about companies hiring people back after betting that AI would replace them. Some of that reporting is looser than it sounds. The number that is actually sourced is not &amp;ldquo;developers,&amp;rdquo; and I am not going to pretend it is.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.gartner.com/en/newsroom/press-releases/2026-02-03-gartner-predicts-half-of-companies-that-cut-customer-service-staff-due-to-ai-will-rehire-by-2027&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Gartner&amp;rsquo;s February 2026 forecast&lt;/a&gt;&#xA; is about customer service. By 2027, they say, 50% of companies that attributed headcount reduction to AI will rehire staff to perform similar functions, under different job titles. Their own October 2025 survey of 321 customer service and support leaders found that only 20% had actually reduced agent staffing because of AI. Kathy Ross, a Gartner analyst on that practice, said most recent workforce reductions were influenced by broader economic conditions rather than automation alone. Emily Potosky, in the same release: &amp;ldquo;AI simply isn&amp;rsquo;t mature enough to fully replace the expertise, empathy, and judgment that human agents provide.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;Klarna is the case everyone uses, and it is also customer service. In May 2025, CEO Sebastian Siemiatkowski &lt;a href=&#34;https://www.bloomberg.com/news/articles/2025-05-08/klarna-turns-from-ai-to-real-person-customer-service&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;told Bloomberg&lt;/a&gt;&#xA; that cost had been too predominant a factor, and that what you end up with is lower quality. He started recruiting so customers could always speak to a person. That is not &amp;ldquo;AI failed, delete the chatbot.&amp;rdquo; It is &amp;ldquo;we over-indexed on the demo, and the demo was not the job.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;IBM is moving the other direction on purpose. CHRO Nickle LaMoreaux said the company plans to &lt;a href=&#34;https://www.ibm.com/think/news/entry-level-roles-get-reset-ai&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;triple US entry-level hiring in 2026&lt;/a&gt;&#xA;, across software and the rest of the business, because &amp;ldquo;if we don&amp;rsquo;t continue to invest in entry-level hires, what happens in 3–5 years? There&amp;rsquo;s no pipeline; the well simply dries up.&amp;rdquo; That is not a rehire of the old org chart. It is an admission that if you delete the bottom of the profession, you do not get a more efficient profession. You get a cliff.&lt;/p&gt;&#xA;&lt;p&gt;The engineering version of this story is not a Gartner headcount number I can cite. It is the GitClear chart: more lines, less reuse, more churn, code that is written to be shipped today and expensive to touch tomorrow. Companies that staffed for day-zero generation and starved the people who can tell a spec from a vibe will hire some of those people back. Of course they will.&lt;/p&gt;&#xA;&lt;p&gt;If anyone who knows me is watching that wave, I hope what comes back is only the 30%. I hope the 70% are now out of the equation. I am going to leave the 70–20–9–1 split to another post. Trust me, it will offend a lot of people. It is not meant to. It is about priorities, and about other aspects of life, and about whether filling a seat was ever the right use of someone&amp;rsquo;s years. If this era does one decent thing, it will be to stop asking the 70% to occupy a spot they were never going to love, and to let them go explore the rest of a life. That is only possible if the 20% take the AI and use it for good — not to manufacture day-zero code, and not to skip the techniques that have been taught for as long as I have been doing this. The 20% have to keep the spec, the tests, and the code in sync. Nobody else is going to do that for them. The frontier model will not. It is not in its interest.&lt;/p&gt;&#xA;&lt;h2 id=&#34;try-it-on-the-machine-you-already-have&#34;&gt;Try it on the machine you already have&lt;/h2&gt;&#xA;&lt;p&gt;Clone the &lt;a href=&#34;https://github.com/davidparry/tdd-bdd-agentic&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;repo&lt;/a&gt;&#xA;, or install &lt;code&gt;bdd&lt;/code&gt; from the &lt;a href=&#34;https://github.com/davidparry/tdd-bdd-agentic/releases/latest&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;latest release&lt;/a&gt;&#xA;. Install &lt;a href=&#34;https://ollama.com&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Ollama&lt;/a&gt;&#xA; if you do not have it, pull something small, and point the CLI at it:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ollama pull qwen3-coder-next:q4_K_M&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;bdd model use qwen3-coder-next:q4_K_M&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mkdir calculator &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; cd calculator&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;bdd greenfield&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Describe a calculator in a sentence. Watch a local model split that sentence into a requirement. Watch &lt;code&gt;validate_spec&lt;/code&gt; and &lt;code&gt;refine_requirement&lt;/code&gt; refuse the sloppy wording. Approve the spec when it is actually the behavior you want. Watch the bar go RED, then GREEN. You will not have called a frontier API. You will have practiced the same discipline I have been arguing for for twenty years, at the speed an agent can finally sustain.&lt;/p&gt;&#xA;&lt;p&gt;To learn more about Spec-Driven Development — the workshop, the CLI, the talk, and how the loop actually runs — start at &lt;a href=&#34;https://davidparry.github.io/tdd-bdd-agentic/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;davidparry.github.io/tdd-bdd-agentic&lt;/a&gt;&#xA;.&lt;/p&gt;&#xA;&lt;p&gt;That is the whole claim. Frontier models are optional. The spec is not. Day-zero is a screenshot. Software is what is still true after the screenshot.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>🔺 Spec-First Was Always Right — Agents Just Made It Fast</title>
      <link>https://davidparry.com/blog/2026/08/07/spec-first-was-always-right-agents-just-made-it-fast/</link>
      <pubDate>Fri, 07 Aug 2026 16:00:00 -0500</pubDate>
      <guid>https://davidparry.com/blog/2026/08/07/spec-first-was-always-right-agents-just-made-it-fast/</guid>
      <description>&lt;img src=&#34;https://davidparry.com/images/tdd-in-the-agentic-era-spec-driven-convert-linkedin.png&#34; alt=&#34;The Specs, Code, Tests triangle kept in sync — an AI agent turns the crank while a human steers, and the test bar goes from red to green&#34; style=&#34;display: block; margin: 0 auto; width: 70%; max-width: 560px;&#34; /&gt;&#xA;&lt;p&gt;&lt;strong&gt;For twenty years I have argued that requirements, tests, and code are the same information at three altitudes, and that the job is to keep them in sync. The argument has not changed — the economics finally have.&lt;/strong&gt; The correct way was always to nail the spec first, but that was the slower way, and when a human sits down at a keyboard there has always been an unspoken rule that whatever they type had better be code. Spec-writing looked like stalling. So teams typed the code, and the spec — if it ever existed — drifted into fiction. That trade-off is now dead. With an agent doing the transformation from requirement to test to implementation, the spec-first path is no longer the slow path. Getting it right is now &lt;em&gt;faster&lt;/em&gt; than winging it, because a well-captured requirement is the thing an agent can actually execute against, and a vague one is the thing you pay for in review, rework, and slop.&lt;/p&gt;</description>
      <content:encoded>&lt;img src=&#34;https://davidparry.com/images/tdd-in-the-agentic-era-spec-driven-convert-linkedin.png&#34; alt=&#34;The Specs, Code, Tests triangle kept in sync — an AI agent turns the crank while a human steers, and the test bar goes from red to green&#34; style=&#34;display: block; margin: 0 auto; width: 70%; max-width: 560px;&#34; /&gt;&#xA;&lt;p&gt;&lt;strong&gt;For twenty years I have argued that requirements, tests, and code are the same information at three altitudes, and that the job is to keep them in sync. The argument has not changed — the economics finally have.&lt;/strong&gt; The correct way was always to nail the spec first, but that was the slower way, and when a human sits down at a keyboard there has always been an unspoken rule that whatever they type had better be code. Spec-writing looked like stalling. So teams typed the code, and the spec — if it ever existed — drifted into fiction. That trade-off is now dead. With an agent doing the transformation from requirement to test to implementation, the spec-first path is no longer the slow path. Getting it right is now &lt;em&gt;faster&lt;/em&gt; than winging it, because a well-captured requirement is the thing an agent can actually execute against, and a vague one is the thing you pay for in review, rework, and slop.&lt;/p&gt;&#xA;&lt;p&gt;I recently decided to polish my TDD talk, &lt;em&gt;TDD in the Agentic Era&lt;/em&gt;, with exactly this in mind. The talk always rested on having the spec; the revision makes the spec &lt;strong&gt;mandatory&lt;/strong&gt;. The workflow now begins at the requirement and refuses to move without one — the agent cannot write a test or a line of implementation until it has pulled the spec and turned its acceptance criteria into an executable scenario. In the 60-minute hands-on version, every artifact is real, runnable code — an MCP server, a client agent, a requirements backlog, Gherkin scenarios, and a Red/Green/Refactor state machine that refuses to let anyone, human or AI, refactor on a red bar. It is public in the &lt;a href=&#34;https://github.com/davidparry/tdd-bdd-agentic&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;tdd-bdd-agentic repository&lt;/a&gt;&#xA;, and I use it through this post as the working proof of the argument. But the workshop is the demonstration, not the point. The point is that my old conviction is holding true, and the time to do this — and get it right — is now: why this style finally pays for itself, and why this exact idea, spec-driven development as a triangle, is the reason I joined CodiumAI. I chose them for Itamar&amp;rsquo;s vision — a vision that was not completely deliverable at the time, given where the models were, but was spot on about where this was all going. That company is the one you now know as &lt;a href=&#34;https://www.qodo.ai&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Qodo.&lt;/a&gt;&#xA;&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-we-accomplish-in-the-hour&#34;&gt;What we accomplish in the hour&lt;/h2&gt;&#xA;&lt;p&gt;Everyone has watched an agent demo. Almost nobody has driven the workflow underneath one. That is the gap the workshop closes — and deliberately not by building plumbing. The MCP server and client come completed in the repo (Java, stdio transport, tested to 100% coverage); MCP gets about seven minutes as the standard way to feed your tools into whatever agent you use — Cursor, Claude Desktop, or the bundled CLI client, which narrates the handshake, discovery, and invocation that every IDE does under the hood. The rest of the hour, with 35 of the 60 minutes at your keyboard instead of looking at mine, every attendee:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Drafts and refines a requirement with an agent.&lt;/strong&gt; You describe the intent in a sentence; the agent writes the requirement into the backlog; and then the spec iterates through two server feedback loops. First structure: &lt;code&gt;validate_spec&lt;/code&gt; reports every issue — a criterion missing its Then, a duplicate id, broken JSON — and the agent fixes and re-validates until the spec is valid. Then wording: &lt;code&gt;refine_requirement&lt;/code&gt; critiques the draft — &amp;ldquo;&amp;lsquo;quickly&amp;rsquo; is ambiguous,&amp;rdquo; &amp;ldquo;the story is missing its why,&amp;rdquo; &amp;ldquo;only happy paths, add an edge case&amp;rdquo; — and the LLM rewords against that deterministic feedback until the critique comes back clean. The agent drafts, the server arbitrates, the human approves the final wording.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Drives the full spec-to-green loop.&lt;/strong&gt; A real LLM agent validates the spec, picks up a pending requirement through the seven workflow tools (&lt;code&gt;list_requirements&lt;/code&gt;, &lt;code&gt;get_requirement&lt;/code&gt;, &lt;code&gt;validate_spec&lt;/code&gt;, &lt;code&gt;refine_requirement&lt;/code&gt;, &lt;code&gt;run_tests&lt;/code&gt;, &lt;code&gt;get_tdd_state&lt;/code&gt;, &lt;code&gt;start_refactor&lt;/code&gt;), writes the Gherkin scenario for its acceptance criteria, runs the tests to show RED, implements the simplest code to reach GREEN, and then — only then — refactors.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The kata under all of this is deliberately boring: the String Calculator. The point was never the calculator. The point is the workflow wrapped around it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;three-altitudes-one-discipline&#34;&gt;Three altitudes, one discipline&lt;/h2&gt;&#xA;&lt;p&gt;The center of the talk is a slide I call the three altitudes. It is not &amp;ldquo;just TDD.&amp;rdquo; It composes the three spec-first methodologies, each pinning the system at a different height, and the agent works across all of them:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Methodology&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Pins&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Canonical artifact&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;strong&gt;SDD&lt;/strong&gt; (spec-driven)&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;the feature&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;a versioned spec with acceptance criteria — in the repo, &lt;code&gt;requirements/requirements.json&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;strong&gt;BDD&lt;/strong&gt; (behavior-driven)&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;one behavior&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;a Gherkin scenario, executed by Cucumber&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;strong&gt;TDD&lt;/strong&gt; (test-driven)&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;one unit&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;a failing JUnit test&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;The flow is spec-down. The agent reads a requirement (SDD), turns its acceptance criteria into a tagged Gherkin scenario (BDD), adds unit tests where useful (TDD), and the &lt;code&gt;run_tests&lt;/code&gt; tool runs Cucumber and JUnit together — one bar, one color. Tests are generated &lt;em&gt;from&lt;/em&gt; the spec, not reverse-engineered from the code afterward. That direction is the entire spec-driven claim.&lt;/p&gt;&#xA;&lt;p&gt;Here is what the agent actually produces during the spec-to-green exercise, for a requirement whose acceptance criteria were already phrased Given/When/Then in the spec:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-gherkin&#34; data-lang=&#34;gherkin&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;@REQ-003&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;Scenario:&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt; Two numbers separated by a comma are summed&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;    Given &lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;a string calculator&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;    &lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;When &lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;I add &amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;1,2&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;    &lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;Then &lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;the result is &lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And here is the prompt the audience pastes into their agent — notice how much of it is workflow, not code:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Using the tdd-workflow tools: validate the spec first, then find the next&#xA;pending requirement, add a Gherkin scenario for its acceptance criteria to&#xA;the feature file (tag it with the requirement id), reuse or add step&#xA;definitions, run the tests to show RED, then implement the simplest code to&#xA;reach GREEN, then refactor. Ask me before each phase change.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;There are two hard human checkpoints in the loop. The first is a spec review: when the agent writes the scenario, the room stops and reads it aloud — &lt;em&gt;is this the behavior we want?&lt;/em&gt; The second is diff approval after GREEN. The agent turns the crank; the human steers. And the discipline is not a suggestion living in a prompt — it lives in the tool. Ask the server to &lt;code&gt;start_refactor&lt;/code&gt; while the bar is red and it refuses. Guardrails belong in code, not in vibes.&lt;/p&gt;&#xA;&lt;h2 id=&#34;twenty-years-a-convert&#34;&gt;Twenty years a convert&lt;/h2&gt;&#xA;&lt;p&gt;I have been a convert to this style for twenty years. Test-first, behavior-first, and above all &lt;strong&gt;requirements-first&lt;/strong&gt; — the conviction that you cannot build the right thing until someone has written down, in a form that can be checked, what the right thing is. I lived through the era when the spec was a Word document that was obsolete before the first sprint ended. Cucumber and Gherkin were the first tools that let the requirement itself become executable, and I never went back.&lt;/p&gt;&#xA;&lt;p&gt;But I should be honest: being a convert and getting to practice it were two different things. The conviction was mostly private, because in most places I worked the requirement either did not exist at all or arrived from someone outside engineering — a product owner, a stakeholder, a business analyst — who was never equipped to turn what they wanted into a technical requirement or a PRD an engineer could build against. What came across was rarely close. That was not their failing. They knew the business cold; they simply were not trained to interrogate a request the way it needs to be interrogated — to dig for the edge cases and the unstated assumptions, to ask the questions that actually need asking, and to pin the answers down in a form that can be checked. So I spent twenty years believing in requirements-first while working in organizations that rarely produced a requirement worth the name.&lt;/p&gt;&#xA;&lt;p&gt;Which is the whole point, because it tells you where the scarce skill always lived. It was never typing the code. It was extracting what is actually needed — from the ticket, from the stakeholder, from the silence between what they said and what they meant — and pinning it down in a testable form. That is why the agentic era feels like vindication rather than disruption to me. An agent is a phenomenal crank-turner, but it can only turn the crank on requirements someone captured well — and if that skill was scarce when a human wrote the code, it is scarcer and more valuable now that an agent will faithfully execute whatever you hand it, good spec or bad. Which leads me to believe the developer&amp;rsquo;s real emerging role is &lt;em&gt;requirements gatherer for the agent&lt;/em&gt; — but that is another post, and I intend to write it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-triangle-that-made-me-join&#34;&gt;The triangle that made me join&lt;/h2&gt;&#xA;&lt;p&gt;In July 2024 I was deciding whether to join a startup called CodiumAI. Plenty of companies were pitching AI code generation; what convinced me was that the CEO, &lt;a href=&#34;https://www.linkedin.com/in/itamarf&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Itamar Friedman&lt;/a&gt;&#xA;, was saying the same thing I had spent twenty years believing — and he had drawn it as a triangle: &lt;strong&gt;spec, tests, code, kept in sync&lt;/strong&gt;. He lays it out most explicitly in his &lt;a href=&#34;https://www.linkedin.com/posts/itamarf_brownfield-activity-7404141226960060416-lhI6&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Gen 3.5 framing&lt;/a&gt;&#xA;, where agents collaborate around three core artifacts, &lt;strong&gt;Specs → Code → Tests&lt;/strong&gt;, improving the spec, transforming it into code, generating and executing tests, and keeping all three tightly aligned as each evolves. I was not joining a company that bolted testing onto generation as an afterthought; I was joining one whose founding thesis was that the three corners are the same information at different altitudes and the job of AI is to keep them aligned. When I joined, that vision was ahead of what the models could deliver. Reading it now, with the workshop in this post running exactly that loop on my laptop, we are close — if not already there.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-workshop-is-the-triangle-running&#34;&gt;The workshop is the triangle, running&lt;/h2&gt;&#xA;&lt;p&gt;Look back at the workshop with the triangle in mind and the mapping is one-to-one:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Spec corner:&lt;/strong&gt; &lt;code&gt;requirements.json&lt;/code&gt;, versioned, with acceptance criteria — drafted with the agent, held structurally valid by &lt;code&gt;validate_spec&lt;/code&gt; and iterated to clean wording by &lt;code&gt;refine_requirement&lt;/code&gt;, and the source of truth the agent implements from.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Tests corner:&lt;/strong&gt; the Gherkin feature file and the JUnit tests, generated from the spec, executed together as one bar.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Code corner:&lt;/strong&gt; &lt;code&gt;StringCalculator.java&lt;/code&gt;, written last, as the simplest thing that makes the bar green.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The MCP server is the connective tissue — the standard way for an agent to discover your workflow tools and respect your discipline. The human sits at the two checkpoints where judgment lives: &lt;em&gt;is this the right spec?&lt;/em&gt; and &lt;em&gt;is this the right code?&lt;/em&gt; Everything between those checkpoints is crank-turning, and the crank no longer needs to be turned by hand.&lt;/p&gt;&#xA;&lt;p&gt;Twenty years ago, keeping the three corners in sync was a manual discipline that most teams abandoned under deadline pressure. The spec drifted, the tests decayed, and the code became the only truth — unreadable, unverifiable truth. What the agentic era changes is the cost of the discipline. The alignment work that teams always skipped is exactly the work agents are good at.&lt;/p&gt;&#xA;&lt;p&gt;The talk ends with homework: on &lt;code&gt;trunk&lt;/code&gt; — the exact starting point the class clones — requirements REQ-004 through REQ-006 are still pending, and the requirement the room drafted in Exercise 1 is waiting to be taken to green. Clone the &lt;a href=&#34;https://github.com/davidparry/tdd-bdd-agentic&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;repo&lt;/a&gt;&#xA;, point your agent at the tools, and finish the kata on the plane home. Watch the bar go RED, then GREEN. And if you want the answer key, the &lt;code&gt;complete&lt;/code&gt; branch is the kata fully driven through the loop — every requirement implemented, every scenario tagged and green — with CI telling the story on both branches: trunk deliberately fails a class-completeness check because the work is still ahead of you; complete passes everything. Then ask yourself who really wrote the requirement — because that person, not the agent, decided what got built. That&amp;rsquo;s the next post.&lt;/p&gt;&#xA;</content:encoded>
    </item>
  </channel>
</rss>
