Skip to content

ADR: One host per process, the rings under them

ADR: One host per process, the rings under them

Status: accepted in part, 2026-10-23, at 1.0.4.44. The job hunt's Function is cut into the same rings as the site: JobHunt.Domain holds the rules, JobHunt.Application holds the use cases and their ports, JobHunt.Infrastructure holds the adapters, and the host sits over them. RingTests holds the direction. One host per process and one Function App per host are the next step. They wait on Steve's call on the hosting plan, which is written below.

Reading list

  1. ADR: The tracker merger runs in Azure: the Function this record cuts, and every process it runs.
  2. ADR: The Nightly Function on the Admin tab: the card that watches it.
  3. ADR: The onion cut into vertical slices: the rules the site holds, which this record starts to hold for the Function.

In plain words

The job hunt's Function grew one feature at a time into one project of 43 files. The tracker merger, the inbox pass, the Sheet mirror, the daily card and the nightly clock all sat side by side with the Gmail, Sheets and file-share code they use. A rule about which job-board mail is an alert sat in the same project as the code that talks to Google.

From this version the rules are in one project that talks to nothing, the processes are in a second that talks only through interfaces, and the Google, GitHub and share code is in a third. The project that Azure runs is now only the clock and the wiring. The site was built this way from the start. Now the Function is too, and a test fails the build if a project reaches the wrong way.

Context

Measured at 1.0.4.43: functions/jobhunt held 43 .cs files. There were six triggers (AtsSweep, DailyCard, Merger, MergerHealth, Nightly, SheetMirror) and the slice folders Ats/, Card/, Leads/, Merge/ and Sheet/, each mixing rules, use cases and adapters. There were three ports (IInbox, IMergeStore, ISheetGrid) and no architecture test. Steve's rulings: each process is its own Function on the App Service plan (10/23), every Function has its own Admin tab card (10/22), and one host project per process is fine (11:37, 10/23).

Decision

  1. Three rings. functions/JobHunt.Domain holds the rules with no I/O: the ATS rules, the mail address rules, the leads filter and the application cap, every board's alert reader, the tracker's CSV text, the Sheet plan and the tracker gate, the card's text, the Central clock and the slot table, which is linked from TheYard's Domain as before. functions/JobHunt.Application holds the use cases and their ports: the inbox pass's parts (the ATS sweep, the leads harvest, human mail, triage), the merger and its health, and the Sheet mirror, with IInbox, IMergeStore and ISheetGrid. functions/JobHunt.Infrastructure holds the adapters: Gmail, Google Sheets, Google Calendar, the share, the GitHub dispatch and the share snapshot. functions/jobhunt is the host: the six triggers and Program.cs.
  2. Slices inside each ring. A ring's file sits under Features/<Slice>/ (Ats, Leads, Merge, Sheet, Card) or at the ring's root, and declares JobHunt.<Ring>.Features.<Slice> or JobHunt.<Ring>. Each project imports the namespaces it may use once, in its project file.
  3. The direction. Domain references nothing of the job hunt's. Application references Domain only. Infrastructure references Application and Domain and never the host. Domain and Application reference neither the Azure SDK nor an HTTP client, and nothing in them reads the environment.

What holds it

RingTests, new: each ring leans only inward, only Infrastructure reaches the share or the network, nothing in Domain or Application reads the environment, and a file under a ring's slice declares that slice's namespace. TemplateTests now reads every setting across the host and the three rings, not the host's folder alone.

Not done in this version, and why

  • One host per process (JobHunt.Host.AtsSweep, DailyCard, Merger, Nightly, SheetMirror), each with one trigger, its settings bound once into a record, and one Command dispatched. A host with no Function App to run in is code nobody runs, so the hosts are built with their apps.
  • One Function App per host. The prompt names the existing plan in RG-JOBHUNT-SS, which is a Flex Consumption plan (FC1) holding one app. The off-the-laptop prompt names TheYard's B2 App Service plan. Moving the job hunt's processes onto the B2 is a hosting plan change for those apps, which this lane may not make on its own (no SKU, tier or plan change), and the cutover runs two copies of the merger until the old app's switches are turned off. The call is mine, and the lane asked it once: run the five processes as five apps on the B2 plan TheYard runs on (shared CPU and memory with the site, timers every minute with no cold start), or stay on Flex Consumption with one plan per app.
  • A query or command per process step, and CqrsTests for the Function. These come with the hosts, because each host's trigger dispatches exactly one command.
  • Five cards under Cloud infrastructure. These come with the apps they read.
  • The nightly card's process sections, at stage B. Each section keeps its place and gains a "which app" line read from its request's cloud role, and the runs reader's role filter (InsightsProcessRuns, one role today) becomes the list of the five apps' roles.

Consequences

Every Function file moved once and changed only its namespace line. The tests pass by namespace change alone, through one import per namespace in the test project. The deploy still publishes functions/jobhunt, which now carries the three rings as references, so the running app is unchanged.

Where it sits

Every ring of the job hunt's Function, and none of the site's: the Function shares this repository and its Domain's slot table, and nothing else. Dependency inversion is the principle it serves, the processes owning the interfaces and the adapters implementing them, and single responsibility for the host, which wires and schedules and decides nothing. It cost a namespace line in every file and three project files. What would change it: a process that needs a library no ring may hold, which would be an adapter in Infrastructure behind a port the process declares, never a reference from an inner ring.

Files

Addendum, 2026-10-25 (1.0.4.69): the mail search is data, and the Gmail adapter writes it

The Domain wrote Gmail's search syntax: the tracking systems' sweep (in:inbox from:(...)), each board's alert search (from:..., subject:"...") and the delivery failures' search, and the Application ring wrote four more (the triage window, the human mail check, the harvest's inbox prefix and the campaign's reply search). A search language is an adapter's concern. From this version the Domain keeps what a board is, its senders and the subject phrases its alerts carry, as data; the Application ring carries a search as a MailSearch record (senders, subject phrases, inbox only, newer than, not from me), and IInbox.FindAsync takes one; the Gmail adapter's GmailQuery.Compose is the one place the syntax is written.

The composer is functions/JobHunt.Infrastructure/Features/Ats/GmailQuery.cs, and the search it reads is functions/JobHunt.Application/Shared/Mail/MailSearch.cs.

RingTests.Nothing_in_Domain_or_Application_writes_a_mail_search holds it: no code line under Domain or Application writes from:, subject:, in:inbox or newer_than:. It was red on 1.0.4.68 with only its file applied, naming ten lines across eight files. GmailQueryTests holds every search the Function sends, nine of them, to the string it sent at 1.0.4.66 character for character, so Gmail sees nothing new. The test fakes answer the search object, and the inbox pass's fake reads the string the adapter would send.

Addendum, 2026-11-09 (1.0.4.166): the machine lanes take the same rings

A third process joined the two, server/JobHunt.Server, on the same three rings and the same direction: JobHunt.Server.Domain references nothing of its own process, JobHunt.Server.Application references Domain only, JobHunt.Server.Infrastructure references both and never the host. Nothing in Domain or Application reads the disk, the network, the clock or the environment. RingTests in server/JobHunt.Server.Tests holds it, and ADR-119's addendum of the same version says why the process exists and what crosses into it.

Addendum, 2026-11-09 (1.0.4.168): the reply lane gets a second dispatch at 5 AM

On 8 November the 4 AM dispatch reached GitHub and the runner died 31 seconds later, before the lane began: the action's own setup fetched its runtime, got a 504, and the next step found no bun. The leads run at 3:50 and the triage run at 4:20 died the same way. The others come round again within hours; the reply lane comes round once a day, and the 6 AM messages lane then read the day before's queue. The Function's hourly clock now asks one more question in the 5 o'clock hour in Central: did any reply run of the day write linkedin-queue.md? Bookend.ReplyRunsAsync lists nightly/<date>/ on the share for folders named *-reply-* (a -dry folder never counts) and ReplyRetry.Needed answers in the Domain; when no run holds the queue, the hour dispatches the reply lane once more and its run line reads reply_retry. A day whose queue exists finds the hour as it always was, not a slot. The hour is the clock's own work, like the picker's, so it is not a row in NightlySlots. ReplyRetryTests holds the hour on both sides of the clock change and the decision on real folder names.

Addendum, 2026-11-09 (1.0.4.171): one card at 7:30, written whole and mailed to its reader

The job hunt left its reader five places to look each morning (the hourly CARD.md, the night's JOBS file, the blockers card, the dispatcher's status and every closed lane's notes), so he assembled his own day. The Function now writes one card, TODAY.md at the share's root, in the 7 o'clock hour in Central (CentralClock.IsTodayHour, a timer at 30 past every hour), replaces the file whole, and mails it to his own address from his own Gmail with the token the campaign sends with (GmailSender, built in the host, so the Card slice uses no Campaign type). No model runs. The order is fixed: the CRITICAL sends with their full text, the essays the 6 AM run submitted, the replies with each draft in full, the calls in the next 72 hours with their must-answers line from the company's NOTES file, the dispatcher's lanes (running, paused, held with its reason, each proposed item as "queue it?"), what lanes that closed in the last day left for him, the walls (Mondays, or where a human has replied), one decision, and the rejection reads carried forward from the file it replaces. TodayParts, TodayCard, TodayReads and TodayMail in the Domain take text and answer text; TodayCardSource in Infrastructure does every read; the reply queue is read by format 2's grammar against the reply lane's own fixture. Anything named in dispatch/ANSWERED.md, and any draft with a DO-NOT-SEND note beside it, never reaches the card. Past 15 minutes at 200 words a minute the held replies fold into one line. TODAY_CARD unset or on writes and mails, write only writes, off does neither: unset is on, so a template redeploy that drops the setting cannot silently stop the card. A day whose log line already says mailed is left alone, and POST /api/today/hand-run runs the same path at any hour. CalendarWeek.ReadAsync is the calendar read the hourly card and this one share. TodayCardTests holds the order, the answered and DO-NOT-SEND drops, the carry-forward, the cap, the hour on both sides of the clock change and the one address the mail goes to.

Addendum, 2026-11-12 (1.0.5.67): the card asks only what needs his word

The 11/12 card put six people under Replies and four of them needed nothing from him; it printed a decision a later lane had already closed, and 31 proposed items each asking "queue it?". From this version:

  1. The verdict and the fit line come first (fitgate1110 fix 2). Every reply, drafted or held, opens with its red flag verdict and then its fit line, and the must-answers follow as its Gate line. TodayCardSource hands the card the whole .gate.md, read for the draft a held item says it keeps too, and TodayReplies.Gate takes every leading RED FLAG:, FIT: and UNANSWERED IN WRITING: part, where before the card kept the first line only. With no gate the verdict is a held reason's own opening RED FLAG: clause, and the fit line is the queue's Note: fit:; a reply with neither says FIT: NOT CHECKED. A RED email draft is never a CRITICAL send: it prints under Replies, held for his word, with its full text. A gate written before the verdict lines existed still prints its first line.
  2. Oldest first, with one line of history (autohunt1109-4 follow-on 3). TodayHistory sorts section A by the first day each reply was in front of him and ends each with "History: . On the card since M/D." The first day is the earliest of the queue's optional Note: since: line, the last card's own "On the card since", the last card's date when it named the person under Replies, and the item's own "M/D queue" dates. No earlier card is kept on the share, so the card's own words on the card it replaces are its only record of the cards before it; the 6 AM program's 0600-card.md is its own card, not this one. The history is the queue's optional Note: history: line, else what the card can say without one. Both Notes are prose to check_reply_queue.py and ReplyQueueTwo, so the queue's grammar does not change; the reply lane's prompt change is written out for the shipping lane in docs/staging/REPLY-LANE-CHANGE-jhcode1112.md.
  3. Section A holds only what needs his word. TodayHandled folds into one line, "Handled, no action: N (names)", a blacklist hit (a held reason or fit line that says BLACKLIST HIT), a note that names no role (a held reason that starts "not a role" or says "sales InMail"), a carried item recommended no reply with no new message, and any carried item with no new message once it has been on two cards (TodayHistory counts them). The words are the reply lane's own; the card reads no blacklist of its own. On 11/12 that is four of six: the PetDesk recruiter, the Edward Jones InMail and the two carried no-replies.
  4. What lanes left for him, one line per decision. TodayLeft keys a decision by its lettered bold title ("B. One email after an unanswered LinkedIn invite") and treats every block in any section that repeats the title as the same decision. The card prints it once, under the first section of the day that names it; a decision asked on three cards (sections) with no answer, and with a default its own block names, is closed as that default and prints as one line. A lead-in ("so that line again:") goes when nothing it led into is left. On 11/12 decision B had been asked by autohunt1109-L, autohunt1109-7 and autohunt1109-L-f1 and closed by autohunt1109-L-f3's note; it is now one line, closed as no.
  5. The proposed list is a count and what needs a yes. The lanes section prints "Proposed: N (the list is in dispatch/STATUS.md)" and then a "Queue it?" line only for a proposed file that an unanswered LEFT FOR STEVE bullet names (TodayLeft.Asks, any section up to the card, a closed decision's bullets left out), with the lane that asks; with none it says none needs his yes today. On 11/12 that is one of 21: autohunt1109-L-f3-f1-v3-word-cap.md.

TodayCardDayTests holds all five over the 11/12 share's own shapes (Fixtures/today, people cut to a first name and an initial).

Addendum, 2026-11-29 (1.0.5.194): the morning card's calls, reply drafts and left-for-you lines read what they say

What stopped being true, from the Sun 11/29 07:30 card:

  1. Must-answers by the title only. The OnBoard screen's event is titled "Steven Stout and Emily O'Connell", so no NOTES file matched and the card said none was on record, beside J:\NOTES-ONBOARD.md. CalendarWeek.Calls now keeps each event's organizer and attendees (Steve's own left out, CalendarCall), and TodayCardSource.MustAnswers also matches a NOTES file by an attendee's work domain (onboardmeetings.com names ONBOARD) and by the company a tracker row gives an attendee's address.
  2. A STOP on a reminder. "Check in with Timon Feldmann (LinkedIn) - offer to trade leads" led the calls as STOP: no join link. A missing way in is a STOP only on a call: interview, screen, phone or video in the event, or someone with a work address on it. Any other event prints "not a call, so no join link is needed".
  3. Reply drafts under Rejection reads. The drafter appends its REPLY DRAFT line to the end of TODAY.md, which is the rejection reads, so the card carried 55 of them there back to 11/12. TodayDrafts lists them under their own heading, "Reply drafts", before the rejection reads: seven days from the message each answers, never once a tracker row records a later send of Steve's to the same address (the time written after "sent", else the row's [TID:] stamp, else its date a day later; Count 3951, his 17:04 reply to Emily on 11/28, answers her 16:43 message in another thread), and never to a job board, an ATS, a marketing host or a system (ReplySender). Past the cap the list folds to its count and the newest five, the header names only what folded, and the whole list is kept at inbox-pass/reply-drafts/card-list.md so a folded draft is carried by the next card. The card only stops listing a draft; nothing deletes one in Gmail.
  4. A pasted DONE-note block under Left for you. fixes1128-lanes' section printed its RESULTS code block and its STOPPED line. TodayParts.Left leaves fenced blocks and STOPPED lines out, so a lane prints its LEFT FOR STEVE items, and a lane whose only item is "none" is left off as before.

TodayCard1129Tests holds all four, and the hiring signal's fix (ADR-125's addendum), on the card's own lines; the Timon event's description is not on record and the test's is written so the old reader listed it.

Enforced by

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

The rule What holds it In the last gate
Nothing in the job hunt Function's Domain or Application writes a mail search (no from:, subject:, in:inbox or newer_than: on a code line); a search is a MailSearch and only the Gmail adapter composes Gmail's syntax, every search held to the string it sent before RingTests, GmailQueryTests in its own suite, not this file
The job hunt Function's Infrastructure reads the environment only in the four files named with their counts until stage B of ADR-117 hands each host its settings, and the rule bodies the two suites share live once under tests/rules/, linked into both test projects RingTests, OnionTests, SliceTests, FileShapeTests 42 of 42 passed
When no reply run of the day wrote linkedin-queue.md the 5 o'clock hour in Central dispatches the reply lane once more, on both sides of the clock change; a queue from any real slot is enough and a dry run's never is ReplyRetryTests in its own suite, not this file
TODAY.md is rewritten whole in the 7 o'clock hour Central in a fixed order, CRITICAL sends first with their full text; an answered ask or a draft with a DO-NOT-SEND note never reaches it; rejection reads carry forward; reply drafts have their own heading, seven days, never after his later send or to a machine; a no-link STOP is only for a call; past 15 minutes the held replies and the reply drafts fold and the header says which; the mail goes to his own address only TodayCardTests, TodayCard1129Tests in its own suite, not this file
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