Skip to content

README

Loading...

Live system. This version passed every check before it shipped.

Blog

Steven StoutBlogOct 22, 2026 · 3 min read

The spec has to run

AI beats most developers at typing code and loses to good ones at judgment. Five steps to AI code you can trust, each on a real TheYard file.

Title slide: five steps to AI code you can trust, Dave Farley's rules shown on a real file from TheYard.

01The full post

Steven Stout

Staff .NET Engineer | AI-Assisted Development with Quality Gates | 12 Years Full Stack .NET, 7 Fully Remote

· first posted on LinkedIn · 3 min read

AI beats most developers at typing code, and loses to good ones at judgment.

The bet on replacing engineers is the wrong bet. My own multiplier with AI is about 1.5x, and none of it came from the tool.

On October 21, Dave Farley put out a video on his Modern Software Engineering channel, I Said This Years Ago: Why Prompting AI Code Fails (And What Works), that says why. AI changed the cost of one activity, producing code. It did nothing for the hard problems around it: saying what you want, proving you got it, moving in small steps.

The same week, the merger behind my job-search tracker moved from a PowerShell script on my laptop to C# in Azure, with AI drafting the code against tests I wrote first. Here are his five steps, each one tied to a real file in TheYard. The slides below walk the same five, one file per slide.

1. Write the spec first

One scenario, in the language of the problem, before the agent starts. Say what the system must do, not how.

In TheYard: the whole spec is one test name, The_cloud_merger_leaves_the_same_bytes_as_the_laptop_merger, in ParityTests.cs.

2. Watch it go red

Red is the proof that your spec can catch a wrong answer. A test written after the code only proves the code does what it already does.

In TheYard: Assert.Equal on the master file, the moved-out file and every spool folder. 1,743,354 bytes and 79,903 bytes, identical.

3. Let the agent make it green

The agent owns the how. Read its code when the risk warrants it, not because every line demands it.

In TheYard: the rules talk to a port, IMergeStore. Nothing in them knows the share exists.

4. Keep the spec out of reach

The tests are the contract. A change to one is a change to the contract, and a person approves it.

In TheYard: every push to main runs the Function's tests on a clean GitHub runner.

5. Small steps

One scenario: red, green, review, commit. Small steps are how you find out you are wrong while it is still cheap to be wrong.

In TheYard: the same five input files ran on Azure in a scratch folder first and gave the same SHA-256, the file's fingerprint. Then the hand-over was one setting, MERGER=on. The numbers are in the decision record.

A simple way to remember

  • Say what, not how → Specify
  • Make it fail before it passes → Verify
  • Let the agent own the how → Green
  • Tests are the contract → Protect them
  • One scenario at a time → Small steps

Farley's point that stuck with me: the agent can draft the tests, and a person who understands the problem decides which ones count. That part is the job.

Who on your team writes the check that proves the code did what was asked?

References

The slides (7)

20 reads on TheYard0 this week

Steven Stout

Steven Stout

Staff .NET engineer · Remote

I have spent twelve years building full stack software in C#, SQL Server, React and Azure.

About StevenCheck my work

02What has to work, where is it today, and what does success look like?

Book 20 minutes opens an email to me with those three questions in it, and I answer with a time.

Book 20 minutes

Your email app should have opened with this message. If it did not, copy it and send it from any mailbox.

Or message me on LinkedIn