Skip to content

ADR: App Architecture section

ADR: An App Architecture section in the sidebar

Status
accepted
Date
2026-09-02
Shipped as
1.0.0.28

Steve asked for everything on the UI to be grouped and well organized, with a new header, App Architecture, for the code records.

In plain words

This page moved every document about how the application is built into one sidebar section of its own (App Architecture), placed first. Decisions about how the work is done stay in their own section, so each section holds one kind of thing.

What that is worth: a developer asking how this is built finds the answer in the first section instead of split across two, and the organization's newest writing is no longer hidden at the bottom of a long menu.

Context

The sidebar grew by accretion. Best Practices ended the day holding fifteen entries: the practices overview, the records about documentation, observability, the phone header, the changelog, the sidebar itself, live samples, cache headers, the palette, the staff review, diagram pages, and then the three records that walk the code for a new developer. Two different kinds of thing were filed together: decisions about how the project is run, and explanations of how the application is built. About held the README with the data flow and the project structure. All three are the second kind, filed under a heading that suggests the first.

A visitor looking for "how is this built" had to know that the answer was split across About and the bottom of Best Practices. That is a grouping problem. It hid the newest and most useful writing in the repository.

Two documents the README promised at the start of the build were also still missing: a written architecture (the onion, the wire contract, the derive-do-not-store principle) and a written style (naming, layering, and comments that explain why and how, never what), enforced by an .editorconfig rather than by memory. There was no section they belonged to either.

Decision

A section of its own, named for what a visitor is looking for. App Architecture sits first in the sidebar, above Hosting, and holds everything about how the application is built:

  • Architecture overview, the new docs/app-architecture/ARCHITECTURE.md: the layers and which way they point, the seven rules that keep them, a table of where a change goes, and what is deliberately absent.
  • Coding and commenting style, the new docs/app-architecture/STYLE.md: naming, layering, the why-and-how comment rule with an example of a comment that earns its line, the test rules, and the formatting the .editorconfig enforces.
  • Data flow and Project structure, moved out of About.
  • The three records that walk the code: Program.cs, the React configuration, and the tests.

About holds the README. It is the introduction to the project, not the place to file its internals. The resume link stays pinned below the sections, where it already was.

Best Practices keeps the decisions about how the work is done: versioning, documentation and testing, observability, error handling, the phone header, the changelog, the sidebar, live samples, cache headers, the palette, the staff review, diagram pages, and this record. Every entry is about practice, none about the code's shape.

.editorconfig does the mechanical half. Indentation, line endings, using order, var usage, braces, unused locals: a tool applies those on every save and the compiler warns on them, so review spends its attention on the half a tool cannot check.

In the code

The one record of every document the sidebar can open, and the section order (src/library/sections.ts):

architecture: {
  label: 'App Architecture',
  items: [
    { key: 'startHere' },
    { key: 'vscode' },
    { key: 'architecture' },
    { key: 'cleanArchitecture', sub: true },
    { key: 'solid', sub: true },
    { key: 'style', sub: true },
    { key: 'dataflow', sub: true },
    { key: 'projects', sub: true },
  ],
},

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

/** Section order, top to bottom: the sidebar and the landing grid both follow it. */
export const MENU_ORDER: readonly MenuVariant[] = SITE_MAP.sections.map((section) => section.menu);

Live from src/lib/siteMap.ts, region MENU_ORDER, read from this build at 99df7a8.

The mechanical style rules (.editorconfig):

# The mechanical half of docs/app-architecture/STYLE.md, applied by the editor and the
# compiler instead of by review. Rules a tool cannot check (naming that
# reads well, comments that say why) stay in that document.
root = true

[*]
charset = utf-8
# LF, which is what git has stored for every file here since the first commit.
# .gitattributes is what makes that true in the working tree as well, on every
# machine rather than only on the ones whose core.autocrlf agrees (ADR-028).
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

# The dataset and the published PDFs are written by other tools; leave them alone.
[*.{json,pdf,png,jpg,svg}]
trim_trailing_whitespace = false

[*.md]
# Two trailing spaces are a hard line break in markdown.
trim_trailing_whitespace = false
max_line_length = 100

[*.cs]
indent_size = 4
max_line_length = 120

# Usings inside the namespace-free top of the file, System first, no unused ones.
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false
dotnet_diagnostic.IDE0005.severity = warning

# #region ca1852
# Sealed by default, the practice written up on the Best Practices page
# docs/best-practices/SEALED.md. CA1852 names an internal class that nothing derives from and
# that could be sealed. It is a warning here, and the gate reads any warning as
# red, so the analyzer half of the practice is held by the build rather than by
# review; SealedByDefaultTests holds the public half.
dotnet_diagnostic.CA1852.severity = warning
# #endregion ca1852

# var only where the type is obvious from the right-hand side.
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = false:suggestion

# Expression bodies for one-liners, blocks for anything with a decision in it.
csharp_style_expression_bodied_methods = when_on_single_line:suggestion
csharp_style_expression_bodied_properties = true:suggestion

# Braces always: a single-line if body without them is how a second statement gets lost.
csharp_prefer_braces = true:warning

# Modern C# the codebase already uses.
csharp_style_prefer_primary_constructors = true:suggestion
csharp_style_namespace_declarations = file_scoped:suggestion
csharp_prefer_simple_using_statement = true:suggestion
csharp_style_prefer_pattern_matching = true:suggestion

[*.{ts,tsx,mjs,js}]
indent_size = 2
max_line_length = 100
quote_type = single

[*.{yml,yaml}]
indent_size = 2

[*.css]
indent_size = 2

Live from .editorconfig, region *, read from this build at 99df7a8.

Consequences

  • The sidebar's first section now answers the question most visitors arrive with, and each section holds one kind of thing.
  • Three end-to-end tests name the sections; all three were updated, and two of them assert the new section renders in the rail and in the phone drawer.
  • The rail is taller by one section. At 1024 pixels and up it scrolls inside itself, which it already did; on a phone the drawer scrolls.
  • Moving a record between sections does not change its address. The slug in DocumentationCatalog.cs is the identity; the menu is presentation only, and the cross-check test still holds the two lists together (ADR: The staff review).

Where it sits

No ring: regrouping the sidebar is a documentation decision whose only code is data in src/library/sections.ts, so the onion and SOLID do not apply to it.

Files

Addendum, 2026-09-29: UI architecture, from App Architecture

The look has an architecture page of its own, UI architecture in the Style section: the four design token files, the base and panel sheets, the component sheets, the site map and the document layout, each reading only the layers below it. App Architecture stays about the API, the stores and the data, and links to it rather than repeating it.

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