Skip to content

ADR: Three readers with no memory of the project

ADR: Three readers with no memory of the project

Status
accepted
Date
2026-09-09

At the end of a day of shipping, Steve asked for the code to be read with no context, by a devil's advocate in three seats: an interviewer, a junior developer learning from it, and an architect reviewing it. The review was run that afternoon, its findings were verified against the code, and the decisions taken on each are this record. Three versions carry them: 1.0.0.109, 1.0.0.110 and 1.0.0.111.

In plain words

Three reviewers with no memory of the project (separate agents) each read the code as a different kind of reader. Eight of their findings held up against the code, and this page records what was done about each one, from a sale shown to its buyer only to a sign-in key invented on every restart.

What that is worth: a developer sees how a stranger reads this code and which defects that reading caught, and the organization gets a review step that finds what the authors cannot see.

Context

Every review this project had run before was made by the session that wrote the code, or by a session that had read every record first. Both know what the system is meant to do, which is exactly the knowledge that hides what it does. The ask was for the opposite: readers who would meet the checkout the way a stranger meets it.

Three were run, as separate agents with no memory of any session, each given the checkout at 1.0.0.108 and one persona. A reviewer screening the repository before a final round. A junior developer a year into a first job, told to learn from it. A principal architect deciding whether it becomes a team's reference. None was told what the others were asked. Their reports are kept outside the repository; every claim in them was then read against the code by the session that had written it, and the ones that held are below, in the order of what they cost.

The verdicts, in one line each. The interviewer would advance the candidate on the strength of the process, on condition the interview tests whether the candidate understands the auction the code implements rather than the one the records describe. The junior developer learned Cosmos DB, the onion and the test shapes from it and would copy six things, and found four documents giving four different answers to where a bid goes. The architect would keep the ports, the schema authority, managed identity and the readiness discipline, and strike four things before anyone copied them: authoritative state in process memory in front of two writers, an auction clock the caller chooses, an anonymous write on the Admin tab, and a signing key each process invents.

What they found, and what was decided

Eight findings held. Each got one of three answers: fixed, with the version; decided and designed, with the version it ships in; or accepted as it is, with the reason.

1. A purchase sold the vehicle to its buyer only. Two of the three put this first. Buy Now recorded the sale on the buyer's own bid and nowhere the rules or the wire could see it, so a second account saw a live auction at the Buy Now price, bid it, and was told it had won the same vehicle. Fixed in 1.0.0.110: the rules take sold and check it before everything, the bid service supplies it from the standing it already kept, every vehicle on the wire says sold, and the page shows Sold to strangers (ADR: Accounts and per-user bids, the addendum on the second buyer).

2. The auction clock is decided by the caller. The page sends its own local midnight as anchor_ms, the server derives every window from it, and the schedule record and the CLAUDE.md rule both describe that as the design. So two visitors in different zones are in different auctions, and a client that sends yesterday's midnight bids on a vehicle that ended for everyone else. Decided here: the clock is the server's. The anchor becomes the current UTC day's midnight, computed per request on the server and sent to nobody; anchor_ms leaves the API and the page; the windows re-seed at 00:00 UTC rather than at each visitor's midnight, which on the live site is seven in the evening for its owner; and the browser keeps doing what it does now, formatting the instants the server sends and counting down to them. One auction and one clock: no request can name a day. It ships as its own version with the tests that hold it, and this record gets the addendum; until then the CLAUDE.md rule stands as written.

3. Starting the performance proof was anonymous and registered two accounts a run. With the one-minute cooldown, one request a minute spent the whole hour's allowance of registrations, so a stranger could stop real visitors registering; and the limiter took its slot before Identity had validated the request, so failed registrations spent it too. Fixed in 1.0.0.109: starting a run takes a signed-in visitor, the card says so, the proof's two accounts are made once per process and reused, and a slot the identity refuses goes back (ADR: The one write a stranger can make and ADR: Same performance, proven, their addenda).

4. The signing key was invented at process start and nothing configured it. Every roll signed every visitor out of a seven-day cookie, and the comment and the accounts record said the process warned when it did, which no log line did. Fixed in two halves. 1.0.0.109 added the warning. 1.0.0.111 makes the key configuration the deploy hands to both containers from one repository secret, YARD_AUTH_SIGNING_KEY, substituted into the container spec at roll time the way the connection strings are, so a session survives a roll and a token minted by one container reads on the other. A roll with no secret keeps the placeholder, and a placeholder, an empty value or a key too short to sign with all count as no key: the process invents one and says so, which is every roll's behaviour until the secret exists. The only secret in the pipeline, masked by GitHub in every log, never read by anything but the roll.

/// <summary>
/// The fewest bytes HMAC-SHA256 will sign with. A shorter key is refused by
/// the token handler on the first sign-in, which is a 500 on a page that
/// was working a minute ago; better to treat it as no key at all.
/// </summary>
public const int MinimumKeyBytes = 32;

/// <summary>
/// The configured signing key, or null when there is nothing usable in the
/// setting: no value, a placeholder a failed deploy substitution left
/// behind (anything starting with two underscores, the rule every other
/// substituted setting follows), or a value too short to sign with. Null
/// means the host invents a key and says so (ADR: Accounts and per-user
/// bids) (ADR: Three readers with no memory of the project).
/// </summary>
public static string? ConfiguredKey(string? configured)
{
    if (string.IsNullOrWhiteSpace(configured) || configured.StartsWith("__", StringComparison.Ordinal))
    {
        return null;
    }
    return Encoding.UTF8.GetByteCount(configured) < MinimumKeyBytes ? null : configured;
}

Live from api/TheYard.Api/Shared/Auth/Tokens.cs, region configured-key, read from this build at 99df7a8.

5. The retry that overwrites. Both bid stores catch a concurrency conflict on the buyer's row and write the same intended state again; the comments in both adapters and in the DDL said the answer was to start again from what was there, and the rules were not re-run. With two containers writing one store, and the header making a cross-container write routine, that is how two buyers could hold one vehicle. Two things were true of it on reading. The row a conflict guards is one buyer's, so the race it catches is the same account bidding from two containers at once, and re-applying the later bid is a defensible answer to that. And two buyers racing each other are two rows, so the token never sees that race at all: what they race for is the vehicle's standing, which lives in each container's memory. 1.0.0.111 makes the three comments say exactly that. The design that closes the gap is decided here and not yet built: a standing per vehicle that the store owns, one row or document carrying the amount, the count, the high bidder, the sale and a version; a bid writes the buyer's row and then the standing with a compare-and-set on the version; a conflict re-reads the standing and runs the rules against it before a second attempt, so a bid that no longer clears the minimum is refused with the sentence it would have got a moment later; and the in-memory index becomes what it should have been, a cache of the store's standing, refreshed on conflict. On the relational store that is one transaction; on the document store the buyer's document and the standing live in different partitions, so it is two writes and a repair on replay. It is a schema change on both stores and a record of its own when it ships.

6. Documents describing systems that no longer run. All three tripped on it first: an architecture page saying no authentication and one SQLite file, a data flow page with one anonymous buyer, CLAUDE.md with five projects and decimal money, a README calling the site free and putting accounts out of scope, and a dozen smaller ones across the records. Fixed in 1.0.0.109, and the README's own bidding paragraph, which that pass missed, in 1.0.0.110. The live-sample mechanism protects fenced code and nothing else, which is the honest reason prose drifted while the code in the same pages could not.

7. Numbers that inflate. The search claim credited a test with a stopwatch's number; the test asserts only that the indexed path is not slower. Fixed in 1.0.0.109, with the weaker claim the test makes. The interviewer's count that about a quarter of the xUnit tests test the documentation apparatus rather than the product is accepted as a fact about this repository, and left as one: those tests are what keep the pages the site serves from lying, which is the failure the three readers found first.

8. The smaller ones. A Lazy kept a failed background warm for the life of the process while the host promised a retry: fixed in 1.0.0.109, the next caller retries (ADR: The ports learn to wait, addendum). A request that reached a store whose catalogue was still loading blocked its thread on the load, the shape that record argued against and said the host did not do, and did do for the seconds after a roll before the other store had warmed and for every request to the other store in a test application: fixed in 1.0.0.111, the pipeline awaits the warm before any endpoint reads the store.

/// <summary>
/// The request's store, warm before any endpoint reads it.
///
/// <para>The host starts the default store's catalogue loading beside the
/// server and warms the others in the background on a deployed group, so a
/// request that arrives before a store's load has finished, any request in the
/// first minutes after a roll, a visitor following the toggle, or any request
/// to the other store in a test application where the background warm is off,
/// finds a catalogue still loading. <c>Stock</c>'s synchronous accessors then blocked the
/// request thread on the load, on a container with one vCPU and therefore one
/// thread pool worker to start with: the exact shape ADR: The ports learn to
/// wait argued against (ADR: Three readers with no memory of the project).</para>
///
/// <para>So the pipeline awaits the warm, once per request, before the
/// endpoint runs. After the first time it is an await on a task that finished
/// at startup, which is no wait at all. The bid replay is awaited by the
/// writing methods already and read by the reads as whatever has loaded, so
/// it is not gated here; a listing during the seconds a store's bids replay
/// shows the dataset's prices until the replay lands.</para>
/// </summary>
public static class Warmth
{
    /// <summary>Warms the backend's catalogue if it is not warm; a warm one is a task already finished.</summary>
    /// <param name="backend">The store this request is on.</param>
    /// <param name="cancellation">
    /// The request's. One warm-up is shared, so this ends the request's wait and not the
    /// warm-up: a visitor who closed a tab during the seconds after a roll must not abandon the
    /// load every other request is queued behind (ADR: The ports learn to wait, the addendum on
    /// the token).
    /// </param>
    public static Task EnsureAsync(Backend backend, CancellationToken cancellation) =>
        backend.Inventory.IsWarm ? Task.CompletedTask : backend.Inventory.WarmAsync(cancellation);
}

Live from api/TheYard.Api/Shared/Stores/Stores.cs, region warm-before-reading, read from this build at 99df7a8.

A session opened on one store could bid on the other, because the header puts one request on the other store and nothing checked that the account was there: the relational store's foreign key answered with a 500, the document store with nothing. Fixed in 1.0.0.111: the token names the store that opened it, and the two bid writes refuse a session from another store with a sentence, at the cost of no lookup.

/// <summary>
/// Whether the session was opened on the store <paramref name="current"/> names. A token
/// from one store used against the other, which the header allows in one
/// request, would write a bid under an account the other store does not
/// have: on the relational side the foreign key refused it as a 500, on
/// the document side nothing refused it at all (ADR: Three readers with no
/// memory of the project). A token with no store claim, which every token
/// minted here carries, is on no store.
/// </summary>
public static bool SessionIsOn(this HttpContext context, CurrentBackend current) =>
    string.Equals(context.User.FindFirstValue(TokenIssuer.StoreClaim), current.Key, StringComparison.Ordinal);

Live from api/TheYard.Api/Shared/Auth/Tokens.cs, region session-per-store, read from this build at 99df7a8.

A reset cleared memory before it asked the store, the opposite of the bid path's rule, so a store that refused left the page saying the bids were gone while the rows came back at the next start: fixed in 1.0.0.111, the store first.

Accepted as they are, each with its reason. Identity's lockout count can lose an increment when two failed sign-ins on one account race, on either store; that is the framework's shape, the lockout still trips, and a per-account brute force has to be parallel against itself to gain by it. The SQL and store logs live in the Application project although their vocabulary is a store's; they are the application's own record of what its ports did, and moving them would move the Admin tab's reading of them too. The smoke suite registers an account per test, which is isolation by construction and spends a handful of the hour's allowance on a machine that is not the live site. And an account deleted while its cookie is still valid can still post a bid that the relational store's foreign key refuses as a 500, which the page cannot reach because /api/auth/me reads that account as signed out; named here rather than fixed, because the fix is the same account lookup per bid that the store claim was chosen to avoid.

What did not hold, so the next review knows the shape

Little. One number in the verification pass was wrong rather than any of theirs: it said the proof's tolerance would let a 12 ms row and a 29 ms row read the same, and it would not; the allowance is fifteen milliseconds or fifteen per cent of the slower row, whichever is more, which is fifteen here against a difference of seventeen. The architect's wider point stands: eight samples a path and a correction that subtracts one round trip per operation assume much of what they conclude, and the proof record says as much about throughput and contention. Nothing any of the three called broken was found to be working.

Consequences

  • A stranger's reading of the checkout is now a documented step, not a hope. Three of the four things the architect would strike are gone or designed; the fourth, the clock, is decided above.
  • The wire carries two new facts, sold on every vehicle and a store claim in every token, and both are refusals the server makes rather than facts the browser is trusted with.
  • One secret exists in the pipeline where none did. It is a session key that lives in GitHub's secret store and the container's environment and nowhere else, and a roll without it degrades to what every roll did before.
  • Two designs were owed and named: the server's clock (finding 2), which shipped the same evening as 1.0.0.112 (the addendum below), and the standing the store owns (finding 5), still owed. Until that one ships, the rule against a second writer is what it was, and this record says so plainly rather than the older records pretending otherwise.

Addendum, 2026-09-09: the clock, shipped

Finding 2 shipped as 1.0.0.112, the same evening. The anchor is the server's now: AuctionClock.Utc takes a moment and answers that moment and the UTC midnight that began its day, Clocks.Now() is the one place the host asks, and every endpoint that used to resolve a caller's anchor_ms asks that instead. The parameter is gone from the listing, the detail, both bid writes and the room's tick; the page no longer computes a midnight or sends one, and its cache key carries the UTC day instead, because the server re-seeds the windows at 00:00 UTC and a page cached a minute before must not be served a minute after. A page from before this version that still sends the parameter is not read.

/// <summary>The clock for a moment: that moment, and the UTC midnight that began its day.</summary>
public static AuctionClock Utc(DateTimeOffset utcNow)
{
    var midnight = new DateTimeOffset(utcNow.UtcDateTime.Date, TimeSpan.Zero);
    return new AuctionClock(utcNow.ToUnixTimeMilliseconds(), midnight.ToUnixTimeMilliseconds());
}

Live from api/TheYard.Domain/Shared/Auction/AuctionClock.cs, region utc, read from this build at 99df7a8.

What changes for a visitor: the day's auctions turn over at 00:00 UTC rather than at each visitor's own midnight, which on the live site is seven in the evening for its owner, and two visitors anywhere see the same auction end at the same instant. What changes for a caller with curl: nothing it sends can move an auction's window, so a bid on an ended vehicle is refused whoever asks. The tests that held the old contract were rewritten to hold the new one: the domain test that anchored the host's own zone now shows Toronto at noon and London late in the evening sharing one anchor and Toronto at eight in the evening already on the next day's; the API test that expected a 400 for an implausible anchor now shows the same vehicle answering the same window with no anchor, yesterday's, and a nonsense one.

/// <summary>
/// The auction is the server's, whoever asks. Until 1.0.0.112 a request
/// carried its own local midnight and the server derived every window from
/// it, so a visitor in another zone was in a different auction and a client
/// that named yesterday's midnight could bid on one that had ended for
/// everyone else; an implausible anchor was a 400 and a plausible wrong
/// one was accepted. Now the same vehicle has the same window for every
/// request, an anchor a request still sends is not read, and the window is
/// the one the domain derives from the UTC midnight that began the day
/// (ADR: Three readers with no memory of the project, the addendum on the
/// clock).
/// </summary>
[Fact]
public async Task The_schedule_does_not_depend_on_who_asks()
{
    using var page = await GetAsync("/api/vehicles?limit=1");
    string id = page.RootElement.GetProperty("vehicles")[0].GetProperty("id").GetString()!;
    long yesterday = TheYard.Domain.Shared.Auction.AuctionClock.Utc(DateTimeOffset.UtcNow.AddDays(-1)).AnchorMs;

    using var plain = await GetAsync($"/api/vehicles/{id}");
    using var withYesterday = await GetAsync($"/api/vehicles/{id}?anchor_ms={yesterday}");
    using var withNonsense = await GetAsync($"/api/vehicles/{id}?anchor_ms=12345");

    long endsAt = plain.RootElement.GetProperty("auction_ends_at").GetInt64();
    Assert.Equal(endsAt, withYesterday.RootElement.GetProperty("auction_ends_at").GetInt64());
    Assert.Equal(endsAt, withNonsense.RootElement.GetProperty("auction_ends_at").GetInt64());
    // The window is the hash's on one of the days around the answer's own end, never on this
    // machine's day: a window may run across midnights, and a run across UTC midnight still
    // compares the answer with itself.
    long endDay = TheYard.Domain.Shared.Auction.AuctionClock.Utc(DateTimeOffset.FromUnixTimeMilliseconds(endsAt)).AnchorMs;
    Assert.Contains(endsAt, Enumerable.Range(-3, 7).Select(day => TheYard.Domain.Shared.Auction.AuctionSchedule.Window(id, endDay + (day * 86_400_000L)).EndsAtMs));
}

Live from api/TheYard.Tests/ApiIntegrationTests.cs, region one-clock, read from this build at 99df7a8.

The measurement script and the proof stopped sending the anchor too, so the next proof run measures the same requests the page makes.

Where it sits

This review reached four rings: Domain gained AuctionClock.Utc and the sold check at the top of BidRules, Application's BidService now asks the store before it clears a reset, the host Api keeps the signing key and the store claim in Tokens.cs, and the front end's data.ts stopped sending a midnight. Single responsibility, one reason to change per class, is the principle behind the clock fix, since Clocks.Now is the one place the host asks the time and AuctionClock is the one class that decides when a day begins. The price was a repository secret to manage and an auction day that turns over at 00:00 UTC, seven in the evening for the owner, while each vehicle's standing still lives in each container's memory. More than one container writing bids at real volume would force the store-owned standing that finding 5 designed and left unbuilt.

Files

Addendum, 2026-10-18: the standing the store owns, shipped

Finding 5 is built, as 1.0.3.167. Each vehicle's standing (price, count, high bidder, sold) is a row the store owns: the Standings table on the relational store, published from api/TheYard.Database and migrated on SQLite, and one document per vehicle in the bids container under a partition no account can have (~standing) on the document store, so no new container has to be applied by hand. BidService reads that standing under its gate on every bid and buy-now, runs BidRules against it, and writes the buyer's row and the next standing with a compare-and-set on the standing's version. A conflict reads the standing again and runs the rules again, so a bid that no longer clears the minimum is refused with the sentence it would have got a moment later; after three conflicts in a row the buyer is told the price moved and to look again.

On the relational store the two writes are one transaction. On the document store they are two writes, the standing first, and a standing whose holder has no buyer document is repaired from the standing when the cache is next read from the store, the shape this record described. A vehicle with buyer rows and no standing, which is every vehicle bid on before this version and every vehicle a reset touched, has its standing worked out from its rows on the next read, so nothing has to be backfilled. The in-memory index is now a cache of the store's standing: rebuilt from the store at startup and by RefreshAsync, and brought up to date for a vehicle every time that vehicle is bid on. The bid path never decides against it.

What this changes for the rule against a second writer: the sold rule and the minimum next bid hold across both sites from this version. What it does not change: a listing on one site shows the other site's bid on a vehicle from the next bid on that vehicle or the next start, because the listing reads the cache and the cache is not polled. That is a display lag and not a rule; the rule reads the store. The in-memory bid store is renamed from NullBidStore to MemoryBidStore because it now keeps the same compare-and-set rule the real stores keep, and the unit tests run two services over one of it.

/// <summary>
/// Places one bid for one buyer. The rules run against the store's standing
/// for the vehicle, read under the gate, and the bid is kept only if the
/// store still holds that same standing when it is written. If the other
/// site moved it in between, the standing is read again and the rules run
/// again, so a bid that no longer clears the minimum is refused with the
/// sentence it would have got a moment later.
///
/// <para>The caller's cancellation is honoured up to the gate and not past it. Waiting
/// a turn is the one part of a bid a caller who has gone can be let out of for nothing;
/// once the turn is theirs the store is written and memory follows, and a sequence
/// abandoned between those two would leave the store holding a standing this process
/// does not know about. So the body runs under no token, deliberately, which is the
/// promise the ports record made and this rung kept (ADR: The ports learn to wait, the
/// addendum on the token).</para>
/// </summary>
public async Task<BidOutcome> PlaceBidAsync(Vehicle vehicle, int amount, AuctionClock clock, string userId, CancellationToken cancellation)
{
    await LoadAsync(cancellation);
    await _gate.WaitAsync(cancellation);
    try
    {
        for (int attempt = 1; attempt <= Attempts; attempt++)
        {
            var (held, version) = await CurrentAsync(vehicle.Id, CancellationToken.None);
            var merged = held is null ? vehicle : vehicle.RaisedTo(held.Amount, held.BidCount);
            // Sold is read from the same standing the write will compare
            // against, so two buyers, on one site or two, cannot both find
            // it false.
            var outcome = BidRules.ResolveBid(merged, amount, clock, held?.SoldBuyNow ?? false);
            if (outcome.Kind == BidOutcomeKind.Rejected)
            {
                return outcome;
            }

            var state = new BidState(
                outcome.Amount,
                merged.BidCount + 1,
                WonBuyNow: outcome.Kind == BidOutcomeKind.Won,
                AtMs: clock.NowMs);
            var next = StandingFold.Next(held, userId, state);
            // The store first, then memory. A store that throws leaves the
            // dictionaries as they were, so a failed write means the bid did
            // not happen anywhere, which is the answer the caller already has.
            if (await _store.TrySaveAsync(userId, vehicle.Id, state, next, version, CancellationToken.None))
            {
                _ledger.Record(userId, vehicle.Id, state, next);
                return outcome;
            }
        }
        return BidOutcome.Rejected(MovedReason);
    }
    finally
    {
        _gate.Release();
    }
}

Live from api/TheYard.Application/Shared/Auction/BidBook.Bidding.cs, region place, read from this build at 99df7a8.

/// <summary>Every vehicle's standing, for the replay at startup.</summary>
public async Task<IReadOnlyList<StoredStanding>> LoadStandingsAsync(CancellationToken cancellation)
{
    using var db = await factory.CreateDbContextAsync(cancellation);
    var rows = await db.Standings.AsNoTracking().ToListAsync(cancellation);
    return rows.Select(Stored).ToList();
}

/// <summary>One vehicle's standing and its version, read without tracking, or null when it has none.</summary>
public async Task<StoredStanding?> ReadStandingAsync(string vehicleId, CancellationToken cancellation)
{
    using var db = await factory.CreateDbContextAsync(cancellation);
    var row = await db.Standings.AsNoTracking().SingleOrDefaultAsync(row => row.VehicleId == vehicleId, cancellation);
    return row is null ? null : Stored(row);
}

/// <summary>
/// The compare-and-set itself: one UPDATE that names the version it read
/// and moves it by one. One row changed means this writer won; none means
/// another writer moved the standing first.
/// </summary>
/// <param name="db">The context the write is staged on.</param>
/// <param name="vehicleId">The vehicle.</param>
/// <param name="standing">The standing to write.</param>
/// <param name="expected">The version the caller read.</param>
/// <param name="cancellation">The bid write hands this CancellationToken.None on purpose: the standing and the buyer's row go together.</param>
private static async Task<bool> TryMoveStandingAsync(YardDbContext db, string vehicleId, VehicleStanding standing, long expected, CancellationToken cancellation)
{
    int moved = await db.Standings
        .Where(row => row.VehicleId == vehicleId && row.Version == expected)
        .ExecuteUpdateAsync(set => set
            .SetProperty(row => row.Amount, standing.Amount)
            .SetProperty(row => row.BidCount, standing.BidCount)
            .SetProperty(row => row.HighBidderId, standing.HighBidderId)
            .SetProperty(row => row.SoldBuyNow, standing.SoldBuyNow)
            .SetProperty(row => row.AtMs, standing.AtMs)
            .SetProperty(row => row.Version, expected + 1), cancellation);
    return moved == 1;
}

/// <summary>Whether a standing row exists for the vehicle now, read on a fresh context after a failed insert.</summary>
private async Task<bool> StandingExistsAsync(string vehicleId, CancellationToken cancellation)
{
    using var db = await factory.CreateDbContextAsync(cancellation);
    return await db.Standings.AsNoTracking().AnyAsync(row => row.VehicleId == vehicleId, cancellation);
}

/// <summary>A new standing row at the given version.</summary>
private static StandingRow RowOf(string vehicleId, VehicleStanding standing, long version) => new()
{
    VehicleId = vehicleId,
    Amount = standing.Amount,
    BidCount = standing.BidCount,
    HighBidderId = standing.HighBidderId,
    SoldBuyNow = standing.SoldBuyNow,
    AtMs = standing.AtMs,
    Version = version,
};

/// <summary>A row as the port hands it back, the version written as text.</summary>
private static StoredStanding Stored(StandingRow row) => new(
    row.VehicleId,
    new VehicleStanding(row.Amount, row.BidCount, row.HighBidderId, row.SoldBuyNow, row.AtMs),
    row.Version.ToString(CultureInfo.InvariantCulture));

Live from api/TheYard.Infrastructure/Shared/Auction/EfBidStore.Standing.cs, region standing-store, read from this build at 99df7a8.

Addendum, 2026-10-21 (1.0.4.24): what the browser still derives, and what holds it

CLAUDE.md says never to re-implement auction math in TypeScript. Two pieces of it stand in src/lib/auction.ts, on purpose: the status of a window the server sent, recomputed at the browser's tick so a countdown that reaches zero reads "Ended" without a refetch, and the two ordering bands the browser re-ranks a page by under the ending-soonest sort (ADR-056). Neither picks a window or an anchor; both read the server's window. From 1.0.4.24 FileHeaderTests.Lib_imports_no_react_hooks_import_no_component_and_only_lib_fetches holds the two bands equal to VehicleOrdering.UpcomingBand and EndedBand, so the copy cannot drift from the Domain's figure.

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
The server owns the clock and every derived fact, and no request names a day AuctionScheduleTests 10 of 10 passed
The clock-bound tests read the day and the windows from the answer, never from the test machine's clock ActivityTests, ApiIntegrationTests 234 of 234 passed
The front end's layers: src/lib imports nothing from React, a hook imports no component, a request is written in src/lib inside the working store, and the browser's ordering bands equal the Domain's FileHeaderTests, WorkingLockTests 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