Skip to content

ADR: Live dials where the source allows

ADR: Live dials where the source allows

Status: accepted, 2026-11-07, at 1.0.4.159. Every card under Cloud infrastructure has a live route, GET /api/admin/cloud/{key}/live, and a live line under its dials. A card whose source reads faster than a minute (the plan's /proc, Azure SQL's own view, this process's Cosmos DB charges) shows that reading at the source's own grain while somebody looks; every other card says it has no live source, once, and stops asking.

Reading list

  1. ADR: The box reports itself: the first live ring and the poll this one generalises.
  2. ADR: One frame for every resource: the frame the live line sits in, and the kept minutes the tones keep coming from.
  3. ADR: Telemetry: the daily cap the live routes stay out of.

In plain words

The cards under Cloud infrastructure read their resources once a minute, some once an hour. A few of those resources can say more often what they are doing: the database keeps its own view every fifteen seconds, and the container can read its own memory and processor every two. Those cards now show that faster number while somebody has the card open, and nothing runs when nobody does. The colour of a card never moves with the live number: it still comes from fifteen held minutes, so a spike does not flash red.

Context

Steve asked on 4 November for monitors that move "like on linux resources", and the WickedAwsome card did that for the box with a ring held in memory and a poll every two seconds (ADR: The box reports itself). The lane that made the Admin tab stable (adminstable1105) planned the same pattern for every card where the source allows, with Steve's grains: the plan every 2 s if its /proc fork passes, Azure SQL every 15 s, Cosmos DB every 5 s.

Decision

  1. One ring type. LiveRing<T> in the Application's Shared/Live holds every live reading: a bounded queue under one lock, the oldest dropped on every push, read back by age. The box's ring moved onto it in the same version.
  2. A source, a lease, one sampler. A card's live source (ILiveSource) names its key, its grain, its source line, and why it cannot read in this process when it cannot. LiveLease leases a card for 60 seconds after each read of its live route; LiveSampler, one background loop a second, asks each leased source for one sample when its grain has passed, and holds it in that card's ring (LiveRings, 240 samples a card). A source nobody is looking at never runs.
  3. One route for every card. GET /api/admin/cloud/{key}/live answers { available, note, grain_seconds, source, as_of_ms, samples } for the last ten minutes, anonymous like the card. A card with no live source answers 200 with available false and one sentence, never 404. The box keeps its own route, whose literal path wins.
  4. Polling, not streaming. The page asks at the source's grain, never faster than every 2 s, only while the card is mounted and the tab is in view, and stops for good once the card says it has no live source. The edge buffers a streamed answer (ADR-100's rejected option), so SignalR and Server-Sent Events were rejected; so was Azure Arc, for the box.
  5. Out of the telemetry. Every live route, and every request carrying the site's self-read tag (the keep-warm loop's and the nightly self-read's), is left out of Application Insights' request telemetry; the live routes are GETs under /api/admin/, so the request ring already leaves them out.
  6. The tone does not move. The live number is a line under the dials; the dials, the rows and the card's tone come from the kept minutes and the fifteen-minute hold, unchanged.

This version adds the pattern and no source: every card says it has no live source until the versions that add the plan's, Azure SQL's and Cosmos DB's.

What holds it

LiveTests: the ring and its bound, the lease's minute, the read that leases and answers, the sampler at each source's grain and past one that throws, the telemetry filter over every live route and the self-read tag, and the route answering 200 for a card with no source; live.test.ts: the poll's grain, when it stops, and the line's words.

Where it sits

The ring, the source port, the lease and the rings by card in the Application's Shared/Live, used by more than one feature; the read in the Application's Admin Cloud feature beside the box's handlers; the sampler and the sources in the host's Cloud slice; the page's read in src/lib, the poll in src/hooks and the line in its own component folder.

Files

Addendum, 2026-11-07 (1.0.4.160): the plan's /proc fork

The plan card's live source reads this instance's own /proc every 2 s while the card is open: memory is what /proc/meminfo says is not available of MemTotal, the processor the busy share of every core between two reads (ProcLiveSource). Its line names its source, "this instance, /proc, 2 s". Whether it tracks Azure Monitor's minutes for the plan is measured after this version rolls: thirty minutes of the live route every 2 s beside the plan's MemoryPercentage and CpuPercentage minutes, written to J:\staging\adminstable1105\proc-compare.jsonl, and the verdict (MemTotal within 2 % of the plan's 3.78 GB, both series within 5 points of the minutes) in the next version's addendum. Pass or fail, the dials keep their kept minutes; on a fail the line says it is this container's own view. ProcLiveSourceTests holds the reading over a fixture /proc and on the box's own.

Addendum, 2026-11-07 (1.0.4.161): Azure SQL's line

The Azure SQL card's live source reads the database's own view of itself, sys.dm_db_resource_stats, which every tier keeps at fifteen-second intervals for an hour and which costs nothing to read, every 15 s while the card is open (SqlLiveSource, through the same ResourceStats read the Machines card uses, 40 rows). Its line says "DTU" as the greatest of the newest interval's processor, data IO and log write shares, Microsoft's example formula, beside the three shares; Azure Monitor's own dtu_consumption_percent stays on the dial, read a minute at a time, so the two can be compared on the card. A read that finds no newer interval adds no sample. A process with no relational store says "this site keeps no relational store". SqlLiveSourceTests holds the formula with each share leading, the newest interval, and the absent cases.

The same version matches the nightly picker's card to the Function's line of the bill, which it had matched under its title and so read "not on the bill yet".

Addendum, 2026-11-07 (1.0.4.162): Cosmos DB's line

The Cosmos DB card's live source sums this process's own requests to the account every 5 s while the card is open, from the operations ring the Machines card already keeps (CosmosChargeSource): request units a second over the last five seconds, how many requests made them, and how many were throttled. Cosmos DB has no fifteen-second view of the whole account, so the dial stays Azure Monitor's minute for the account and the line says only what this process asked for, "this process's requests, live". A process with no document store says so. CosmosChargeSourceTests holds the window's edges, the throttled count and the quiet case.

Addendum, 2026-11-07 (1.0.4.162): the /proc fork's verdict, fail

The plan's /proc source was compared with Azure Monitor's minutes for the plan for thirty minutes after 1.0.4.160 rolled (20:34 to 21:05 CST, the live route read every 2 s beside MemoryPercentage and CpuPercentage, 802 lines in J:\staging\adminstable1105\proc-compare.jsonl, 30 minutes compared). MemTotal read 3.78 GB, the plan's own size, within the 2 % the rule asks. Memory tracked: the gap between the minute's mean of the 2 s samples and Azure's minute had a median of 1.3 points, a 90th percentile of 5.7 and a mean of +0.5, its worst 10.7 in the minute of the roll. The processor did not: a median gap of 3.9 points, a 90th percentile of 15.5 and a worst of 69.7, because a 2 s sample of a bursty processor and a minute's average are different numbers, most of all in the minutes after a roll. The rule asks both series within 5 points over the thirty minutes, so the fork fails. What follows, as decided before the measurement: the plan's dials keep Azure Monitor's minutes, and the live line names itself "this container's own /proc, 2 s, not the plan's minute". At more than one instance the line is one instance's view.

Enforced by

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

The rule What holds it In the last gate
Every card has a live route that answers 200, a source runs only while its card was read in the last minute and at its own grain, one ring type holds every live reading, and every live route and self-read stays out of the request telemetry LiveTests, LiveRouteTests, live.test.ts 42 of 42 passed
The plan card's live source reads memory as what is not available of MemTotal and the processor as the busy share between two reads of /proc, and says so where there is no /proc ProcLiveSourceTests 6 of 6 passed
Azure SQL's live line reads DTU as the greatest of the newest fifteen-second interval's processor, data IO and log write shares, adds no sample when nothing newer is there, and says so where the site keeps no relational store SqlLiveSourceTests 10 of 10 passed
Cosmos DB's live line sums this process's requests over the last five seconds into request units a second, counts the throttled ones, reads a quiet window as zero, and says so where the site keeps no document store CosmosChargeSourceTests 4 of 4 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