Skip to content

ADR: Competing bidders

ADR: Competing bidders

Status
accepted
Date
2026-09-03
Shipped as
1.0.0.37

The README listed this as open work: "simulated competing bidders so the high-bidder state can be lost, with outbid alerts."

In plain words

This page adds pretend rival bidders (a simulated room), so a visitor can now be outbid. The room bids through the same rules as everyone else, and the server alone decides who is winning. The browser asks for a new round every eight seconds (polling rather than Server-Sent Events).

What that is worth: a developer sees the bidding rules exercised by what a visitor does, and the organization's demo shows an auction that can be lost while costing nothing when nobody has a tab open.

Context

The demo had one buyer, and that buyer could not lose. Place a bid and you hold it forever: the High bidder chip never comes off, the reserve badge never changes hands, and "you have been outbid" is a state the code can describe but never reach. Half the bidding rules were therefore unexercised by anything a visitor could do. BidRules.MinNextBid climbing a tier, a reserve going from unmet to met by somebody else's money, the sinking feeling of refreshing to a higher number: none of it happened.

The README also listed Server-Sent Events, to push those changes rather than poll for them. That is not what shipped, and the reason is written down below rather than left as a gap.

Decision

A simulated room, held the same way the buyer's bids are. MarketService keeps a dictionary of vehicle id to competing bid, exactly as BidService keeps the buyer's, and layers it over the shared dataset as an overlay rather than a mutation. Two overlays, composed at the composition root, in an order that matters: the buyer's first and the room's second, and the room only wins where it is actually higher. Reverse them and the buyer always appears to be winning, which is the bug this whole feature exists to make impossible.

The room bids through BidRules, like everything else. It calls MinNextBid for its amount and ResolveBid to check itself. A simulated bidder allowed to place bids the rules forbid would be a second, quieter implementation of the auction, and the onion architecture here exists specifically so there is only one.

Three limits keep it a demo rather than a slot machine. It leaves the buyer's lead alone for twenty seconds before answering it, because a room that outbids you one second after every bid is not competition. It stops at twice the opening ask, because a competitor with no ceiling wins every auction and a demo the visitor cannot win is worse than no competitor at all. And it never bids at or above buy-now, because that bid would win outright under the rules and end an auction the visitor was in.

The page drives the round, not a timer on the server. POST /api/market/tick runs one round; the browser calls it every eight seconds while the tab is visible. Two reasons. The anchor: the browser's local midnight decides which auctions are live (the auction schedule is derived from that anchor), and a room bidding against a different set of live auctions than the visitor can see would be a bug nobody could reproduce. And cost: the room moving in an empty container is work nobody sees, on a free tier where that is the only kind of work worth avoiding.

Whether you are still winning is the server's answer. /api/bids returns outbid and market_amount per vehicle rather than the browser comparing two numbers itself. Same principle as every other rule in this system, and the same reason: two implementations of one rule eventually disagree, and the one in the browser is the one that will be wrong.

Why not Server-Sent Events

The README asked for SSE and this is polling instead. The honest reason is the edge.

Phase one terminates TLS on a Netlify site that proxies every request to the container with a rewrite rule (ADR: Front Door origin, ADR: Edge deploy economics). A rewrite proxy buffers, and a long-lived streaming response is exactly what it buffers worst; the connection would also have to survive a proxy timeout it was never designed to hold open. I could not verify any of that without changing the edge, and the edge is out of scope for this session by a rule that exists because a change there costs real money on a free tier.

So: an eight-second poll of one small endpoint, which works through any proxy and costs a request the size of a bid map. When the edge becomes Front Door, which ADR: Front Door origin already plans, SSE becomes a change to one endpoint and one hook, and the rest of this design does not move. Writing that down is worth more than shipping a streaming endpoint that silently does not stream.

What it looks like

The room has answered a bid on the live site. The green line said "You're the high bidder at $48,500" a moment before this:

The vehicle detail page: the bid stands at $49,000 and a red panel reads "Someone outbid you"

And the same vehicle back in the grid, with the chip that could never appear before this change:

The inventory grid with a red Outbid chip on the first card, which now stands at $49,000 with 26 bids

The first of those two screenshots found a defect on its way into this record. It was taken the instant the outbid line appeared, and it showed "minimum $49,000" beside a standing bid of $49,000, which is arithmetically impossible: the browser was still holding the minimum from before the room's bid, and the refetch had not landed. Typing the number the page displayed would have been rejected. The minimum is domain math and the browser will not recompute it, but it can tell that the one it holds is impossible, so for that moment the panel now says it is updating and the button waits rather than showing a number it cannot vouch for.

In the code

The overlay, and why the order is the way it is (api/TheYard.Application/Shared/Auction/Room.cs):

/// <summary>
/// The room's bid layered over whatever the vehicle already shows, and only
/// when it is higher, so a competitor who has gone higher than the buyer is
/// what the page displays. StandingReader lays everybody's bids on first and
/// this second.
/// </summary>
public Vehicle Apply(Vehicle vehicle) =>
    _bids.TryGetValue(vehicle.Id, out var bid) ? vehicle.RaisedTo(bid.Amount, bid.BidCount) : vehicle;

Live from api/TheYard.Application/Shared/Auction/Room.cs, region apply, read from this build at 99df7a8.

One round of bidding, and the three limits:

/// <summary>
/// One round of bidding by the room. Answers the buyer first, because a
/// competitor who never competes with you is scenery, then adds activity on
/// vehicles nobody here is watching so the grid moves on its own.
///
/// Everything it does goes through the same <see cref="BidRules"/> the
/// buyer's bids go through. A simulated bidder that could place a bid the
/// rules forbid would be a second, quieter implementation of the auction,
/// and the whole architecture here exists to not have one of those.
/// </summary>
/// <returns>The ids it raised, for the caller to log or push.</returns>
public IReadOnlyList<string> Tick(
    IReadOnlyList<Vehicle> candidates,
    IReadOnlyDictionary<string, BidState> buyerBids,
    AuctionClock clock,
    int maxBids = 3)
{
    var raised = new List<string>();
    foreach (var vehicle in Order(candidates, buyerBids))
    {
        if (raised.Count >= maxBids)
        {
            break;
        }
        if (TryRaise(vehicle, buyerBids, clock))
        {
            raised.Add(vehicle.Id);
        }
    }
    return raised;
}

/// <summary>
/// The buyer's leads first, oldest bid first, then everything else. Sorting
/// by the bid's age rather than picking at random is what makes the outbid
/// moment arrive in a predictable order instead of a lottery.
/// </summary>
private IEnumerable<Vehicle> Order(
    IReadOnlyList<Vehicle> candidates,
    IReadOnlyDictionary<string, BidState> buyerBids)
{
    var contested = candidates
        .Where(v => buyerBids.ContainsKey(v.Id))
        .OrderBy(v => For(v.Id)?.AtMs ?? 0);
    // Shuffled, because the candidates arrive in a stable order and the
    // room takes the first few every round; in order, the same few cars
    // would rise every round and the rest never.
    var rest = candidates
        .Where(v => !buyerBids.ContainsKey(v.Id))
        .OrderBy(_ => random.Next());
    return contested.Concat(rest);
}

private bool TryRaise(
    Vehicle vehicle,
    IReadOnlyDictionary<string, BidState> buyerBids,
    AuctionClock clock)
{
    buyerBids.TryGetValue(vehicle.Id, out var buyer);
    // A vehicle the buyer bought outright is not for sale any more.
    if (buyer is { WonBuyNow: true })
    {
        return false;
    }
    // The grace period applies to every vehicle, not only the contested
    // ones: it is measured from the room's own last move here, or from the
    // buyer's if the room has not moved here yet, so an uncontested car
    // cannot rise on every round.
    long? since = For(vehicle.Id)?.AtMs ?? buyer?.AtMs;
    if (since is { } last && clock.NowMs - last < Grace.TotalMilliseconds)
    {
        return false;
    }

    // The price to beat is the highest of the three: the dataset's figure,
    // the buyer's bid and the room's own. Reading only its own would let
    // the room bid under the visitor and call it a raise.
    var standing = buyer is { } lead ? Apply(vehicle).RaisedTo(lead.Amount, lead.BidCount) : Apply(vehicle);
    if (standing.CurrentBid is { } current && current >= CeilingFor(vehicle))
    {
        return false;
    }

    int next = BidRules.MinNextBid(standing);
    // Never buy the vehicle out from under the visitor: a bid at or above
    // buy-now would win outright, and the room is here to compete, not to
    // end the auction.
    if (vehicle.BuyNowPrice is { } buyNow && next >= buyNow)
    {
        return false;
    }
    // Not sold, by construction: a vehicle anybody bought returned at the
    // top of this method, before the arithmetic.
    if (BidRules.ResolveBid(standing, next, clock, sold: false).Kind != BidOutcomeKind.Accepted)
    {
        return false;
    }

    // AddOrUpdate rather than an indexer: two tabs ticking at once both
    // read the same standing price and compute the same next bid, and a
    // plain write lets the older timestamp land second, which rewinds the
    // grace window and lets the room bid again immediately.
    var placed = new MarketBid(next, standing.BidCount + 1, clock.NowMs);
    _bids.AddOrUpdate(
        vehicle.Id,
        placed,
        (_, existing) => existing.Amount >= placed.Amount ? existing : placed);
    return true;
}

Live from api/TheYard.Application/Shared/Auction/Room.cs, region tick, read from this build at 99df7a8.

Where the two overlays are composed (api/TheYard.Application/Shared/Auction/StandingReader.cs):

/// <summary>
/// The overlay a listing applies to every row: everybody's bids, then the room's. Each one only
/// raises the price (StandingRules.RaisedTo), so the page shows the highest of the dataset, the
/// bids and the room, and a competitor who has gone higher is what the buyer sees. It names the
/// vehicles it moves, because the store holds the dataset's figures and a listing that filters or
/// sorts by price has to work those vehicles out from the moved ones (ADR: The store does the
/// work). Null when nobody has bid at all, so a cold listing pays for neither. IsEmpty rather
/// than a snapshot count, because a snapshot copies the whole dictionary just to ask whether it
/// is empty.
/// </summary>
private ListingOverlay? Overlay()
{
    if (bids.IsEmpty && room.IsEmpty)
    {
        return null;
    }
    var moved = new HashSet<string>(StringComparer.Ordinal);
    if (!bids.IsEmpty)
    {
        moved.UnionWith(bids.Standing().Keys);
    }
    if (!room.IsEmpty)
    {
        moved.UnionWith(room.Snapshot().Keys);
    }
    return new ListingOverlay(moved, AsItStands);
}

/// <summary>The vehicle at the price it stands at: the dataset, then everybody's bids, then the room's.</summary>
private Vehicle AsItStands(Vehicle vehicle) => room.Apply(bids.Apply(vehicle));

Live from api/TheYard.Application/Shared/Auction/StandingReader.cs, region overlays, read from this build at 99df7a8.

The endpoints (api/TheYard.Api/Features/Bids/BidEndpoints.cs):

// The buyer's bids, each one answering the question the badge asks: am I still
// winning this? The server owns that answer because it owns both sides of it.
// Signed out, this is an empty map rather than a 401: the page asks for it on
// every load, and "you have no bids" is the true answer for somebody who has
// not signed in. The endpoints that change something are the ones that refuse.
app.MapGet("/api/bids", MyBids)
    .WithName("GetMyBids")
    .WithTags("Bids")
    .WithSummary("The caller's standing on every vehicle they have bid on")
    .WithDescription("Keyed by vehicle id. Signed out, this is an empty map rather than a 401: the page asks for it "
        + "on every load, and no bids is the true answer for a visitor with no session.");

#region history
// The account page's list, newest first, with the vehicle each bid is on. The
// only query the bids table serves that is not "load everything at startup";
// the primary key leads with the user column, so it needs no index of its own.
app.MapGet("/api/bids/history", History)
    .RequireAuthorization()
    .WithName("GetBidHistory")
    .WithTags("Bids")
    .WithSummary("The caller's bids, newest first, with the vehicle each is on")
    .ProducesProblem(StatusCodes.Status401Unauthorized);
#endregion history

// One round of bidding by the room, driven by the page rather than a timer. The room
// bids on the server's clock, the same one every visitor is served, so the auctions it
// can see are the ones the visitor sees.
app.MapPost("/api/market/tick", Tick)
    .RequireAuthorization()
    .WithName("TickRoom")
    .WithTags("Bids")
    .WithSummary("One round of bidding by the room")
    .WithDescription("The simulated room bids against the caller's auctions and a page of live ones, on the server's "
        + "clock. Driven by the page rather than a timer, and only by a signed-in visitor, because moving the "
        + "room moves everybody's prices.")
    .ProducesProblem(StatusCodes.Status401Unauthorized);

Live from api/TheYard.Api/Features/Bids/BidEndpoints.cs, region market-endpoints, read from this build at 99df7a8.

The answer the badge needs, derived server-side (api/TheYard.Application/Shared/Auction/StandingReader.cs):

/// <summary>
/// One buyer's bids, each with everybody else's answer folded in. A vehicle bought outright is
/// never outbid, whatever anyone does afterwards: the sale already happened.
/// <para>The buyer's own bids are read first and everybody else's second. The reads are not
/// atomic, so a bid placed between them shows in one and not the other; reading the others
/// second means the stale answer is "you have been outbid" rather than "you are winning", and
/// only the second of those can cost somebody an auction.</para>
/// </summary>
public IReadOnlyDictionary<string, BidView> BidsOf(string userId)
{
    var mine = bids.SnapshotFor(userId);
    var standing = bids.Standing();
    var against = room.Snapshot();
    var views = new Dictionary<string, BidView>(StringComparer.Ordinal);
    foreach (var (id, bid) in mine)
    {
        standing.TryGetValue(id, out var held);
        against.TryGetValue(id, out var answered);

        int highest = Math.Max(held?.Amount ?? bid.Amount, answered?.Amount ?? 0);
        bool someoneElseHolds = held is not null && held.Amount > bid.Amount;
        bool roomHolds = answered is not null && answered.Amount > bid.Amount;
        bool outbid = !bid.WonBuyNow && (someoneElseHolds || roomHolds);

        views[id] = new BidView(
            bid.Amount,
            // The count everybody has added to, not one buyer's, so the count never falls
            // when a buyer retakes a lead somebody else raised.
            Math.Max(Math.Max(bid.BidCount, held?.BidCount ?? 0), answered?.BidCount ?? 0),
            bid.WonBuyNow,
            bid.AtMs,
            outbid,
            answered?.Amount,
            highest);
    }
    return views;
}

/// <summary>
/// One buyer's history for the account page, newest first: each vehicle's title beside the
/// buyer's standing on it, or "(withdrawn)" when the vehicle has left the catalogue.
/// </summary>
public async Task<BidHistory> HistoryOfAsync(string userId, CancellationToken cancellation)
{
    var mine = BidsOf(userId);
    var titles = (await inventory.FindManyAsync(mine.Keys.ToList(), cancellation))
        .ToDictionary(v => v.Id, v => $"{v.Year} {v.Make} {v.Model}", StringComparer.Ordinal);
    var entries = mine
        .OrderByDescending(entry => entry.Value.AtMs)
        .Select(entry => new BidHistoryEntry(
            entry.Key,
            titles.TryGetValue(entry.Key, out var title) ? title : "(withdrawn)",
            entry.Value))
        .ToList();
    return new BidHistory(entries.Count, entries);
}

Live from api/TheYard.Application/Shared/Auction/StandingReader.cs, region views, read from this build at 99df7a8.

The browser's half: the round it asks for, and the sentence it shows (src/hooks/useBids.ts, src/components/vehicle/BidPanel/BidPanel.tsx):

// The room bids while the tab is open and not otherwise (ADR-027). A hidden
// tab is a visitor who is not watching, and an auction house that runs on an
// empty room is a background job this demo does not need to pay for.
// onMutate fires only when something actually moved, so a quiet round costs
// one small request and no rerender of the grid.
useEffect(() => {
  // And not while signed out. The room bids against the standing price rather
  // than against a person, but advancing it is now something only an account
  // can do (ADR: The room needs an account too), so a signed-out tab polling
  // every eight seconds would be asking for a 401 forever. A visitor who has
  // not signed in has nothing bidding against them, which is the honest state
  // rather than a missing feature.
  if (!accountKey) return;
  let cancelled = false;
  const id = window.setInterval(() => {
    if (document.hidden || inFlight.current) return;
    inFlight.current = true;
    const sentAt = mutations.current;
    void tickMarket().then((result) => {
      inFlight.current = false;
      if (cancelled || !result) return;
      // The buyer bid or reset while this was out. Their action is newer
      // than this answer, so this answer is discarded.
      if (mutations.current !== sentAt) return;
      setBids(result.bids);
      if (result.raised > 0) onMutate?.(true);
    });
  }, MARKET_TICK_MS);
  return () => {
    cancelled = true;
    window.clearInterval(id);
  };
}, [onMutate, accountKey]);

Live from src/hooks/useBids.ts, region market-loop, read from this build at 99df7a8.

{/* The two halves of the same sentence (ADR-027). role="status" on
    both, so a screen reader is told when the lead changes hands
    rather than only seeing it. */}
{isHighBidder && (
  <p className={styles.highBidder} role="status">
    You're the high bidder at {formatCurrency(currentPrice(vehicle))}
  </p>
)}

{isOutbid && (
  <p className={styles.outbid} role="status" data-testid="outbid-notice">
    Someone outbid you. The bid stands at {formatCurrency(currentPrice(vehicle))}.
  </p>
)}

Live from src/components/vehicle/BidPanel/BidPanel.tsx, region outbid, read from this build at 99df7a8.

And the guard that keeps the panel from offering a minimum it cannot vouch for:

// For the moment between the room raising a bid and the refetch landing, the
// panel says the minimum is updating and the button waits, rather than
// showing a number the server would refuse. The rule that tells a stale
// minimum from the opening ask is in src/lib/auction.ts, with its test.
const minIsStale = status === 'live' && minimumIsStale(vehicle);

Live from src/components/vehicle/BidPanel/BidPanel.tsx, region stale-minimum, read from this build at 99df7a8.

What the review caught before this shipped

Two adversarial passes over this change, one on the API and one on the browser, found eleven defects. Four mattered, and all four are worth reading because none of them is the kind a test suite finds by accident.

A bid could be accepted below the going rate. BidService.Apply overwrote the price rather than taking the highest, so when the bid endpoint handed it a vehicle the room had already raised, the buyer's own older bid was written back over the room's higher one. The minimum next bid was then computed against the wrong number. The same response body advertised a minimum of $24,800 and enforced $23,800. A visitor could sit permanently one increment under the room and be accepted every time. Apply now takes the max, the way the room's overlay always did, and BidServiceTests holds the composed price.

Two bids at once could lose the higher one. PlaceBid and BuyNow are read, decide, write on a singleton; a ConcurrentDictionary makes each of the three atomic and the sequence of them not. Two posts, a double click, and the lower bid lands second. Worse across the two methods, where an ordinary bid landing after a buy-now flipped the sold flag back to false and put the vehicle back in the room's reach. Both are under a lock now.

A tick landing after a bid erased the bid. The browser replaced its whole bid map with each tick's answer, so a round already in flight when the visitor bid returned a snapshot from before it and wiped the confirmation off the screen for eight seconds. The server had accepted the bid; only the page said otherwise, which on an auction screen reads as money going nowhere. Every action the buyer takes now bumps a counter that a stale round is checked against.

The room hammered the same three cars. The grace period was checked only for vehicles the buyer had bid on, and the candidates arrived in a stable order, so the three soonest-ending live auctions were raised every eight seconds and doubled in about two minutes while the other thirty-seven never moved. Grace now applies to every vehicle, and the uncontested candidates are shuffled.

The rest were smaller and are fixed in the same commit: two full dictionary copies per inventory request taken only to read a count, a tick endpoint that sorted forty thousand live auctions to keep forty of them, a bid count that fell when the buyer retook a lead, a minimum-next-bid on the detail page that went stale the moment the room answered, focus being stolen when a deep-linked vehicle finished loading, and the Admin panel opening at the list's scroll offset with its heading above the fold.

One finding was a documentation defect rather than a code one, and it is the one most worth naming. A comment on the new outbid style said its colours were asserted against WCAG AA in tokens.test.ts. They were not. Both pairs happen to pass, so the claim was true by luck and false as a guarantee. The assertion now exists.

Consequences

  • The high-bidder chip can now come off, and the bid panel says who is ahead. That was the point.
  • Bidding is validated against the room's standing price, so the minimum next bid climbs as the room bids. A visitor who walks away and comes back finds a more expensive auction, which is what an auction is.
  • Reset clears both sides. Clearing the buyer's bids and leaving the room's standing would read as a bug however carefully it were explained.
  • The room only moves while a tab is open. Leave the site for an hour and nothing happened while you were gone. That is a demo's honest shape, and the alternative is a background service burning a free tier's CPU for an empty room.
  • Eight seconds is a compromise, not a measurement. Faster feels more alive and costs more requests; slower is cheaper and feels dead. It is one constant in one file.
  • Still open, and now genuinely next: per-user identity, so the room is other people rather than a simulation, and the streaming transport above once the edge can carry it.

Where it sits

The room is Application code: MarketService holds the competing bids and runs a round, and Auction in Application/Auction.cs lays the buyer's bids and then the room's over each vehicle through StandingRules.RaisedTo in Domain. The host's BidEndpoints only expose the tick, and the front end's useBids hook asks for a round every eight seconds without doing any auction math itself. Single responsibility keeps the competitor and the overlay order apart, so MarketService changes when the room's behaviour does and Auction changes only if the order does. It costs one small request every eight seconds per open tab and a room that stands still when nobody is watching, and an edge that can carry a stream would make Server-Sent Events the better transport.

Files

Addendum, 2026-10-03: the composition moved into Application

The two overlays were composed by the endpoints and the badge's answer was worked out in BidViews.cs in the host. Both now live in the Application ring, in Auction (api/TheYard.Application/Shared/Auction/StandingReader.cs): Overlay() and AsItStands hold the order (the buyer's bids first, the room's second), RoomRound picks the room's candidates, and BidsOf answers the badge. The rule both overlays use to raise a price, only when higher and keeping the larger bid count, is StandingRules.RaisedTo in Domain, so it has one copy where it had three. The sentence above that says the overlays are composed at the composition root describes the earlier shape. Endpoints now ask Auction and never hold the three services, and OnionTests.Endpoints_reach_the_auction_only_through_the_Application_ring fails the build if one does (ADR: Onion and SOLID, how this codebase holds them).

Addendum, 2026-10-09 (1.0.3.111): the first bid on an untouched vehicle could not be placed

The stale-minimum rule above said a minimum at or below the standing price is impossible, and disabled the button while it held one. That is true once a bid stands: the next minimum is that bid plus an increment. Before any bid stands it is the other way round: BidRules.MinNextBid is the opening ask, equal to the starting bid, so the rule read every untouched vehicle as stale and its form said "(updating the minimum)" with Place bid disabled, for as long as the page stayed open. Nobody could place the first bid on a vehicle nobody had bid on. The browser suite never met it because every bidding spec opened the most-bid vehicle, and the moved account spec (ADR: Accounts and per-user bids, the addendum of 9 October), which opens a vehicle with no bid, is the browser test that was red before this fix and green after it.

The rule now lives in src/lib/auction.ts as minimumIsStale, where the arithmetic belongs and where a unit test can hold it: stale only when a bid stands and the minimum has not moved past it; never stale before any bid stands. The panel reads it.

/**
 * Whether the minimum next bid the page holds is out of date. The minimum is
 * domain math and only the server has it, so the browser cannot recompute it
 * when a competing bid arrives, but it can tell that the one it holds is
 * impossible: once a bid stands, the next minimum is that bid plus an
 * increment, so a minimum at or below the standing bid is a number the server
 * has already moved past. Before any bid stands the rule is the other way
 * round, the opening ask is the minimum by definition and equal to the price,
 * and that is not stale; reading it as stale left the first bid on every
 * untouched vehicle impossible to place.
 */
export function minimumIsStale(vehicle: Vehicle): boolean {
  return vehicle.current_bid !== null && vehicle.min_next_bid <= vehicle.current_bid;
}

Live from src/lib/auction.ts, region stale-minimum, read from this build at 99df7a8.

Addendum, 2026-11-19 (1.0.5.117): the room opens the review route's lot

The review route's short path shows one live lot to strangers (ADR: The review route gives a reason before it asks, the addendum on one unit), and before the lot is read the room takes one turn on it, through the same Tick the round calls with everybody's standing and the clock, at most once in the fifteen seconds its answer is kept. It is this room under these rules, its ceiling, its grace and its refusal to buy a vehicle out, so the review route never shows a bid the room's own rules would not have made.

Enforced by

Not machine-checked. Held by review.

Store

The Yard, home

Steven StoutStaff .NET engineerRemote

Production .NET that stays up. Built with AI, measured on every version.

Steven Stout

Hi, I'm Steve. I build the systems that make delivery boring in the best way, then coach people inside them.

  • 200+

    production releases, none took the platform down

    Conway Investment Research, 2019 to 2024. Sole engineer for the first three years on a live financial advisory platform.

    See how
  • 50%

    shorter release cycle

    Storee Construction, 2024 to 2026. Four ASP.NET applications onto one .NET 10 platform on Azure, with a four-person team I hired and mentored.

    See how

01Verified

Steven Stout

A real person, and the work is mine.

  • Identity

    Checked by LinkedIn, not by me.

    LinkedIn verified my government ID.

  • Running system

    You are looking at it.

    Version 1.0.5.273 is live. Nothing ships unless it passes the automated gates first.

That's who I am. Here's how I work.

02Strengths

Ten strengths, each with the proof beside it. The numbers match my resume and LinkedIn, and the live ones are read from this site as you look.

  • 01

    Keeps production alive

    200+ releases on a live financial platform, and none took it down. Sole engineer for the first three years.

    See the Conway work

  • 02

    Simplifies messy systems

    Four ASP.NET applications onto one .NET 10 platform on Azure, and a release cycle 50% shorter.

    See the Storee work

  • 03

    Marries dev and infrastructure

    Blue-green releases at Storee that flipped in about 5 seconds with nobody signed out, and Azure Front Door at two employers.

    See this site's cloud

  • 04

    Designs data that holds up

    White-label clients on one shared database, the isolation built into the data, and no cross-client issues.

    See the Conway work

  • 05

    Keeps AI-written code honest

    15 quality numbers that may only improve: 273 releases in a row with none worse.

    See the quality numbers

  • 06

    Resourceful

    $30,000+ cut from Azure and vendor spend at Conway. This site's Azure bill is public, resource by resource.

    See the bill

  • 07

    Builds people up

    Hired and mentored a four-person team. 13 colleagues recommend me by name.

    Read the recommendations

  • 08

    Takes ideas to production

    This site: designed, built and run solo, with 352 versions measured through one gate.

    How it was built

  • 09

    Writes clearly

    Posts on real engineering problems, in plain words.

    Read the blog

  • 10

    Owns decisions

    153 decision records, each with its tradeoff and the call I made.

    See the decision records

Built with AI. Gated so quality never slides.

Steven Stout’s showcase: a used-vehicle auction on .NET and React, built and run by one engineer, live on Azure, with its decisions written down.

No quality number has gotten worse at any release since 1.0.5.1 on 10 November: 273 releases in a row.

One engineer, an AI agent and a gate that checks 15 quality numbers on every release. 352 versions measured, with every result public, the worst days included.

82 releases in the last 7 days, each through the same gate.

Async methods with no CancellationToken, may only fall

11091.0.3.1391.0.5.2731.0.4.115, the ratchet
Every number, on the Quality page

TheYard, right nowLive

Answering in

unread

02505007501,000

server time at p95, the usual five minutes of the last day.

Azure this month

unread

the bill, by resource, read from Azure. The Admin tab shows every line.

Since the last roll

unread

 

rolled in place by the pipeline, behind one gate.

People who have visited

unread

30 days agotoday

Scanners, my own tools' and my own reads left out.

03Start here

04Where teams are heading

How I see engineering with AI, and the setup on this site that backs it.

AI-augmented teams · Architecture and ownership

AI writes more of the code. Someone still has to own what ships.

Teams are going to be heavily AI-augmented. That moves the senior job toward architecture and technical ownership: deciding what to build in pieces small enough to verify, and owning what ships.

  • Task tracking will get automated too. Judgment stays human: seeing a design fail at scale before it does.
  • On this site the AI's first design held the whole catalogue in memory. I caught it when the App Service plan hit 82 per cent and moved the work to the store.

What the AI wrote, what I decided

07Tech stack

  •    
  •    
  •    

Read from the build, never typed by hand

What TheYard runs on

What we use, where it runs, its AWS twin, the version as built, and the file that proves it.

Cloud patterns, not one vendor: every Azure piece in this stack has a named AWS twin. Mapped, not yet run on AWS.

  • .NET 1114 projects
  • React 19.3TypeScript 7.0
  • Azure9 Bicep files
  • 11GitHub Actions workflows
The whole stack, with the file that proves each line

The last release the gate stopped was 1.0.5.258 on 2 December, at its browser 1 of 2 job.

08How it is built

09How it is run

10Who and why

Next step

11What has to work, where is it today, and what does success look like?

Book 20 minutes opens an email to me with those three questions in it, and I answer with a time.

Book 20 minutes

Your email app should have opened with this message. If it did not, copy it and send it from any mailbox.

Or message me on LinkedIn