Skip to content

ADR: A record with no address

ADR: A record with no address

Status
accepted
Date
2026-09-04

Fifty-six records, and no way to send anybody one of them.

In plain words

Every decision record has its own web address, so one can be sent as a link or bookmarked, the same as every other page on the site.

What that is worth: a reviewer opens the exact record they were sent, and the organization's decisions can be cited in a ticket or an interview with one link.

Context

This project's argument is its decision records. They are what a reviewer is pointed at, they are what the README leads with, and there are enough of them that the sidebar gives them a numbered index of their own.

Until now, the only way to reach one was: open the site, find the Decision Records group, expand it, scroll, click. That is fine for somebody browsing and useless for every other way a record actually gets read:

  • "The lockout reasoning is in ADR-050" in an interview, with no link to send.
  • A record cited from another record, from the README, or from a commit message.
  • A tab kept open on a record, reloaded, landing back on the inventory.
  • Anything shared in a message, which is how a portfolio actually travels.

Every other view here already had an address. ?vehicle={id} opens a detail page, ?view=admin and ?view=account open theirs, and the filters and the sort are in the query string, which is what made the sitemap possible in the first place. The documents were the exception, and only because the dialog that shows them happens to be owned by the sidebar rather than by the page.

Decision

?doc={slug}, and the slug is the one the API already serves the document at.

The slug is derived, not written twice. docSlug reads it off the entry's own /api/docs/{slug} URL, so a document cannot become linkable under a name the API does not answer to. A .NET test already holds the menu's slugs and the catalogue's to each other, which means the address in the browser and the file on disk are the same list checked in three places.

An address that names nothing opens nothing. ?doc=not-a-record lands on the inventory rather than on an error. A link that has gone stale should not greet a reader with a failure; it should show them the thing the link was attached to.

Opening pushes, closing goes back. Opening a record pushes a history entry, exactly as opening a vehicle does, so the browser's Back button closes it. And because the dialog can also be closed with Escape, the X, or the backdrop, closing checks whether we pushed the entry that opened it: if so it goes back, so Back and Escape agree and the history stays clean; if not, which is what a visitor arriving on the link gets, it swaps the parameter out in place rather than navigating them off the site.

The state moved up to App. The dialog used to own which record was showing, which was right while the only way to open or close one was the dialog itself. An address changes that: the browser can now close a record without the dialog being touched, so the dialog had to learn to follow the state instead of being it. That is one effect in the dialog, closing itself when there is no record, and it is the whole cost of the move.

Alternatives

A path, /docs/adr-lockout. Nicer to read and it needs the origin to serve index.html for a path it does not know, which is a rewrite rule in the edge and in the container and a thing to get wrong at deploy time. Every other view here is a parameter; this one matching them is worth more than a prettier URL.

Link straight at the API, /api/docs/adr-lockout. That already works and returns raw markdown. It is the right link for a machine and the wrong one for a person, who gets a wall of asterisks instead of the site.

A separate page per record. ADR-020 did exactly that for diagrams, because a diagram wants the whole viewport and its own zoom. A record is text in a dialog over the page that sent you to it, and it is one Escape from being back where you were.

Consequences

  • Every record has a link that can be pasted anywhere, and the link survives a reload, a share, and somebody else's browser.
  • Back closes a record. So does Escape. They no longer disagree.
  • A stale link lands on the inventory rather than an error.
  • The sidebar no longer owns which document is showing, which makes it one fewer place where the address bar and the page can drift apart.
  • The record says it has a link. Addresses shipped first and nothing on the page mentioned them, which is a feature nobody has: the dialog's header now carries a Copy link button beside Close, and when the browser refuses the clipboard, on an insecure origin or a denied permission, the label says the link is in the address bar, which it is.

The slug in both directions, read from this build:

/**
 * The slug in a document's API URL, which is also the name it takes in the
 * address bar. Derived from the one URL rather than written a second time, so
 * a record cannot become linkable under a name the API does not serve.
 */
export function docSlug(key: DocKey): string {
  return DOCS[key].url.slice('/api/docs/'.length);
}

const KEY_BY_SLUG: Record<string, DocKey> = Object.fromEntries(
  (Object.keys(DOCS) as DocKey[]).map((key) => [docSlug(key), key])
);

/**
 * The document a `?doc=` value names, or null when it names none. An address
 * that matches nothing opens nothing: a stale link should land on the
 * inventory, not on an error.
 */
export function docKeyForSlug(slug: string | null): DocKey | null {
  return slug === null ? null : (KEY_BY_SLUG[slug] ?? null);
}

Live from src/library/addresses.ts, region doc-addresses, read from this build at 99df7a8.

Where it sits

Only the front end moves here: docSlug in src/library/addresses.ts reads the slug off the API's own address, useAddressBar and useNavigation in src/app/hooks hold which record is open, and DocDialog follows that state. Single responsibility, one reason to change per file, is why the state left the dialog, since the dialog now only shows a record and the hooks decide which one the address names. The cost was one effect in DocDialog that closes it when the address names nothing, plus a history check so Back and Escape agree. A site that needed path-style addresses such as /docs/adr-lockout would have to add rewrite rules at the edge and in the container, and that would change the choice.

Files

Enforced by

Not machine-checked. Held by review.

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