Skip to content

ADR: The Foreman, a place to start

ADR: The Foreman, a place to start

Status: accepted, 2026-10-25, at 1.0.4.82, for rung 0 only. The Foreman reads every card under Cloud infrastructure and the failures Application Insights kept, and writes one page in five sections, with no model and no action: what happened, the readings with their sources, the likely cause or what was ruled out, where to start, and what it could not read. It answers at GET /api/admin/foreman and as markdown at GET /api/admin/foreman.md, and is the second card under What broke? on the Admin tab. Rung 1, the draft pull request, and the model behind it are not built in this version; Where it sits says why.

Reading list

  1. Microsoft Learn, Microsoft Agent Framework, frequently asked questions: an open-source SDK for agents that reason, use tools and work with other agents, in .NET and Python. Read 2026-10-25.
  2. NuGet, Microsoft.Agents.AI: version 1.26.0, last updated 2026-10-23, no prerelease suffix, with Microsoft.Agents.AI.Foundry and Microsoft.Agents.AI.OpenAI beside it. Read 2026-10-25 13:0x CDT; the version is the one to start the model rung from, read again on the day it is built.
  3. ADR: A red that lasts an hour gets a postmortem: the incidents, whose timelines the Foreman is to draft from the cards' minutes.
  4. ADR: One frame for every resource: the cards it reads, each with its tone, its figure and its note.
  5. ADR: The modular monolith: why the Foreman is a module of the site, not a process of its own.

In plain words

When something on the site looks wrong, the slow part is knowing where to look. The Foreman is a page that does that first step: it reads every card on the Admin tab, says what moved and when, names what changed nearest to it, and points at the file, the decision record and the test to open first. It also says what it could not read, so a gap is never mistaken for good news. It does not fix anything and it does not guess: today it is arithmetic over the readings, and a model comes later, behind the same page.

Context

Steve asked on 20 October for "an AI agent monitoring app health ... so the developer has a place to start", run daily, with a written page, his feedback behind the sign-in, and nothing done without him (J:\mentor\PROMPT-THEYARD-FOREMAN.md, his words at 08:50, 08:52, 09:13 and 09:14). On 25 October he approved an addendum: the in-app model adapter is built on Microsoft Agent Framework, with the hosting, evaluation and monitoring each visible. The prompt names this record ADR-112, which was accepted on 22 October for Claude's usage; incidents took ADR-120 at 1.0.4.78, so this is ADR-121.

The prompt draws two halves: an Azure Function on a timer with its own identity, roles and Cosmos DB container, and a GitHub workflow that reasons over the night's document with a model and pushes a page under docs/foreman/ through a ruleset for a GitHub App. Read before building: the site's shared Cosmos DB database holds twenty-five containers, its limit, as ADR: Every Claude lane reports its usage records, so a foreman container would need throughput of its own, a new monthly charge; a second Functions app is a second deployable, which ADR-119 allows only by a change to it first; and every reading the timer would make is one the site already makes each minute, with the identity and roles it already holds.

Decision

  1. Rung 0 is a module of the site. Features/Admin/Foreman in Application and in the host: a query, its handler and one reading port, IForemanReadings, answered by the Cloud infrastructure cards' own reader and the incidents card's failures, so the page and the tab cannot disagree.
  2. The page keeps five sections, in order. What happened, one sentence with the window; the readings, every card that is not fine with its tone, figure, note and route; the likely cause; where to start, the record, file and test for each card that moved; what it could not read.
  3. No cause without three agreeing sources. With no model the page has at most two (the nearest start of the process and the newest failure), so it names them as nearest, says what it ruled out, and leaves the cause to the reader.
  4. No action. Nothing on the page writes, rolls, sets or opens anything.
  5. The model rung is Microsoft Agent Framework over a Foundry deployment, keyless with a managed identity, when it is built: the package version read that day, not the one above.

Consequences

  • The page costs nothing to run: no new resource, identity, container or schedule.
  • A card added to Cloud infrastructure is read by the Foreman once its key is in ForemanReadings.Read, and its start row once it is in ForemanPages.Starts; ForemanTests fails when a start names a record, file or test that is not there.
  • There is no nightly copy in git yet: the page is live, not kept.

Not done in this version, and why

  • Rung 1, the draft pull request. A workflow can open one with the repository's own token, but a pull request opened that way starts no workflow, so its CI would not run, and the repository setting that lets Actions open pull requests could not be read from this session. The nightly copy and the draft pull request are the next rung, with that setting read first.
  • The model, its evaluation and its monitoring. A Foundry deployment is a new pay-per-use resource; it is priced, alerted and declared in Bicep in the rung that makes it, with the golden set and the traces.
  • The investigation, the feedback controls and the golden set. They follow the model.

What holds it

ForemanTests: the five sections in order, every reading with its route, rung 0's cause sentence, what it could not read, every start row's record, file and test present, and the handler through its one port; ForemanRouteTests: both routes answer, off Azure saying what they could not read.

Where it sits

The Admin module in Application and the host, beside the cards it reads; Domain is untouched. Single responsibility: one port, one handler, one page. It cost two routes, a card and a test class, and no resource. What would change it: a reading the site cannot make with its own identity, which would be the first reason for the Function half the prompt draws, written here first as an addendum.

Files

Addendum, 2026-12-01: the model rung is built

ADR: The Foreman gets a model builds decision 5: Microsoft Agent Framework in the site's own process over a Foundry deployment, keyless with the site's managed identity, on Microsoft.Agents.AI 1.28.0 read that day. Decision 3 stands as that record's check reads it: a cause is named with confidence only when code finds three or more distinct sources behind the sentences it kept; under three, the box opens with this record's "No cause with confidence." and the agent's sentences follow as leads.

Enforced by

One rule in the rulebook cites this record, each held by a test on every release.

The rule What holds it In the last gate
The Foreman's page keeps its five sections in order, every reading names its route, rung 0 names no cause without three agreeing sources, and every place to start names a record, a file and a test that exist ForemanTests 8 of 8 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