Build1 distinct publisher3 min readPublished
A 10,000-runner race simulation keeps Google's ADK agent wrapper for telemetry while a before-model callback returns deterministic tool calls in place of inference, a sound design that arrives without a single published measurement.
The Engineer · Build desk

Compiled by The EngineerSomething wrong?How this is made
The invariant claimed here is that runner count and token count are unlinked [2]. Nothing in the framework enforces that. One callback does, and it has to have an answer on every invocation for the property to hold [3]. The model identifier stays in the agent constructor, because the LLM agent will not build without it [4], so the inference path remains wired the entire time the system is running. Any runner state the callback has no deterministic branch for falls through to a model round trip, which costs tokens and a network hop [6]. The upside is that the fallthrough is reviewable in ordinary code: the logic deciding a tick is plain Python, and plain Python is unit-testable [7].
State is where the author says the design first came under load. The project ran on 50 Cloud Run instances [14]. Ten thousand runners spread evenly over fifty instances is two hundred runners each [20], but the Global Load Balancer holds no affinity for the instance that owns a given runner's state [15], so any instance can be asked about any runner. ADK's in-memory session store leaves that state trapped where it was written and invisible to the other forty-nine instances [16], each unable to answer for a runner it does not hold [21]. AlloyDB and Cloud SQL were rejected on query, transaction and row-locking overhead [17]. The write-up breaks off mid-sentence at that point and never names the replacement [18], so the architecture's hardest-working component at 50 instances goes undocumented.
On transfer: the supplied text carries no measured figures. There is no tokens-per-tick number and no tick duration set against the per-decision design this replaced [22]. "Millisecond-level" describes the deterministic tool call, not the tick it serves [7]. What the piece does establish is structural, and the structure is correct. Token spend tracks model invocations, not agent objects, so a callback that always returns removes the invocations [6]. That only holds where the per-tick decision is computable before the run starts. Put a decision at the tick that genuinely needs judgment at runtime and the callback has nothing to return, and you are back to paying per entity. The author's stated position is that the model belongs in the design phase rather than the execution phase, and he reports that interview candidates who propose computing a route with an LLM at runtime usually do not get the job [19].
An LLM agent whose model is never called is an odd object to hand a reviewer. The author's justification is "scar tissue" [5]: the wrapper earns its place through telemetry, A2A messaging and a structured lifecycle, not through inference [5]. In a simulation with ten thousand identical entities and a fixed route, that is a defensible trade, though it turns into a bad one if what you wanted from the framework was the model.
Ranked by verification strength, evidence, and original report placement.
By intercepting the invocation, the design adheres to the ADK paradigm and maintains full observability without paying the "token tax" or the latency penalty of a round-trip to the model.
The callback replaces probabilistic inference with millisecond-level deterministic tool calls, which the author says keeps unit-testable logic inside an otherwise gnarly system.
The routing task was described as an NP-hard problem: stitching together a 26.2188-mile path using a specific road network while avoiding walking bridges and indoor paths.
The author set out to build a simulation involving 10,000 independent agents, and states that calling a Large Language Model for every runner's decision was "dead on arrival" at that scale.
The stated goal is to leverage the agentic framework for lifecycle management and telemetry while offloading the heavy lifting to deterministic code, so that adding more runners does not add more tokens.
The technical linchpin of the architecture is the "before model" callback, a feature within the Agent Development Kit (ADK), which intercepts every invocation and returns deterministic tool calls.
Distinct publishers with included, body-backed reporting in this cluster.
dev.to
1 article · September 4, 2026
Follow any of these and your For You feed starts watching them — no settings page required.
build
The demo passed because Cloud Run didn't scale: a correlation bug that emits no error1 distinct publisher
security
Washington names industrial-scale distillation, then hands the detection bill to abuse teams1 distinct publisher
build
One instruction to delete the sample data surfaced three invisible defects in an hour1 distinct publisher
security
Google's reference agent approved a $10,000 refund on a $149 order, on purpose1 distinct publisher
Evidence-backed comparisons of source perspectives and observed adoption signals. Read the methodology
Which Builder, Operator, and Investor concerns the observed source mix emphasized—not a truth score.
Evidence, demonstrated adoption, hype gap, incentives, and confidence are assessed independently, each on its own current evidence. How these are measured.
One builder's account, no numbers
Everything in this story traces to a single dev.to post by the person who built the simulation. The mechanism is specific enough that another ADK user could reproduce it — a declared model, a callback that answers first, tool calls returned by hand — which is more than most architecture posts offer. But the assertions doing the persuading, zero tokens at 10,000 agents, millisecond decisions, SQL breaking first, arrive with no token counts, no timings, and no second party who has run the thing.
One self-run simulation
Adoption evidence begins and ends with the author's own "Race Condition" project: 50 Cloud Run instances, a community Redis session service bent into shape by subclassing, a live view of a thousand runners. Real deployment, one deployer. Nothing indicates another team has used the callback-interception pattern, and the components named — ADK, Gemini, Cloud Run, Redis — are borrowed rather than evidence of this design spreading.
"Zero tokens" asserted, never counted
A headline promising 10,000 agents and zero tokens, plus a closing line that the project "proves" where AI scale is going, sit on top of a post with no measured token, latency, or cost figure. The engineering underneath is modest and sensible — skip inference where the answer is arithmetic — so the overstatement is in the framing and the proof language, not in the design. The hiring anecdote does similar work, substituting the author's judgment for a benchmark.
Reputation, not commerce
No sponsorship or vendor relationship is disclosed or implied, and the post gives away a working pattern rather than selling anything. What it does buy is standing: the piece speaks as the architect, opens on the boardroom-versus-trenches divide, and uses a hiring question to place the reader on the wrong side of it. That is an incentive to present a clean thesis, and it shows in the absence of any result that would complicate the story. Every named component belonging to one vendor's stack is a consequence of the build, not evident promotion.
Plausible, unverified, and we misread it once
We hold the architecture description with reasonable confidence: it is internally coherent, matches how ADK callbacks work, and the session-store findings are the kind of thing you only learn by hitting them. Confidence is capped by two things. The claims that would matter most to a decision are unmeasured, and our own earlier reading of this post was incomplete — it stopped in the middle of the SQL discussion and we reported the winning session store as unnamed when the full text names Redis. That correction is now in the record.