Skip to content

ADR: Code that reads like code

ADR: Code that reads like code

Status
accepted
Date
2026-09-15
Shipped as
1.0.0.133

In plain words

This page decides how the code samples on the site's pages get coloured by meaning (syntax highlighting): one small library (highlight.js) carrying only the languages the pages use, drawn in the site's own palette, with a test holding every colour to a readable contrast.

What that is worth: a developer reads a sample the way an editor would show it, with keywords told apart from comments. The organization shows code worth reading on its public pages without slowing the inventory page, because the renderer arrives with the first document.

The problem, measured before it was solved

Every document this site serves renders through marked, which hands a fenced block back as plain text. The result is that a hundred and eighty C# samples across the records, the architecture pages and the Best Practices section were the same color as the sentence above them, on a site whose whole argument is that the code is worth reading.

The languages were counted rather than guessed, across all eighty-eight documents the catalog serves: 179 C# blocks (32 written by hand, 147 expanded from the build), 59 TypeScript and TSX, 16 YAML, 8 JSON, 7 CSS, 5 SQL, 3 Mermaid, 2 Bicep, and one each of Python, Dockerfile, TOML and HTML.

What was considered

Option What it buys What it costs
highlight.js, this site's palette Real grammars for every language above, a theme written in the site's own tokens, one runtime dependency About 45 KB gzipped in the bundle, and a palette that has to be held to AA like the rest
A tokenizer written here No dependency at all, total control C# has verbatim strings, interpolation, generics and attributes; a wrong color on a public page reads worse than no color
Shiki The same grammars a code editor uses, the best fidelity available A WebAssembly engine and grammar files over a megabyte, or a build step that pre-renders every document, against documents that render at request time
Leave it plain Nothing to maintain, no dependency, no palette risk The code stays monochrome for every reader who opens a record on a phone

Decision: highlight.js, registered for the measured languages only, themed in the site's own tokens. The dependency is the third in the whole frontend, after React and marked.

How it works

The grammars are imported one by one rather than as the whole library, so the bundle carries what the documents use and nothing else:

/**
 * The name on a fence, to the grammar that reads it. The keys are what the
 * documents write and what the live-sample expander emits from a file
 * extension, so `ts`, `tsx` and `typescript` all have to land on the same
 * grammar rather than one of them quietly falling through to plain text.
 */
const LANGUAGES = {
  bash,
  csharp,
  css,
  dockerfile,
  ini,
  javascript,
  json,
  markdown,
  plaintext,
  powershell,
  python,
  sql,
  typescript,
  xml,
  yaml,
} as const;

const ALIASES: Record<string, keyof typeof LANGUAGES> = {
  'c#': 'csharp',
  cs: 'csharp',
  html: 'xml',
  js: 'javascript',
  mjs: 'javascript',
  md: 'markdown',
  py: 'python',
  ps1: 'powershell',
  sh: 'bash',
  shell: 'bash',
  text: 'plaintext',
  toml: 'ini',
  ts: 'typescript',
  tsx: 'typescript',
  yml: 'yaml',
};

let registered = false;

function register(): void {
  if (registered) return;
  for (const [name, grammar] of Object.entries(LANGUAGES)) {
    hljs.registerLanguage(name, grammar);
  }
  registered = true;
}

Live from src/lib/highlight.ts, region languages, read from this build at 99df7a8.

A fence names a language, the name is resolved against the grammars this bundle holds, and anything unresolved is escaped and rendered as text. Bicep and Mermaid are exactly that case today: the expander still names them, no grammar reads them, and a reader sees plain code rather than an error.

/** The five characters that turn code into markup if they reach the page unescaped. */
export function escapeHtml(text: string): string {
  return text
    .replaceAll('&', '&amp;')
    .replaceAll('<', '&lt;')
    .replaceAll('>', '&gt;')
    .replaceAll('"', '&quot;')
    .replaceAll("'", '&#39;');
}

/** The grammar a fence names, or null when nothing here reads that language. */
export function grammarFor(language: string | undefined): string | null {
  const name = (language ?? '').trim().toLowerCase();
  if (!name) return null;
  const resolved = ALIASES[name] ?? name;
  register();
  return hljs.getLanguage(resolved) ? resolved : null;
}

/**
 * The code as HTML: tokenized when the language is one of ours, escaped and
 * nothing else when it is not. `ignoreIllegals` matters because a record shows
 * a region of a file rather than a whole one, and a fragment that starts
 * mid-class is not a parse error worth a blank block.
 */
export function highlight(code: string, language: string | undefined): string {
  const grammar = grammarFor(language);
  if (!grammar) return escapeHtml(code);
  return hljs.highlight(code, { language: grammar, ignoreIllegals: true }).value;
}

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

marked is handed one renderer, which is the only place a fence becomes markup:

// Every fenced block in a served document goes through the highlighter
// (ADR: Code that reads like code). marked hands back the code and the name on
// the fence; the name is checked against the grammars this bundle carries
// before it reaches a class attribute, so a fence cannot write markup of its
// own, and the highlighter escapes everything it does not tokenize. A block is
// reachable from the keyboard, like a table's scroller, because a long line
// scrolls sideways and a reader without a mouse has to be able to scroll it.
marked.use({
  renderer: {
    code({ text, lang }) {
      const name = (lang ?? '').trim().split(/\s+/)[0];
      // A `swatches` fence is not code: it is a list of tokens, drawn as a
      // sheet of swatches from the token sheet itself (ADR-016, the addendum on
      // the style section).
      if (name === 'swatches') return swatchSheet(text, tokenSheet);
      // The Style section's tiles, readouts, glossary and ribbon strip (src/library/styleBlocks.ts).
      if ((STYLE_FENCES as readonly string[]).includes(name))
        return styleBlock(name as StyleFence, text);
      // The Quality page's trends, a line a number (src/library/qualityBlocks.ts, ADR-130); the words after a
      // fence's name are its head, which draws the readouts as the dark live panel (saleshome1120).
      if ((QUALITY_FENCES as readonly string[]).includes(name))
        return qualityBlock(
          name as QualityFence,
          text,
          (lang ?? '').trim().slice(name.length).trim()
        );
      const grammar = grammarFor(name);
      const className = grammar ? `hljs language-${grammar}` : 'hljs';
      return `<pre tabindex="0"><code class="${className}">${highlight(text, name)}</code></pre>\n`;
    },
  },
});

Live from src/lib/markdown.ts, region code-renderer, read from this build at 99df7a8.

The expander names the language from the file's name, and two of the files the records show had no answer before this change: a Dockerfile has no extension and .editorconfig is nothing but one, so both rendered as plain text. LiveSamples.LanguageFor now answers for those, for TOML, Python, JavaScript, HTML and PowerShell, and a theory in LiveSamplesTests holds every one of those answers.

The palette, and why it is measured

The theme is six colors from the Urban slate family rather than a stock light theme, because a stock theme arrives from another design and sits next to this one badly.

Token Value Contrast on the code ground
--color-code-text #332f2c 11.90
--color-code-keyword #6d4a83 6.37
--color-code-type #1f5c8b 6.36
--color-code-string #8a5a3c 5.22
--color-code-comment #25663a 6.20
--color-code-number #96363b 6.52
--color-code-meta #6b5a1e 6.07

Code sits on --color-surface-muted, so that is the ground each one is measured against, and 4.5 is the floor because a keyword is normal text at 0.9em. tokens.test.ts reads the real stylesheet and holds every one of those ratios, and it holds a second thing a ratio cannot: that no two of the six are the same value and none of them is the prose color, because six colors that all clear AA and cannot be told apart is a theme that passed a test and failed a reader.

code .hljs-keyword,
code .hljs-literal,
code .hljs-selector-tag,
code .hljs-section,
code .hljs-doctag,
code .hljs-template-tag {
  color: var(--color-code-keyword);
}

code .hljs-built_in,
code .hljs-type,
code .hljs-title,
code .hljs-class,
code .hljs-name,
code .hljs-tag {
  color: var(--color-code-type);
}

code .hljs-string,
code .hljs-regexp,
code .hljs-symbol,
code .hljs-bullet,
code .hljs-quote,
code .hljs-addition {
  color: var(--color-code-string);
}

code .hljs-number,
code .hljs-deletion {
  color: var(--color-code-number);
}

code .hljs-comment {
  color: var(--color-code-comment);
  font-style: italic;
}

/* Attributes and the preprocessor: [Fact] above a test, #region in a sample. */
code .hljs-meta,
code .hljs-meta .hljs-keyword,
code .hljs-meta .hljs-string {
  color: var(--color-code-meta);
}

/* The key half of a pair: a JSON property, a YAML key, an XML attribute. */
code .hljs-attr,
code .hljs-attribute,
code .hljs-property,
code .hljs-variable,
code .hljs-params,
code .hljs-template-variable {
  color: var(--color-code-type);
}

code .hljs-emphasis {
  font-style: italic;
}

code .hljs-strong {
  font-weight: var(--weight-semibold);
}

Live from src/styles/code-highlight.css, region code-theme, read from this build at 99df7a8.

Addendum, the same afternoon: what the owner saw

The first version of this theme put comments in slate gray and left the code itself in the prose colour. Read on the live page rather than in a swatch, both were wrong. Comments are green in every editor this project's reader has ever used, and gray comments on a gray ground read as disabled text rather than as commentary. The code itself needed to be darker than the prose, because it sits on --color-surface-muted rather than on white and 6.4 against that ground reads thin at 0.9em.

So the palette gained --color-code-text at 11.9 against the code ground, comments moved to green, numbers moved off green to brick so that two token types are not one colour, and attributes moved to olive. The table above is the current set and tokens.test.ts holds every ratio in it, plus a floor of 7 for the code colour itself. The lesson, and it is the one this project keeps relearning: a palette is read on the page it ships to, not in the file it is written in.

What this does not do

  • Bicep and Mermaid have no grammar here. Both render as escaped text.
  • Nothing is highlighted on the server. The documents are still served as markdown, and a reader who fetches /api/docs/<slug> gets the same markdown they always did.
  • The diagram pages are SVG and are untouched.

Where it sits

This sits almost entirely in the front end: src/lib/highlight.ts and src/lib/markdown.ts import nothing from React, and the host Api's only part is LiveSamples.LanguageFor naming a fence's language from a file name. Single responsibility, one reason to change, holds here because markdown.ts is the one file that imports marked and the highlighter, so a change of renderer touches one file and the dialog loads it on demand. It cost about 45 KB gzipped in its own chunk and a palette that tokens.test.ts must hold to AA contrast. If the documents were rendered at build time instead of request time, Shiki's editor-grade grammars would be worth their megabyte.

Files

Addendum, 2026-09-17: the renderer arrives with the first document

Steve, 9/17: the fastest site at no extra cost. The measurement that opened that work (perflane, mentor\logs\lane0917-963-perflane-measure.log) put the whole frontend in one chunk, and marked and the highlighter with its sixteen grammars were the largest things in it after React itself. Every visitor downloaded and parsed the renderer on the inventory page, where no document is ever rendered.

The two libraries now live in src/lib/markdown.ts, the one file that imports either, and the documents dialog imports that file on demand the first time a reader opens a record. Vite turns the dynamic import into a chunk of its own, named by its hash like every other bundle file, so the inventory page's script no longer carries the renderer and a reader who opens a document fetches it once and keeps it for a year (ADR: Cache headers). The renderer's two settings, the link hook and the code renderer shown above, moved with it unchanged; the live block above reads them from their new file. markdown.test.ts holds the rendered shape end to end: a fenced block comes back highlighted under its grammar's class, a fence in a language nobody here reads is escaped, and the links are rewritten the way the dialog needs them.

The before and after are on the Performance page, measured on the live site: the bytes the inventory page's script carried, and the bytes it carries now, with the renderer's chunk beside it.

// The document and the code that renders it are asked for together, not one
// after the other: the renderer (marked and the highlighter, the two
// heaviest things the frontend carries) is a chunk of its own that the
// inventory never needs (ADR: Code that reads like code, addendum), and
// fetched one after the other its request started only once the document's
// had finished, 775 ms in. Both now start at once.
// The browser keeps each chunk for a year like every other hashed file, and
// the page fetches the renderer ahead when it is idle (src/lib/prefetch.ts).
Promise.all([
  askTheSite(DOCS[key].url).then(async (response) => {
    if (!response.ok) throw new Error(String(response.status));
    return response.text();
  }),
  import('../lib/markdown'),
])
  .then(async ([markdown, { renderDocument }]) => {
    const rendered = await renderDocument(markdown);

Live from src/library/DocDialog.tsx, region renderer-on-demand, read from this build at 99df7a8.

Addendum, 2026-09-28 (1.0.3.34): code.css is code-highlight.css

The code theme is src/styles/code-highlight.css, named for what it does (ADR-016, the addendum on the four token files). Its rules are unchanged; the six code colours it draws in are in colors.css.

Addendum, 2026-09-28 (1.0.3.35): the renderer and the Admin tab are fetched ahead

The renderer arriving with the first document had a cost the 17 September addendum did not measure: the order. Read on the live site on 28 September, opening a document fetched the markdown, and only when the markdown had arrived (775 ms in) did the renderer's chunk start (781 ms): a waterfall, the reader waiting on two trips in a row. The Admin tab and each of its cards have the same shape, a chunk fetched on the click that needs it.

  • The document and its renderer start together. The dialog asks for the document, the renderer and, for the Author page, its layout in one Promise.all, so the two trips overlap rather than follow each other. prefetch.spec.ts holds the overlap: with the document held back half a second, the renderer's request has to begin before the document's response ends.
  • Fetched ahead, when the page is idle. Once the first page has loaded and the browser is idle (requestIdleCallback, or a short timer where a browser has none), the page fetches the renderer and the Admin tab's chunk; once the Admin tab has mounted, it fetches every card's chunk in the rail the same way (src/lib/prefetch.ts). A reader whose browser asks to save data, or rates the connection as 2G, gets none of it, which prefetch.test.ts holds. The browser suite opens every page as such a reader (tests/e2e/app.ts), because the specs that hold a card fetched when it is opened, and a chunk a deploy replaced loading the page again, are about that very fetch; prefetch.spec.ts turns the prefetch back on and holds it. None of it is on the first page's critical path: it starts after the page's load event.
  • What a card waits on now. With every card's chunk already in the browser, choosing a card waits on its first data read and not on its code, so the read is not started any earlier than the card's own useRead starts it: there is no second request for the same address to race the first.

Addendum, 2026-10-30 (1.0.4.125): the rule has a body, and it is asked in two strengths

The rule that a comment says what, how and why on its own was held by one test over one area, the six onion projects and the frontend under src, and the whole job hunt's Function sat outside it. That gap is the reason the comments there had drifted: seventeen of them explained by a date or by who asked, and nothing in the build could tell. The arrears are paid in this version, but the gap is the fix.

The body is tests/rules/HistoryRule.cs, compiled into both test projects by a link the way LengthRule and SummaryRule are, so what the suite refuses and what .github/quality.py counts cannot drift into describing two different codebases. The question is asked by ProductionCommentTests, a file of its own now: the rule had grown a second area and four theories while living beside the em dash scan, which is two jobs in one file, and a file is cut at the warning and not at the cliff.

It is asked in two strengths, and the reason is in the code rather than in a preference. The site's own code has no reason to write a month of the year or the owner's first name, so there both are provenance and nothing else. The job hunt's Function reads his inbox, his calendar and his tracker, so his name there is the subject the code acts on; and its clock turns over when the clocks do, so the word November in it is the calendar. A rule strong enough for the site would have forced November clock change and Sends one email from Steve's Gmail to be rewritten into something less true, which is how a style rule starts costing more than it returns. What is provenance in both is a date, a version number, a named review, and his name beside a date or beside an ask.

A date can be the subject, and the measurement had not known that. Four of the seventeen the ratchet was counting were not history at all: a comment naming the wire format a function parses has to show it, and showing it means writing a date, so a day as `2026-10-12` and "Status: accepted, 2026-09-02, shipped as 1.0.0.21." are examples of a format. The test had always known this, by stripping backticked and quoted spans before it read a line; the scanner had not, and read one regular expression over the raw line. Both now strip, and the handful the stripper cannot reach are named one by one: a quotation that runs across two source lines, where a quote has no other half to pair with, and a month written in code rather than in prose.

A date that spells its year out is naming a fixed point, not a past. A recent date in this project's own history is written the way a person writes one, 23 Oct or 7 October, because the year is this one, so the day-and-month form counts only when no four-digit year follows it. The one date in this repository that spells its year out is 1 January 1970 UTC in The Shed, the Unix epoch, and a comment may legitimately need it.

The rule, from the build:

/// <summary>
/// One rule, one body, compiled into both test projects by a link (ADR-075, the addendum of 1.0.4.70):
/// a production comment says what, how and why on its own, so nothing in it stands in for a reason. The
/// thing that stands in for a reason is provenance: when the code was written, who asked for it, which
/// version shipped it, which review found it. A reader three months from now has none of that and needs
/// none of it; what they need is the sentence it replaced.
/// </summary>
/// <remarks>
/// <para>Two things make this rule harder than a list of forbidden words, and both are in it.</para>
/// <para>The first is that a date can be the subject rather than the history. A comment that names the
/// wire format a function parses has to show it, and showing it means writing a date, so a date inside
/// backticks or quotes is an example of a format and not a note about the past. Those spans come out
/// before the rule reads the line, and the handful the stripper cannot reach are named one by one: a
/// quotation that runs across two source lines, where a quote has no other half to pair with, and a
/// month written in code rather than in prose.</para>
/// <para>The second is that the same word is history in one part of this repository and the subject in
/// another, so the rule is asked in two strengths. The site's own code has no reason to name the person
/// who owns it or a month of the year, so there a bare month and a bare first name are provenance and
/// nothing else. The job hunt's code reads his inbox, his calendar and his tracker, and the clock in it
/// turns on when the clocks change, so there his name and the word November are what the code is about.
/// What is provenance in both is a date, a version number, a named review, and his name beside a date or
/// beside an ask.</para>
/// <para>Held to the same shapes as <c>.github/quality.py</c>'s <c>history_or_name_comments</c>, kept the
/// same deliberately: if the two disagreed, the count would be describing a different codebase from the
/// one the suite refuses to let slip.</para>
/// </remarks>
public static class HistoryRule
{
    /// <summary>
    /// Provenance in any production comment: an ISO date with its day optional, a dated slash date, a day
    /// beside a month name, the owner's name beside an ask, the owner's name within a short reach of a
    /// bare slash date, a bare slash date within a short reach of a word for an instruction, a version
    /// number, and a review named rather than described.
    /// </summary>
    /// <remarks>
    /// A day beside a month name counts only when no four-digit year follows it. A recent date in this
    /// project's own past is written the way a person writes one, "23 Oct" or "7 October", because the
    /// year is this one; a date that spells its year out is naming a fixed point that a comment may
    /// legitimately need, and the one in this repository is the Unix epoch. A bare slash date is never
    /// read alone, because "90/75" is the coverage floor and "1/2" is a half.
    /// </remarks>
    private static readonly Regex Provenance = new(
        @"\b20\d\d-\d\d(-\d\d)?\b"
        + @"|\b\d{1,2}/\d{1,2}/20\d\d\b"
        + @"|\b\d{1,2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Sept|Oct|Nov|Dec)[a-z]*\b(?! \d{4})"
        + @"|\b(Steve|he)('s)? (said|asked|named|wants|ruled|word|call)\b"
        + @"|\b(Steve|he|his)\b[^.]{0,40}?\b\d{1,2}/\d{1,2}\b"
        + @"|\b\d{1,2}/\d{1,2}\b[^.]{0,40}?\b(rule|ask|asked|said|named|wants|ruled|call)\b"
        + @"|\b1\.0\.\d+\.\d+\b"
        + @"|the review of|the staff review|the tweaks pass|the self-review",
        RegexOptions.Compiled);

    /// <summary>
    /// The month names and the owner's name on their own, which are provenance in the site's own code and
    /// the subject in the job hunt's. May is only a month beside a day, because it is also a verb.
    /// </summary>
    private static readonly Regex SiteOnly = new(
        @"\b(January|February|March|April|June|July|August|September|October|November|December)\b"
        + @"|\bMay \d|\d May\b|\bSteve\b",
        RegexOptions.Compiled);

    /// <summary>
    /// The format examples the stripper cannot reach: a quotation that runs across two source lines, so a
    /// quote cannot be paired with its other half, and a month written in code rather than in prose. The
    /// chart's axis labels, a day as the cost card writes it, the months as a reader's pattern lists them,
    /// a UTC day the chart reads, the opening line of a decision record as the document layout matches it,
    /// and the run line the share's log holds. Each is a file name and a fragment that line contains, which
    /// is narrower than a file name alone and survives the line moving.
    /// </summary>
    private static readonly (string File, string Fragment)[] FormatExamples =
    [
        ("activityChart.ts", "`2026-09-13`"),
        ("costWords.ts", "'September',"),
        ("costWords.ts", "\"30 September\""),
        ("Recommendations.cs", "September|October|November|December"),
        ("docLayout.ts", "shipped as 1.0.0.21."),
        ("dayMarks.ts", "\"Mon 5 Oct, Fri 9,"),
        ("dayMarks.ts", "Mon 12, Fri 16\""),
        ("RunLine.cs", "process:Merger outcome=success"),
    ];

    /// <summary>
    /// The part of a line that is a comment: the whole line when it opens with one, else what follows a
    /// trailing one, and nothing when the line is only code.
    /// </summary>
    /// <param name="line">The source line.</param>
    public static string CommentOf(string line)
    {
        string trimmed = line.TrimStart();
        if (trimmed.StartsWith("//", StringComparison.Ordinal) || trimmed.StartsWith('*')
            || trimmed.StartsWith("/*", StringComparison.Ordinal) || trimmed.StartsWith("{/*", StringComparison.Ordinal))
        {
            return line;
        }

        int trailing = line.IndexOf(" // ", StringComparison.Ordinal);
        return trailing >= 0 ? line[trailing..] : "";
    }

    /// <summary>A comment with its quoted and backticked examples taken out, so a format is not read as a date.</summary>
    /// <param name="comment">The comment text.</param>
    public static string Unquoted(string comment) => Regex.Replace(comment, "`[^`]*`|\"[^\"]*\"", "");

    /// <summary>
    /// Whether this line is one of the named lines whose quotation runs across two source lines, which the
    /// stripper cannot reach.
    /// </summary>
    /// <param name="path">The file's path, of which only the name is read.</param>
    /// <param name="line">The source line.</param>
    public static bool IsFormatExample(string path, string line) =>
        FormatExamples.Any(allowed =>
            Path.GetFileName(path) == allowed.File && line.Contains(allowed.Fragment, StringComparison.Ordinal));

    /// <summary>
    /// Whether a line's comment leans on provenance, asked at the strength the area deserves.
    /// </summary>
    /// <param name="path">The file's path, read for the named format examples.</param>
    /// <param name="line">The source line.</param>
    /// <param name="siteStrength">
    /// True for the site's own code, where a bare month and a bare first name are provenance too; false for
    /// the job hunt's code and the sample app, where both are the subject.
    /// </param>
    public static bool LeansOnHistory(string path, string line, bool siteStrength)
    {
        if (IsFormatExample(path, line))
        {
            return false;
        }

        string comment = Unquoted(CommentOf(line));
        return Provenance.IsMatch(comment) || (siteStrength && SiteOnly.IsMatch(comment));
    }

    /// <summary>
    /// Every line in one file that leans on provenance, as its line number counted from one the way an
    /// editor counts, and the trimmed text, so a failure names the file and the line rather than a count.
    /// </summary>
    /// <param name="path">The file's path, read for the named format examples.</param>
    /// <param name="lines">The file's lines.</param>
    /// <param name="siteStrength">True for the site's own code.</param>
    public static List<(int Line, string Text)> HistoryIn(string path, IReadOnlyList<string> lines, bool siteStrength)
    {
        var found = new List<(int, string)>();
        for (int i = 0; i < lines.Count; i++)
        {
            if (LeansOnHistory(path, lines[i], siteStrength))
            {
                found.Add((i + 1, lines[i].Trim()));
            }
        }

        return found;
    }
}

Live from tests/rules/HistoryRule.cs, region history-rule, read from this build at 99df7a8.

What the sample under samples/ is held by is the ratchet's own count rather than this suite, which does not walk a sample: a sample is its own solution with its own gate and its own copies of these rules (Repo.NotOurs). A comment of this shape added there turns history_or_name_comments red instead, which is weaker than a named failure and is written down here rather than left to be discovered.

Enforced by

3 rules in the rulebook cite this record, each held by a test on every release.

The rule What holds it In the last gate
No production comment leans on a version number, a date or a review to stand in for its reason ProductionCommentTests 46 of 46 passed
In the site's own code a production comment names no month, no written date, no review by its name and no person by first name; a format example in quotes or backticks is not history ProductionCommentTests 46 of 46 passed
In the job hunt's Function a comment explains by no date, no version number, no named review and nobody's ask, while the owner's name and a month name there are the subject the code acts on and not history. From 1.0.4.125 the rule is one body, tests/rules/HistoryRule.cs, asked in two strengths and shaped like the ratchet's own count ProductionCommentTests 46 of 46 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