Skip to content

Start here

Start here

This page is for a developer who has just been handed this repository and has an hour. It says what to run, what to read, where a change goes and what the gate will ask of it. Everything here is true of the build you are reading it in, because it is served from inside the running app.

In plain words

This page gets a developer new to this code running in two commands and reading in the right order. It also says where each kind of change goes and what the tests that run before every release (the gate) ask of it.

Why it matters: a developer can make a first change within the hour without asking anyone where it goes, and the organization can hand this repository to a new hire with no walkthrough.

Run it

npm install
npm start          # the .NET API and the React app together; opens the browser

That is the whole setup. There is no database to install: with no connection string the API writes to a SQLite file in your temp folder and deletes it on shutdown, and the catalogue is read from JSON files in data/, so a fresh clone serves 100,000 vehicles on the first run.

Three more commands, one for each suite the ship's gate runs (the gate adds a store filter and runs xUnit once per store):

npm test           # Vitest, the presentation logic
npm run test:api   # xUnit on SQLite; the eight live Cosmos DB tests run on the build machine
npx playwright test  # the browser suite, which starts both servers itself

The shape, in one minute

The back end is an onion and its dependencies point inward only. TheYard.Data holds records with no behaviour; TheYard.Domain holds the rules; TheYard.Application holds the use cases and the ports they read through; TheYard.Infrastructure and TheYard.Infrastructure.Cosmos implement those ports over Azure SQL Database, SQLite and Azure Cosmos DB; TheYard.Api is the host, with its handlers in Endpoints/ and the composition root in Composition/. OnionTests fails the gate when a dependency points outward (ADR-088, Onion and SOLID). One process serves both stores and The Shed: the name a request arrives on picks the store, theyard for Azure SQL Database and theyard-cosmos for Azure Cosmos DB, an X-Yard-Store header overrides it, and theshed reaches The Shed's own application inside the same process. Hosting, the section "How a request gets answered", follows one request from the address bar to the code that answers it.

The front end keeps the same discipline: components use hooks use lib, and src/lib imports nothing from React, which is what lets the arithmetic be tested without a browser.

Beside the two, render/ is the rendering service: a small Node program that draws any page a visitor can link to, with its data in the HTML, by reading the API like any other client. It is the front end's own code drawn somewhere else, with about 300 lines of its own, and the API does not know it exists (ADR-096, A rendering service beside the API). npm start runs without it; the browser draws every page then, as it did before the service.

The five rules that will bite you first

  1. Derive, do not store. Auction windows come from the item id by hash, status from the window and the clock. Nothing schedule-related is persisted.
  2. The server owns every derived fact, and the clock. Never re-implement auction maths in TypeScript. An earlier version did it on both sides and drifted on a daylight-saving change.
  3. The wire is snake_case and matches the dataset exactly. No mapping layer.
  4. Empty is valid, null is the error. A collection is never null.
  5. Money is whole dollars as int; every instant is milliseconds since the epoch as long, UTC.

Where a change goes

  • A rule about bidding goes in TheYard.Domain/Shared/Auction/BidRules.cs and nowhere else.
  • An endpoint is a route in its slice under api/TheYard.Api/Features/ (ADR: The onion cut into vertical slices), a call to its one handler in TheYard.Application (a query or a command, ADR-115), and a result. No business logic in TheYard.Api.
  • Presentation arithmetic goes in src/lib with a test beside it; a component reads it.
  • Anything a page needs read before it is drawn on the server goes in render/loaders.ts, and nothing the server draws may differ from the browser's first draw; src/app/drawServer.test.ts draws every view with no browser, and tests/e2e/drawn.spec.ts takes each one over in Chrome and fails on a hydration error.
  • A colour goes in src/styles/colors.css, a space or a size in sizes.css, a font size or weight in typography.css, a shadow, blur or opacity in effects.css. A raw hex in a component fails the style test.
  • A decision that someone could reasonably disagree with goes in docs/decisions/ADR-*.md, as a record with what was considered and what it cost. The Decision Records section of this site is that folder.

The loaders, read from this build, because they are the one file on that list a new developer has not met before: one read per view, all at once, under one deadline, and a read that misses it is left to the browser.

/**
 * Everything an address needs drawn, read at once. The account and the build
 * go on every page (the rail and the footer show them); the list and its
 * filters on any address that opens the inventory, which a vehicle's does too,
 * because the vehicle draws over the list; the vehicle on ?vehicle=; the
 * document, rendered here with the same code the browser uses, on ?doc=.
 * Admin and the account page draw in the browser behind the frame drawn here; the recommendations page is
 * drawn from its one read, About Steven from three (the author document laid out, the recommendations for its voices
 * and the tests summary for its live tile), and the review route's first screen from three: the recommendations for its quote, the
 * tests summary for its live tile and the pulse for its live panels, so none moves when the browser takes the page over.
 * @param search the address's query, without its "?"
 * @param cookie the visitor's Cookie header, or null
 * @param apiOrigin the API this page is read from
 * @param deadlineMs how long the reads may take together before the page is drawn without the rest
 * @param store the site's store, named on every read, or null to take the API's default
 */
export async function loadFirst(
  search: string,
  cookie: string | null,
  apiOrigin: string,
  deadlineMs: number,
  read: typeof fetch = fetch,
  store: string | null = null
): Promise<FirstLoad> {
  const signal = AbortSignal.timeout(deadlineMs);
  const get = readerFor(apiOrigin, cookie, read, store);
  const first = readFirstAddress(search);
  const listingQuery = vehicleQueryParams(first.filters, first.sort).toString();
  const needsListing = first.inventory || first.vehicleId !== null;
  const doc = first.docKey ? DOCS[first.docKey] : null;
  // The bare address is the landing page, whose band draws the first screen's reading: read here, a crawler and a
  // link preview see the figures rather than the word the band shows before its first read.
  const landing =
    !needsListing &&
    !doc &&
    !first.admin &&
    !first.account &&
    !first.blog &&
    !first.review &&
    !first.recommendations &&
    !first.about;

  // The blog is drawn whole here, its list and the post it shows in full, so its first screen is in the page itself.
  // A post the address names is read beside the list; only the list's lead post has to wait for the list.
  const blogFirst = async (): Promise<FirstLoad['blog']> => {
    const postOf = (slug: string) =>
      inTime(get<BlogPost & { body?: string }>(fetchedFor(slug), signal));
    const named = first.blogPost ? postOf(first.blogPost) : null;
    const list = await inTime(get<BlogList>(listPath(filterFromSearch(search)), signal));
    const lead = list?.cards[0]?.slug ?? null;
    const post = named ? await named : lead ? await postOf(lead) : null;
    // The page draws the body the API drew on save; the Markdown it was drawn from rides along for the save
    // workflow's read-back and is left out here, a third of the post's bytes.
    if (post) delete post.body;
    return { list, post };
  };

  const [
    account,
    build,
    page,
    facets,
    vehicle,
    markdown,
    pulse,
    recommendations,
    tests,
    blog,
    author,
    lot,
  ] = await Promise.all([
    // Nobody signed in sends no cookie, and needs no read to say so.
    cookie ? inTime(get<AccountWire>('/api/auth/me', signal)) : Promise.resolve(null),
    inTime(get<{ version: string; commit: string }>('/api/version', signal)),
    needsListing
      ? inTime(get<VehiclePage>(`/api/vehicles${listingQuery ? `?${listingQuery}` : ''}`, signal))
      : Promise.resolve(null),
    needsListing ? inTime(get<InventoryFacets>('/api/facets', signal)) : Promise.resolve(null),
    first.vehicleId
      ? inTime(get<Vehicle>(`/api/vehicles/${encodeURIComponent(first.vehicleId)}`, signal))
      : Promise.resolve(null),
    doc ? inTime(get<string>(doc.url, signal)) : Promise.resolve(null),
    // The review route's two live panels read the same answer, so they are drawn with figures, never hidden at first.
    landing || first.review ? inTime(get<unknown>(PULSE_URL, signal)) : Promise.resolve(null),
    // The recommendations page is drawn whole from the answer, so a crawler reads every name and the count;
    // the review route's first screen quotes one of them and prints the count.
    first.recommendations || first.review || first.about
      ? inTime(get<unknown>(RECOMMENDATIONS_URL, signal))
      : Promise.resolve(null),
    landing || first.review || first.about
      ? inTime(get<unknown>(TESTS_SUMMARY_URL, signal))
      : Promise.resolve(null),
    // About's Why I write shows the newest post from its first paint, so the list's first page rides along (ADR-142).
    first.blog
      ? blogFirst()
      : first.about
        ? inTime(get<BlogList>(listPath(filterFromSearch('')), signal)).then((list) =>
            list ? { list, post: null } : undefined
          )
        : Promise.resolve(undefined),
    first.about ? inTime(get<string>(DOCS.author.url, signal)) : Promise.resolve(null),
    // The review route's third question shows a live lot from its first paint, never an empty tile (ADR-142).
    first.review ? inTime(get<unknown>(LOT_URL, signal)) : Promise.resolve(null),
  ]);

  const signedIn: Account = account ? toAccount(account) : SIGNED_OUT;
  return {
    search,
    nowMs: Date.now(),
    account: signedIn,
    build: build ? { version: String(build.version), commit: String(build.commit) } : null,
    listing: page && facets ? { page, facets } : null,
    vehicle,
    doc: first.docKey && markdown ? await renderedDoc(first.docKey, markdown) : null,
    pulse,
    recommendations,
    ...(landing || first.review || first.about ? { tests } : {}),
    ...(first.review ? { lot } : {}),
    ...(blog ? { blog } : {}),
    ...(first.about ? { author: author ? await authorLaidOut(author) : null } : {}),
  };
}

/** The author document as the About page places it: rendered, then cut into its laid-out parts (AboutPage.tsx). */
async function authorLaidOut(markdown: string): Promise<FirstLoad['author']> {
  const { authorParts } = await import('../src/lib/author');
  return authorParts(await renderDocument(markdown));
}

/** A document as its window shows it: rendered, then laid out (DocDialog.tsx). */
async function renderedDoc(key: string, markdown: string): Promise<FirstLoad['doc']> {
  const rendered = await renderDocument(markdown);
  return {
    key,
    html: layoutDocument(
      rendered,
      DOCS[key as keyof typeof DOCS]?.title,
      DOCS[key as keyof typeof DOCS]?.wide,
      DOCS[key as keyof typeof DOCS]?.cards
    ),
  };
}

Live from render/loaders.ts, region loaders, read from this build at 99df7a8.

What the gate asks

Every version runs one gate before anything rolls: Prettier, oxlint, TypeScript, the SQL project, Vitest, xUnit on SQLite, the live Cosmos DB tests, xUnit on Cosmos DB, the browser suite on both stores, and The Shed's own xUnit and Node tests. A build warning is red. A number quoted in a document is read back against the build, so a stale count in prose fails the suite rather than surviving in the page. The evidence strip on the landing page is those counts, read from the file the gate wrote.

Reading order for the rest of the hour

  1. Project README, for what the thing is and how it is put together.
  2. ADR: The rules a change has to pass, which lists each rule beside the test that enforces it.
  3. App Architecture and Projects, for the onion and the ten projects.
  4. Hosting and What is watched, for how a request reaches the code and what watches it.
  5. Built with AI, for how this repository was actually written, and what was checked by hand.
  6. Any decision record whose title sounds like the change you are about to make.

If a document and the code disagree, the code is right and the document is a bug. Fix it in the same commit.

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