Skip to content

ADR: The Decision Records index

ADR: The Decision Records index

Status
accepted
Date
2026-09-03
Shipped as
1.0.0.39

Steve asked for a new tab for the decision records.

In plain words

This page puts every decision record in one sidebar section (the Decision Records index), in the order the decisions were made and numbered to match the file on disk. The section starts closed, using the browser's own open and close element (details).

What that is worth: a developer reaches any record in two clicks and can name it by number, and the organization's decisions can be counted at a glance instead of across four sections.

Context

The records were filed by topic, which was the right answer at eight of them and the wrong one at twenty-seven. ADR: App Architecture section had grouped them under the thing each one decided: hosting decisions under Hosting, pipeline decisions under CI/CD, and everything else under Best Practices. Everything else turned out to be most of them.

By last night Best Practices was eighteen rows deep, seventeen of which were records, and the section had stopped being a menu. There was also no way to answer "how many decisions are written down, and which one is number twelve" without reading four sections and counting.

Decision

One section, every record, in the order they were decided. The four topic sections keep their overviews and nothing else. Hosting is now two rows.

Numbered to match the file. ADR-012 in the sidebar is docs/decisions/ADR-012-changelog.md on disk. The number is a separate element beside the label rather than part of it, which keeps the button's accessible name exactly the label a reader hears and a test clicks.

Collapsed by default, as a native details. This was not the first version. The first version had the section always open, and the screenshot of it is why this paragraph exists: twenty-seven rows at the bottom of the rail put the heading right on the fold above the pinned footer, so the new tab read as empty until you scrolled past it. An index of twenty-seven is a disclosure.

details and summary rather than state and a button, because the open and closed semantics, the keyboard handling, and the screen-reader announcement all come from the element. There is nothing left to get wrong, and it is one fewer piece of state.

In the code

The section, and its order (src/library/sections.ts; the numbers are in src/library/records.ts):

/**
 * Every decision record, in the order they were decided, numbered to match the file
 * each one serves: a section of its own, because ninety rows under the topic sections
 * would be a wall. Every section in the sidebar is a closed details (SideNav.tsx).
 * Read from the records themselves in number order, so a new record is in the menu,
 * and in the landing page's count, the moment it is in records.ts.
 */
records: {
  label: 'Decision Records',
  items: (Object.entries(RECORDS) as [DocKey, { number: string }][])
    .sort(([, a], [, b]) => a.number.localeCompare(b.number))
    .map(([key]) => ({ key })),
},

Live from src/library/sections.ts, region records-menu, read from this build at 99df7a8.

One shell for both kinds of section (src/components/layout/SideNav/SideNav.tsx):

/**
 * A sidebar section: a native `details`, closed until somebody asks for it.
 *
 * Closed by default turns the sidebar into a table of contents: the section
 * headings, and the one you want is one click away, rather than a rail that
 * arrives holding about a hundred rows with the reader's own section somewhere
 * inside them. The keyboard and screen-reader behaviour comes from the element
 * rather than from a reimplementation of it, which is why this is a `details`
 * and not a button and a piece of state.
 *
 * The icons-only rail is the exception. There are no headings on that rail:
 * the rows are icons and the words are hidden, so a closed section would be a
 * triangle with nothing to read and nothing to aim at. It keeps the rows
 * (ADR: The sidebar, the addendum on closed sections).
 *
 * onOpen runs each time the section opens: the Decision Records index reads
 * its marks then, so the first load never carries them (ADR-029).
 */
export function RailSectionShell({
  label,
  iconsOnly,
  onOpen,
  children,
}: {
  label: string;
  iconsOnly: boolean;
  onOpen?: () => void;
  children: ReactNode;
}) {
  if (iconsOnly) {
    return (
      <section className={styles.section}>
        <h2 className={styles.srOnly}>{label}</h2>
        {children}
      </section>
    );
  }
  return (
    <details
      className={styles.section}
      onToggle={(event) => {
        if (event.currentTarget.open) {
          event.currentTarget.scrollIntoView({ block: 'nearest' });
          onOpen?.();
        }
      }}
    >
      <summary className={styles.sectionToggle}>
        {/* The label stays a heading inside the summary, which HTML allows and
            which keeps the section names in the document outline where a
            screen reader's heading list finds them; the summary is what makes
            it a disclosure. */}
        <h2 className={styles.sectionHeading}>{label}</h2>
      </summary>
      {children}
    </details>
  );
}

Live from src/components/layout/RailSectionShell/RailSectionShell.tsx, region section-shell, read from this build at 99df7a8.

Consequences

  • The rail is short again. Four overviews, an index, the changelog, About.
  • Six browser tests changed, because they used to click a record that was always visible and now open the index first. That is the interaction a reader performs, so the tests are closer to true than they were.
  • A record is now reachable in two clicks from anywhere and one from the index, and the numbers make it possible to say "read 023 and 027" and be understood.
  • The topic grouping is gone as navigation. It survives where it always mattered, in each record's own Files section and in the overviews that link them.
  • Adding a record is now three lines in one place instead of a decision about which section it belongs to.

Where it sits

This sits in the front end only: the record order is data in src/library/sections.ts and records.ts, and RailSectionShell draws each sidebar section as a native details element. Open/closed fits it, meaning new behaviour arrives by adding code instead of editing a core class, because a new record is three lines of data and the shell does not change. The cost was six browser tests rewritten to open the index first, and the topic grouping is gone as navigation. If the index grew into the hundreds, a search box or a split by year would serve a reader better than one long disclosure.

Files

Addendum, 2026-09-09: what is not a record

The SQL Server and Cosmos DB comparison was first filed as a seventieth record and moved out the same day, and the rule behind the move is worth writing down because the index had nothing that enforced it. A decision record holds a decision: something was chosen, something else was declined, and the record says why and what it costs. A page that lays decisions already made side by side, however much it draws on the records, decides nothing, and numbering it would make the index claim a decision that was never made. The comparison is a document, docs/sql-vs-cosmos/SQL-VS-COSMOS.md, with a section of its own at the top of the sidebar (ADR: The sidebar, addendum); the records it cites stay where they were, and the count is sixty-nine. The test that holds the index is unchanged, because it counts files, and the guard for this is the reader: before a new file gets a number, ask what it decided.

Addendum, 2026-10-06 (1.0.3.84): the records have a folder

The records moved from the root of docs/ into docs/decisions/, keeping their numbers and their file names, as part of giving every sidebar section a folder (ADR: The sidebar, the addendum on the folders). The index is unchanged: it reads the catalogue, the catalogue names each record by its new path, and the slugs are the same. The tests that count records and check their numbers run without a gap now read docs/decisions/, and DocsFolderTests fails if a record is written anywhere else.

Addendum, 2026-10-07 (1.0.3.95): the section reads its rows from the records

The section listed every record by hand, one row a record, and the list had grown to 95 rows in a file the 300-line rule holds; the ninety-fifth record took src/library/sections.ts to 301 lines and the gate stopped it. The rows are now read from the records themselves and sorted by number, so a new record is in the sidebar, and in the landing page's count, the moment it is in its run of records, and sections.ts no longer grows by a line a record. sections.test.ts holds that every record is listed once and in number order, and DocsFolderTests reads the runs of records for the section each record is offered under. Where a change goes, from now on, for a new record: the markdown, its slug in DocumentationCatalog.cs, and its entry in the run of records it falls in.

Addendum, 2026-11-20 (1.0.5.124): the marks, which records a test holds

What stopped being true: that the index can say only a record's number and title. Since 1.0.5.85 every record ends with what enforces it, built from ADR-075's table when the record is opened, and a reader who wanted to know which decisions a test holds had to open them one at a time.

What it changes: each row in the index ends with a mark, a filled dot where a rule of the rulebook cites the record and so a test holds it on every release, a ring where no rule does and review holds it, and a key above the rows says what the two shapes mean and how many records each holds. The marks are never typed: /api/docs/enforced counts, for every record, the rules QualityCounts.RulesCiting finds, the same reading the record's own section is built from, once a process. The section asks for them the first time it is opened, so the first load carries nothing more, and a read that fails leaves the rows as they were. The mark's words are the row's description, never part of its name, so the button is still named by its label; on the icons-only rail there are no marks, because there are no words to sit beside.

What holds it: EnforcedByTests (every record's mark counts exactly the rules its section lists), DocumentationCatalogTests (the route answers every record by number, with five minutes of cache), enforced.test.ts (who holds a record, its words, the key's counts, and an API that does not answer), and records.spec.ts (the marks and the key arrive when the index is opened, inside the rail at every width, and leave each row's name as it was).

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
Record numbers run from one with no gap, and every record the sidebar offers has a file RecordLinksTests 14 of 14 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