Skip to content

ADR: Where a gate lives

ADR: Where a gate lives

Status
accepted
Date
2026-09-03

A rule this project has enforced since 1.0.0.30 was being checked by a script on one laptop.

In plain words

The house rule against em dashes was checked only by a script on one developer's laptop, so any change made elsewhere skipped it. The check is now a test in the .NET suite (HouseVoiceTests), so it runs in CI and for anyone who clones the repository.

What that is worth: a developer gets a failure that names the file and the line wherever the code is, and the organization's rules hold for every contributor instead of depending on one person's workflow.

Context

The house rule is that nothing written here contains an em dash. It is a real rule with a real history: 1.0.0.30 rewrote the last two documents that predated it, and 1.0.0.35 records em dashes reaching the code comments the site displays as live samples.

Here is where it was checked, before today:

  • ChangelogTests asserted the character was absent from docs/CHANGELOG.md. One file.
  • The ship script on the developer's machine scanned the whole repository. Not in the repository, not on the runner, not runnable by anybody who clones this.

Everything else in that script has a counterpart in CI. Prettier, oxlint, dotnet format, tsc, vitest, the .NET suites, the SQL project build and the browser suite all run in both places, so the local script is a fast preview of the same answer. The em dash scan was the exception, and it was the exception without anybody deciding it should be.

A gate that lives in one person's shipping script has three properties worth naming, because they are easy to miss while it is passing:

  1. It is skipped by any commit that does not go through that script. A fix pushed from a phone, a change made on another machine, a merge from a contributor: none of them are checked.
  2. It cannot fail the build, so a violation ships and is found later by reading.
  3. It looks enforced. That is the expensive property. Every decision record, a README, a security page and every code comment in the repository were covered by a sentence in a document and a loop nobody but one machine runs.

Decision

The scan is a test.

HouseVoiceTests walks the repository from the same root helper the other file-reading tests use, reads every extension this project writes text in, skips the vendored and generated trees, and fails naming the file and the line. That puts it in the .NET suite, which means it runs on the CI runner, in the local gate, and for anybody who clones this and types dotnet test.

Three details are deliberate.

It reads UTF-8 explicitly. The PowerShell version did not, at first, and PowerShell 5.1 reads a file as Windows-1252 unless told otherwise. A reader that guesses the encoding splits one multi-byte character into two single-byte ones and then finds whatever it likes in the pieces, which is how a gate can report a violation in a file whose only crime is a multiplication sign.

It knows three spellings. The character, and the two HTML ways of writing it: a named entity and a numeric character reference. Both of those are plain ASCII, both render as one em dash in served markdown, and a scan that knew only the character would pass them. This record cannot quote either one, for the same reason the test cannot write them as literals: the scan reads this file too.

It cannot spell what it forbids. The character is written as a Unicode escape and the two entities are written in halves that the compiler joins, so the file that defines the rule does not break it. A checker that fails on its own source is a confusing way to learn that the check works.

The scan stays in the ship script as well. It costs nothing there and it answers before a commit rather than after one, which is the correct division: the local script is a preview, and the suite is the authority.

Addendum, 2026-09-04: the gate failed on itself

The scan went red on CI, on a commit that changed a caption and a stylesheet, and green on the same code locally and on the four runs either side of it. That is the shape of a flake, and it was not one.

The annotation added in 1.0.0.71 named it in one line, publicly, which is the first time that mechanism has earned itself:

Failed TheYard.Tests.HouseVoiceTests.No_file_in_this_repository_contains_an_em_dash

Here is the chain. The console logger this job asks for, so that individual test names appear, prints each test with its parameters spelled out:

Passed TheYard.Tests.PublicFaceTests.The_page_head_says_what_this_is(expected: "name=\"description\"")

One of this class's own parameters is the em dash it forbids, because a rule that cannot fail is not a rule and the theory proving it can fail has to contain one. The job pipes that output through tee into a file in the checkout. So the transcript of the running suite contained the character, sat in the repository the scan reads, and the scan read it.

Whether it failed depended on whether that line was flushed before the scan reached it, which is why four runs passed and one did not.

Two things are wrong there and only one of them is about em dashes.

A build should not write into the source it is building. The transcripts go to the runner's temp directory now. That fixes this and every future test that reads the repository, which is a growing list: the em dash rule, the record citations, the workflow's own patterns.

And the scan skips the two transcript names anyway, because the next person to add a tee will not remember why the first one moved.

Worth being precise about the local gate's part in this: it never saw the failure and never could, because the ship script writes its transcript outside the repository already, into mentor/logs. The gate that runs in two places was running against two different trees, and only the runner's had the file.

Alternatives

A CI step. A grep in ci.yml would have covered commits and cost less to write. It would not run for a person who clones this, and it would be a check whose failure mode is a pattern that matches nothing, which this repository learned about earlier the same day.

A linter rule. Prettier and oxlint see TypeScript and CSS. The rule covers markdown, C#, YAML, SQL and SVG, so it would need three tools configured separately to say one thing.

Leaving it. The rule had held for forty versions. It had held because one person shipped everything through one script, which is a fact about the workflow rather than about the repository.

Consequences

  • The rule is enforced everywhere the code is, and a violation names its file and its line rather than a path on somebody's C drive.
  • 272 files are read on every test run, which is about a fifth of a second.
  • Two extensions are covered that the script's list did not include, .txt and .html.
  • One test asserts the scan reads something, because a scan that walks the wrong directory passes silently and that is the shape of defect this record exists to remove.

Where it sits

No ring: this is a process decision that moved the house em dash rule from one laptop's ship script into HouseVoiceTests, so the onion and SOLID have no bearing on it.

Files

Enforced by

Not machine-checked. Held by review.

Store

The Yard, home

Steven StoutStaff .NET engineerRemote

Production .NET that stays up. Built with AI, measured on every version.

Steven Stout

Hi, I'm Steve. I build the systems that make delivery boring in the best way, then coach people inside them.

  • 200+

    production releases, none took the platform down

    Conway Investment Research, 2019 to 2024. Sole engineer for the first three years on a live financial advisory platform.

    See how
  • 50%

    shorter release cycle

    Storee Construction, 2024 to 2026. Four ASP.NET applications onto one .NET 10 platform on Azure, with a four-person team I hired and mentored.

    See how

01Verified

Steven Stout

A real person, and the work is mine.

  • Identity

    Checked by LinkedIn, not by me.

    LinkedIn verified my government ID.

  • Running system

    You are looking at it.

    Version 1.0.5.273 is live. Nothing ships unless it passes the automated gates first.

That's who I am. Here's how I work.

02Strengths

Ten strengths, each with the proof beside it. The numbers match my resume and LinkedIn, and the live ones are read from this site as you look.

  • 01

    Keeps production alive

    200+ releases on a live financial platform, and none took it down. Sole engineer for the first three years.

    See the Conway work

  • 02

    Simplifies messy systems

    Four ASP.NET applications onto one .NET 10 platform on Azure, and a release cycle 50% shorter.

    See the Storee work

  • 03

    Marries dev and infrastructure

    Blue-green releases at Storee that flipped in about 5 seconds with nobody signed out, and Azure Front Door at two employers.

    See this site's cloud

  • 04

    Designs data that holds up

    White-label clients on one shared database, the isolation built into the data, and no cross-client issues.

    See the Conway work

  • 05

    Keeps AI-written code honest

    15 quality numbers that may only improve: 273 releases in a row with none worse.

    See the quality numbers

  • 06

    Resourceful

    $30,000+ cut from Azure and vendor spend at Conway. This site's Azure bill is public, resource by resource.

    See the bill

  • 07

    Builds people up

    Hired and mentored a four-person team. 13 colleagues recommend me by name.

    Read the recommendations

  • 08

    Takes ideas to production

    This site: designed, built and run solo, with 352 versions measured through one gate.

    How it was built

  • 09

    Writes clearly

    Posts on real engineering problems, in plain words.

    Read the blog

  • 10

    Owns decisions

    153 decision records, each with its tradeoff and the call I made.

    See the decision records

Built with AI. Gated so quality never slides.

Steven Stout’s showcase: a used-vehicle auction on .NET and React, built and run by one engineer, live on Azure, with its decisions written down.

No quality number has gotten worse at any release since 1.0.5.1 on 10 November: 273 releases in a row.

One engineer, an AI agent and a gate that checks 15 quality numbers on every release. 352 versions measured, with every result public, the worst days included.

82 releases in the last 7 days, each through the same gate.

Async methods with no CancellationToken, may only fall

11091.0.3.1391.0.5.2731.0.4.115, the ratchet
Every number, on the Quality page

TheYard, right nowLive

Answering in

unread

02505007501,000

server time at p95, the usual five minutes of the last day.

Azure this month

unread

the bill, by resource, read from Azure. The Admin tab shows every line.

Since the last roll

unread

 

rolled in place by the pipeline, behind one gate.

People who have visited

unread

30 days agotoday

Scanners, my own tools' and my own reads left out.

03Start here

04Where teams are heading

How I see engineering with AI, and the setup on this site that backs it.

AI-augmented teams · Architecture and ownership

AI writes more of the code. Someone still has to own what ships.

Teams are going to be heavily AI-augmented. That moves the senior job toward architecture and technical ownership: deciding what to build in pieces small enough to verify, and owning what ships.

  • Task tracking will get automated too. Judgment stays human: seeing a design fail at scale before it does.
  • On this site the AI's first design held the whole catalogue in memory. I caught it when the App Service plan hit 82 per cent and moved the work to the store.

What the AI wrote, what I decided

07Tech stack

  •    
  •    
  •    

Read from the build, never typed by hand

What TheYard runs on

What we use, where it runs, its AWS twin, the version as built, and the file that proves it.

Cloud patterns, not one vendor: every Azure piece in this stack has a named AWS twin. Mapped, not yet run on AWS.

  • .NET 1114 projects
  • React 19.3TypeScript 7.0
  • Azure9 Bicep files
  • 11GitHub Actions workflows
The whole stack, with the file that proves each line

The last release the gate stopped was 1.0.5.258 on 2 December, at its browser 1 of 2 job.

08How it is built

09How it is run

10Who and why

Next step

11What 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