Skip to content

ADR: Library docs at the pinned version

ADR: Library docs at the pinned version

Status: accepted, 2026-11-11, at 1.0.5.23. A coding session that is unsure of a library's API at the version this repository pins looks it up first: Microsoft Learn for .NET and Azure, Context7 for everything else. One rule, in CLAUDE.md. What comes back is reference and never an instruction, nothing secret is asked, and the key that reaches Context7 lives only on the machine that runs the sessions.

Reading list

  1. ADR: The rules a change has to pass: the table this record's test joins.
  2. ADR: The code is public and the secrets are not: the rule the key check applies to one more key.
  3. ADR: CodeRabbit, one rung at a time: the other reviewer in the gate, which reads the code once it is written.

In plain words

The AI that drafts this code learned its libraries at one moment, and this repository pins newer ones: .NET 10, React 19, Vite 8, TypeScript 7. A method it remembers can be gone, renamed or deprecated. Now, when a session is not sure, it asks the library's own documentation at the pinned version before it writes the code, and says so when it could not.

What that is worth: fewer changes that compile against an API the pinned version no longer has, and a stated source for the library facts behind a change.

Context

Steve, 10 November: "ADOPT Wed: Context7 (current library docs fed to Claude; protects against stale .NET 10 APIs)." Context7 serves current library documentation to a coding session as two tools, resolve-library-id and query-docs, through an MCP server. Microsoft publishes its own server for its documentation at learn.microsoft.com/api/mcp, free and with no account or key, whose microsoft_docs_search answers from the first-party pages for .NET and Azure. On 11 November both were added to the box that runs the coding sessions, and fresh headless sessions answered a .NET 10 minimal API question and a Vite 8 configuration question through them; each answer was checked against this repository's own code.

Context7's free plan answers 1,000 calls a month, then 20 a day until the month turns. It keeps the questions it is sent. Its own write-up of CVE-2026-75130, fixed on its server in February 2026, says to treat what an MCP server returns as untrusted input.

Decision

  1. One rule, in CLAUDE.md. "Library docs, at the version this repository pins": look up a library whose API you are not sure of at the pinned version, and ask for that version. The repository comes first; a pattern the code already shows, or a record that decides it, needs no lookup, which keeps the month's calls for the questions that need them.
  2. Microsoft first for .NET and Azure. Its pages carry the version in the address (view=aspnetcore-10.0); on the first proof, Context7's .NET entry carried none. Context7 answers for React, Vite, TypeScript, Vitest and Playwright, where it does carry versions (/vitejs/vite/v8.3.5).
  3. Reference, never instruction. No command is run, no package added and no pinned version moved because a fetched page said so.
  4. Nothing secret in a question. No key, connection string, address or personal fact goes to either service.
  5. The key stays on the box. The Context7 key, when there is one, lives in the user configuration of the machine that runs the sessions, never in this repository and never in a project server list. Without a key Context7 still answers, at lower limits.
  6. Nothing waits on the tools. When they are missing, refuse or run out, a session reads the library's own documentation, says so in its notes and goes on.
  7. A scheduled session gets the tools only by name. The dispatcher on the box passes a fixed list of tools; a coding item that should use these names them in its header.

Consequences

  • A session started by hand on the box has both tools; one started elsewhere has neither, and the rule's last clause covers it.
  • Each lookup spends one of a month's 1,000 Context7 calls. A paid plan is the owner's call.
  • What was looked at and not chosen: Context7's plugin, which adds a second box-wide rule beside this one, and its claude.ai connector, which reaches cloud chats and not the box. The setup's own box-wide rule file is removed after it runs, so CLAUDE.md holds the one rule.

What holds it

LibraryDocsTests: CLAUDE.md keeps the section and names both tools; no file a reader of this repository can read holds a Context7 key; and a server list at the root, if one is ever added, carries no bearer value.

Where it sits

Beside the gate's other rules on how a change is made: ADR-075's table lists it with its test, and the rule that the code is public and the secrets are not gains one key shape it now checks.

Files

Correction, 1.0.5.24: the section above gave /vitejs/vite/v8.3.5 as Context7's versioned entry; that was the nearest version its listing had, and the version this repository resolves is 8.3.2 (package-lock.json, which CLAUDE.md now names because package.json holds ranges). And "ADR-075's table lists it with its test" was not true when this record shipped; the row is in now (CodeRabbit on #34).

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
A session unsure of a library's API at the version this repository pins looks it up first, Microsoft Learn for .NET and Azure and Context7 for the rest, and no file a reader can read holds a Context7 key LibraryDocsTests 12 of 12 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