Skip to content

ADR: Every page, checked at every roll

ADR: Every page, checked at every roll

Status
accepted
Date
2026-09-19
Shipped as
1.0.0.148

Written the morning Steve opened the README inside the app and found it broken, an hour after a link to one of its pages went into a LinkedIn post.

In plain words

This page decides that the running site checks every address it serves each time a new version starts, and again whenever asked (a self-check sweep). An address counts as up only when it answers with content of the right type, and the checks before release (the gate) run the same list.

What that is worth: a developer learns about a renamed document or a missing drawing from the Admin tab instead of from a visitor, and the organization gets a check that runs itself at every release with nothing added to the bill.

Context

The README linked two documents at /api/docs/built-with-ai and /api/docs/performance. Those are the addresses the documents dialog fetches markdown from, so a reader who followed either one got a page of raw markdown in a new tab. Both answered 200. Both had answered 200 for weeks.

That is the whole lesson of this record: every check this project had asked whether an address answers, and none asked what it answered with. RecordLinksTests proved every repository link pointed at a file that exists. The after-ship reader proved both domains served the new version and that four addresses came back 200. A link that returns a wall of markdown to a human being passes both.

Two more holes sat beside it. The container had no idea what it was serving: a document whose file was renamed, a drawing whose SVG went missing, a static file the build stopped copying would each have been found by a visitor rather than by the site. And the check that did exist ran from outside, after a ship, against four addresses chosen by hand, in a script on one machine, which is a check that runs when somebody remembers to run it.

What was considered

Option What it buys What it costs
The container sweeps itself at every roll Every address the site serves, checked by the thing that serves them, a second after it starts; nothing to remember and nothing to pay The reading is the origin's, not the edge's, and it has to be kept out of the traffic it would otherwise pollute
An uptime service A check from the outside, on a schedule, with alerting A tier on a bill this project keeps at the list price of two containers, and a hand-kept list of addresses in somebody else's console
More addresses in the after-ship reader One more line in a script that already runs Still a hand-kept list, still on one machine, still nothing the site itself knows
A test that fetches every address in the gate Catches it before the ship, which is where a defect is cheapest It proves the checkout is sound, never that what rolled is sound; this record takes both

Decision: the container checks itself, at every roll and on demand, and the gate checks the same list. The sweep lives in PageStatus.cs: ServedAddresses.All() builds the list, the runner asks for each address four at a time, and the report is what the Admin tab shows.

The three rules that make it worth having

The list is derived, never kept. Every document and every drawing comes out of DocumentationCatalog, which is the same dictionary the server serves from and the sidebar is held to. A document added tomorrow is swept tomorrow with nothing to remember. Only the addresses that are not documents are written out: the app, the API's front pages, and the three files the build copies to the root of the domain.

Nothing is called down that was never served here. The app, robots.txt, sitemap.xml and the preview card come out of the frontend build, which the image has and a checkout does not: on a developer's machine the API runs behind the dev server and those four addresses are not its to answer. The sweep checks them where the web root holds them and names them nowhere else, because a red reading that means "you are running the API on its own" teaches a reader to ignore the card.

An endpoint that throws is a page that is down. The first list left the Admin tab's own readings out, on the grounds that they are readings rather than pages. On 19 September /api/admin/machines answered 500 on both live sites for four minutes and the sweep was green through all of it, because nothing was asking. The readings are in the list now.

An answer is judged, not counted. An address is up when it answers 200 with bytes in it, and the report records the content type beside the status, so a document served as anything but markdown and a drawing served as anything but a page are visible on the card and fail the gate. That is the check the README needed.

A sweep is not traffic. Every request the sweep makes carries X-Yard-Page-Check, and the request hook drops anything carrying it. Ninety self-requests at every roll would otherwise push a morning of real traffic out of a five-hundred slot ring and add a visitor to the activity card who is this container.

What the browser suite found, and it is the useful half of this record

The first cut read the container's own address out of the variable the proof fills in a callback on ApplicationStarted. It was always null, so the roll never swept anything, and the endpoint answered "not run" on a container that had been up for a minute. The reason is that a CancellationToken invokes its callbacks in the reverse of the order they were registered: this sweep, registered last in the file, ran first, before the address had been read.

The fix is not to register the two in the other order, which would work until somebody moved a line. SelfAddress asks the server what it is listening on at the moment the sweep runs, and turns a wildcard or a localhost into the loopback. The gate's browser pass is what caught it, on a card that said in plain words that no check had run.

What it does not claim

The sweep dials this container's own loopback, so it reports what the container serves. It does not prove what the edge is serving the public: a cached page at the edge and a broken origin look different from outside, which is why the after-ship reader still reads both public domains from a machine that is not this one. The card says which of the two it is showing. Nothing in this record adds a resource, a tier or an edge feature to the bill.

Addendum, 2026-09-23 (1.0.3.8): a second look, and a second sweep

At about 12:00 CDT Steve reported three pages down and asked for them to be fixed first. The roll onto 1.0.3.6 had swept 121 of 123 on the SQL site and 120 of 123 on the Cosmos DB site: /api/health, /api/admin/machines and /api/admin/kept?card=errors&window=24h each past the client's thirty seconds with TaskCanceledException, on both containers, in the same minute, and the Pages tile said "3 down, needs attention" until the next roll. Every one of the three answered when asked again a minute later. The roll's sweep runs in the busiest second the process has: ApplicationStarted, four addresses at once, while both containers warm a hundred thousand vehicles on the one core they share and ask the same Basic database for its resource view.

Two things, both mechanical. A second look: an address that did not answer on the first pass is asked again, alone, once the pass is over, and an address that answers then is up, with "answered on a second look" as its reason, so the card still says it was slow the first time. A second sweep: three minutes after the roll's sweep the settled process sweeps itself again (PageStatusRunner.SecondSweep, trigger "settled"), and that is the reading the tile shows until somebody asks for another. PageStatusTests holds both: a handler that times out once is up on the second look with its reason, one that times out twice is down with its reason, and the second sweep's delay. The ship script reads the Admin section on both sites after every roll now (staging\polishlane\admin-after-roll.py): health, pages, machines, kept, metrics, and it asks for a sweep itself when the roll's reading has anything down, so the after-ship log carries the settled reading and not the start's.

The second look, read from this build:

// An address that did not answer gets a second look, alone, once the
// first pass is over. The roll's sweep runs in the busiest second a
// process has, four addresses at once while the roll's old and new containers warm their
// catalogues on the cores they share, and in that second a slow
// address such as /api/health can take past the thirty seconds and be
// reported down on a tile that keeps saying so until the next roll. An
// address that answers on its own a moment later was never down.
for (int index = 0; index < entries.Length; index++)
{
    if (!entries[index].Ok)
    {
        var again = await CheckAsync(client, addresses[index], cancellation);
        entries[index] = again.Ok ? again with { Reason = "answered on a second look" } : again;
    }
}

Live from api/TheYard.Api/Shared/Instance/PageStatus.cs, region second-look, read from this build at 99df7a8.

Where it sits

The sweep lives in the host Api, with the Pages card on the front end, because checking what the site serves is a host concern and touches no auction rule. Single responsibility, one reason to change, divides it cleanly: ServedAddresses builds the list from DocumentationCatalog, SelfAddress asks the server where it is listening, and PageStatusRunner makes the requests and judges each answer. It cost a header the request hook must honour (X-Yard-Page-Check) and a reading taken at the origin that cannot see what the edge has cached. A site with paying users would justify an outside uptime service with alerts, since a container cannot report its own outage.

Addendum, 2026-10-20 (1.0.3.188): the sweep's wiring has a file of its own

From 1.0.3.188 the two sweeps at the roll are arranged by Hosted/PageSweepAtRoll.cs, a hosted service handed the runner and the host's lifetime by constructor, instead of a region of Composition/Startup.cs (ADR: The onion cut into vertical slices, rule 2). When they run is unchanged.

Files

Addendum, 2026-10-05 (1.0.3.74): a fifth file from the build

The page about Steve gained a drawing, public/about-lead.svg, and the sweep asks for it beside the preview card, so five addresses come out of the frontend build where this record names four above. They are still checked only where the web root holds them. ServedAddresses and PageStatusTests no longer state the number, so the next file added there does not make either one wrong.

Enforced by

2 rules in the rulebook cite this record, each held by a test on every release.

The rule What holds it In the last gate
Every address this site serves answers with something, and a document is served as markdown PageStatusTests 30 of 30 passed
The sweep checks every document and every drawing the catalogue serves, and its own requests are not counted as traffic PageStatusTests 30 of 30 passed
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