Skip to content

ADR: Outcomes and reasons: the model proposes rows, code admits them

ADR: Outcomes and reasons: the model proposes rows, code admits them

Status: accepted, 2026-11-30, at 1.0.5.208. The schema, the seed and the Domain rules ship first; the pipeline that fills the tables and the Sheet tabs that show them follow in their own versions, recorded below as addenda.

Reading list

  1. ADR: The tracker merger runs in Azure: the tracker's one writer, which this record leaves exactly as it is.
  2. ADR: The campaign sends, the model writes rows: the pattern this follows, a model that proposes and code that checks.
  3. ADR: One SQL database, one schema per area: where the new tables live, beside the tracker's copy under jobhunt.
  4. ADR: Automated tests never touch a real database or permanent storage: why every test here runs on invented rows and file text.

In plain words

The job hunt's tracker is a log: one row for every application, message, reply and call, seven columns, no status. It can say that a company cancelled a call, but only in a sentence, so "how many companies pulled out at the last minute, and why" meant reading hundreds of notes by hand. Now every real opportunity (an application, a person writing in about a role, or a booked call) is one row in its own table, with how far it got and how it ended, and every reason anyone gave is a row in a child table under it, with their words and where the words are. The tracker itself does not change by a byte; each of its rows is linked to an opportunity by its Count.

What that is worth: a count like "pulls after a booked call in the last six months" is one query, every number in it can be traced to the message that says it, and a reason a model made up cannot get in, because code refuses any quote it cannot find in the evidence.

Context

The tracker's rows are written by many lanes in many shapes. A company cell can hold a person's title, an agency and its client, or a parent and its brand; one title can sit on two requisitions; a cancel can be a reschedule or Steve's own withdrawal. Grouping by company and role alone merges different openings at one company, and the calendar cannot say when a cancelled call was, because the event is gone once it is cancelled. A model reads sentences well and invents with the same fluency, so the design keeps it to proposing.

Decision

  1. Five tables and three lookups under jobhunt. Opportunity (the parent, keyed by code), OpportunityReason (the why), OpportunityEvent (the link to the tracker by Count, with no foreign key to jobhunt.Tracker, whose key is a row's place in the file), OutcomeStaging (every proposed line and what code decided) and OutcomeState (the watermark and the last rendered hashes); Stage, OutcomeType and ReasonType seeded with fixed ids by Seeds/outcomes-seed.sql, which stays out of the DACPAC's build. A new code comes only through a reviewed change to that script.
  2. One outcome for a pull. PULLED_BY_THEM: the reason row says why, and the lead time says how late. Last minute is worked out in vw_OpportunityLatest from the lead time, 72 hours or less, or after the call's start; it is never stored, so changing the line rewrites no row. The number is one constant in the Domain (LeadTime.LastMinuteHours) and one line in the view, held equal by a test.
  3. An opportunity is a company and a requisition. The key is the company's key and the requisition id when a row names one, else the company, the role normalised and the month of first contact; a second application to the same role inside 60 days joins it. A row is linked by the first rule that hits: it is the application, it names the requisition, it names the application's Count, it shares a Gmail thread or message with a linked row, or it is the only open opportunity at that company on its day. A bare mention of a Count is never a link. Company names start from the application cap's normalising; agencies and parents are read from the tracker's own cells, so no name is written in code.
  4. Code decides what code can. A withdrawal by Steve, a generic rejection, a closed-silent decision row and 45 days with no row of any kind close an opportunity by rule, with an inferred reason whose evidence is the tracker row. A pull, and any reason someone stated, is never written from the tracker's text by code: such an opportunity is marked for the model.
  5. The model proposes, code admits. A model's line is admitted only when its quote is found in the message it names, said by the person it says, in a message that belongs to the opportunity, with a cue word of its code; code sets the confidence, the primary reason and every time. The pipeline that does this is recorded in its own addendum.

What holds it

  • OutcomeGroupingTests: one title on two requisitions; two applications to one requisition; a title, a client, two clients, an unnamed client, a parent and two brands of one parent in the company cell; spelling and legal-form variants and the prefix join written down; no company; a post and a record row; a bare Count; a moved call and a cancel on Steve's word; their cancel after his withdrawal; a fix stamp before the opening; both date shapes and neither. All on invented names.
  • OutcomeRulesTests: 1,300 minutes for a pull 21.7 hours out, 72 hours exactly last minute and 73 not, no call no lead time, a pull after the start negative and last minute; the codes and their cues; silence at 45 days; the primary reason; code never writing a pull.
  • OutcomeSqlTests: the tables' keys and checks, the link by Count alone, the one view line, the views only reading, and the seed equal to the Domain's codes row for row.

Consequences

  • The tracker keeps one writer and seven columns; nothing that reads it changes.
  • Counts by outcome rest on the rows linked; vw_OutcomeCoverage says how many tracker rows are linked and why the others are not, so a number never quietly rests on a fraction.
  • A wrong grouping is fixed in the Domain rules and the pass re-run on a fresh batch, never by editing a row by hand.

Where it sits

The rules are pure Domain code under Features/Outcomes (the key, the company, the row's ids, the planner and the rules code applies alone), with no clock and no I/O, so every one is tested on invented rows; the schema is the jobhunt project's DACPAC. It serves single responsibility (the planner groups, the rules decide, the tables keep) and keeps the tracker's one writer untouched. It costs five small tables in a database that is 41 per cent full; what would change it is a second writer of the tracker or an outcome Steve wants that the seeds do not hold.

Files

Addendum, 2026-11-30 (1.0.5.209): the pipeline that fills the tables

From this version the Function fills the tables itself, one pipeline for the backfill and for every hour after. Plan reads the master the way the Sheet mirror does, takes the rows above the watermark (at most 1,000 a call), groups and links them, applies code's rules and marks for the model every opportunity a new row leaves unsettled; the watermark moves inside the same transaction, last. Worklist reads, for those opportunities only, the Gmail messages their rows name (at most 100 a call), cuts each to the text above its quoted history, keeps a calendar part's start and method, and writes two JSON-lines files under outcomes/worklist/, the ones with any sign of a booked call apart. Model is a Sonnet step outside the Function that reads worklists and writes lines to outcomes/inbox/. Ingest stages every line as written, reads every message a line names itself (never the worklist's copy), judges each line by the evidence rule (OutcomeAdmission, checks (a) to (j)) and promotes what passes with every verdict in one transaction, then moves the file to outcomes/merged/.

POST /api/outcomes/run?step=plan|worklist|ingest&max=<n> with the function key runs one step on request; the hourly timer at minute 33 runs plan, worklist and ingest in that order. OUTCOMES switches it: off does nothing, shadow plans in memory and writes outcomes/plan-shadow.tsv only, on writes. The setting is not in the template: unset reads off, so a redeploy can only stop the pass. The Gmail adapter now hands back a message's Date header and its calendar part (inline, or fetched once when it is an invite.ics attachment), because a cancelled call is gone from the calendar and its time is only in the invite or the cancel notice.

What holds it: OutcomeAdmissionTests (one test a check, the second pass, a withdrawal before the pull, a reschedule, the booked call's three sources), OutcomePipelineTests (shadow, the watermark, the worklist's cut and calendar, a pull admitted at 1,300 minutes, a broken file), OutcomeStoreTests (the SQL as text: keyed, nothing deleted, the tracker never named, the stage only forward, a pull's times kept; the read caps; a pass run twice), OutcomeEdgeTests, OutcomeShareTests and OutcomeReaderTableTests, all on fakes and invented names.

Addendum, 2026-11-30 (1.0.5.210): the Sheet's three tabs and the stats file

What stopped being true: that the Sheet is written only by appending to Sheet1. From this version a second, separate port, IOutcomeTabs, writes exactly three tabs, Opportunities, Reasons and Stats, each replaced whole from the views and read back after the write returns; its Google adapter refuses any other name before a request is built, so it cannot reach Sheet1, Sheet2, Sheet4 or Moved Out. The mirror's port stays append-only on Sheet1, and its tests are unchanged. A new tab is added after the last, so Sheet1 keeps its place.

The refresh step draws the tabs and outcomes/OUTCOME-STATS.md (the headline, "Last-minute pulls in 6 months: N (all pulls after a booked call: M). Top reason: X.", then the pulls themselves, the counts by month and the coverage, every time as Central text), hashes them, and writes only what changed, so most hours make no Google call and write no file; a tab that reads back different keeps the old hash and the next pass tries again. The headline counts the current month and the five before it, High and Medium confidence only. OUTCOME_SHEET switches the tabs (on, anything else off); the stats file is kept whenever OUTCOMES is on. A sweep step on the route lists calendar cancel notices since a day against the opportunities, placed by their row, by a company in the subject, or unmatched, in outcomes/cancel-sweep.tsv; it admits nothing, because a cancel only counts once a linked row names its message.

What holds it: OutcomeTabsTests (the port's three methods and three names, the headline's window and confidence, the tabs drawn from the views, a refresh that writes once then rests, a mismatch that keeps the old hash, the Sheet off, the sweep), GoogleOutcomeTabsTests (the adapter over a fake HTTP handler: a tab added at the end, a whole replace from A1 as raw text, a refused name that sends nothing), OutcomeStatsFileTests, OutcomeFileShapeTests and OutcomeBucketTests.

Admission, tightened by the first backfill: a model's OPEN never reopens an opportunity code closed; a close code inferred from the tracker's text (a generic rejection, 45 quiet days) gives way to a line that reads the messages behind the same rows, while a withdrawal by Steve never gives way; and the reschedule check reads a row's own words with its bracketed bookkeeping stamps taken out, because a stamp saying a cell's text was "moved to Notes" had refused a real pull.

Addendum, 2026-11-30 (1.0.5.211): a pull is only a pull when the call did not go ahead

What stopped being true: that a message from them saying the role is gone, sent after a call was booked, always ended the process. In the first backfill an automated "no longer available" notice arrived the evening a screen was booked, and the screen was held nine days later; the evidence rule admitted it, because every check is about the words, not what happened next. From this version admission refuses a pull when a linked tracker row dated after the notice, on the booked call's day or the two after it, carries no cancel, filled, closed, hold or paused wording: the call went ahead. And a row's booked-call time is the first date and time the row writes after its own day (TrackerTime.DateAndTime, which now reads an ISO date and a time range too), while the time a thing happened is the first one on the row's own day (TrackerTime.OnDay), so a confirmation's arrival time is never taken for the call. A refused line, like an admitted one, sets its opportunity's model state to done, so the daily model step does not read the same opportunity every night. OutcomeAdmissionTests and OutcomeStoreTests hold them.

The rows that prove a call went ahead are often not linked: a confirmation or a thank-you on the call's day, at a company with more than one open application, meets no linking rule. From this version the check reads, beside the linked rows, any row whose Person cell names someone a linked row names (the recruiter who booked the call), dated after the notice and on the call's day or the two after, with no ending wording. Rows about other people at the same company still do not count. OutcomeAdmissionTests holds both cases.

Addendum, 2026-11-30 (1.0.5.214): a quiet hour skips the refresh

The first live tick after the backfill came "unchanged" and still took 50 seconds, most of it reading the views (the coverage view reads the tracker's SQL copy whole) to find that nothing had changed. On a Function past its free grant that is about 25 GB-s an hour for nothing. From this version the hourly tick redraws the tabs and the stats file only when its plan, worklist or ingest changed something, and at the first tick after midnight Central, so the headline's six-month window and the refresh date still roll every day. The route's step=refresh is unchanged. OutcomeTabsTests holds the rule.

Addendum, 2026-12-02 (1.0.5.259): the paired-touch tag, derived and never set

What stopped being true: that an opportunity says nothing about how its application was followed. RULE 87 tags every application with its MATCH score and tier and with OutreachArm, "applied plus manager message" or "applied only", so the numbers can show what a same-day message to the poster is worth.

From this version OutreachArms.Derive is the one rule that sets the arm: applied_plus_manager only when a tracker row carries | PAIRED: for the application's own posting, reads as a verified send (never UNVERIFIED, a draft, a NOT SENT record or a shadow), for an invite was seen Pending on the sent page, and is dated the same Central day; a later day's touch sets PairedLate and leaves applied_only. A tier 1 application's fifth business day is BumpDue, a record only. jobhunt.Opportunity's schema gains MatchScore, MatchTier, OutreachArm, PairedAt, PairedTrackerCount, PairedLate and BumpDue, with a CHECK that refuses applied_plus_manager without PairedAt and PairedTrackerCount. The columns are published to the database and written by the outcomes pass in a later version, as this record's first columns were. OutreachArmsTests hold the rule.

Addendum, 2026-12-02 (1.0.5.261): the paired-touch columns go live

What stopped being true: that the tag's columns wait for a later version. They were published on 2 December at 21:30 Central as a guarded ALTER (a what-if first, then only the seven columns and three CHECKs, read back as id-jobhunt-ss; the sqlproj now lists them after UpdatedAt, where the ALTER put them, so a later what-if holds no table rebuild).

From this version the outcomes pass writes them. For every opportunity with an application row it runs OutreachArms.Derive and writes MatchScore, MatchTier, OutreachArm, PairedAt, PairedTrackerCount, PairedLate and BumpDue through the same keyed MERGE; an opportunity with no application keeps a null arm. The tag is read once when it has none, and again each pass for eight days after the application, since the paired touch and the campaign's email follow it. A campaign email counts as a paired touch the way a tracker row does: a real send (Shadow = 0, Touch 1, never bounced) to a lead whose AppliedCount is the application's Count, on the application's Central day, once the records run's own "CAMPAIGN EMAIL SENT" row for it (found by the email's tagged code) gives the touch its Count; a later day's email is PairedLate. The one read outside the outcomes tables is OutreachSql, which only selects. The Opportunities tab ends with seven columns, "applied plus manager message" or "applied only" in the arm's, and the table is read for them through a join on the view's key, so the view is unchanged. OutreachTagPassTests hold it on mocks.

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 tracker's SQL copy is the CSV byte for byte: the file is cut at CRLFs outside quotes and put back identical, the mirror writes only the rows whose hash changed, and a rebuild from the copy is compared with the CSV, which stays the master; the job hunt's outcomes sit beside it and never write it: an opportunity is a company and a requisition, else a company, a role and a month, a tracker row is linked to one by its Count alone and never by a bare mention, a withdrawal by Steve, a generic rejection, a closed-silent row and 45 quiet days close one by rule, code never writes a pull or a stated reason from the tracker's text, a model's reason is admitted only with its quote found in the evidence it names, and a pull 72 hours or less before its booked call is last minute, one constant in the Domain and one line in the view TrackerSqlTests, OutcomeGroupingTests, OutcomeRulesTests, OutcomeSqlTests, OutcomeAdmissionTests, OutcomePipelineTests, OutcomeStoreTests, OutcomeEdgeTests, OutcomeShareTests, OutcomeReaderTableTests, OutcomeTabsTests, GoogleOutcomeTabsTests, OutcomeStatsFileTests, OutcomeFileShapeTests, OutcomeBucketTests 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