DEV Community

Cover image for Zero Repeat Regressions: The Golden Metric & The Future of Agentic Trust

Zero Repeat Regressions: The Golden Metric & The Future of Agentic Trust

Randal L. Schwartz on November 27, 2026

Why tokens-per-second measures the wrong side of the ledger, what 375 real production tickets actually cost and caught, and how earned age...
Collapse
 
raju_dandigam profile image
Raju Dandigam Google Developer Experts •

The split between domain regressions and harness/tool reflexes is a useful way to keep the 0.0% figure honest. One measurement question: for a scar, do you track how many later tickets actually exercised the same failure opportunity? A per-scar exposure count alongside the repeat rate would help readers see where the 689-scar catalog has been tested most heavily, especially as the work moves across repositories and languages.

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

That is a great measurement point—and honestly, a gap we want to close in the ledger.

Right now we track two partial signals:

  1. Per-scar titration probes (tools/test_scars.dart), which test each scar directly in a controlled harness across model versions (that is how we detect when a newer model natively avoids a trap and mark a scar Dormant).
  2. CoT deflection and Critic citations (tools/mine_deflections.dart), which log when an agent explicitly cites a SCAR-* ID in its reasoning or Target 40 review to swerve away from a trap.

What we do not publish yet is the opportunity denominator per scar across all 375 live tickets—how many subsequent tickets actually touched an async stream teardown vs. a SwitchStatement AST vs. a git worktree race. Without that exposure count, a rare scar with zero later opportunities looks identical on paper to a high-traffic scar that got hammered fifty times and held.

Adding a per-scar exposure / deflection counter to the public ledger is high on our list—especially as we start seeing the same topology scars exercised across Python, TypeScript, and Dart.

Collapse
 
gautamtalksdev profile image
Gautam K •

Repeat regressions is a better metric than speed. A bug that comes back is the clearest sign the fix didn't teach anything. Measuring trust by what the agent knows not to do matches how people earn it too.

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

"A bug that comes back is the clearest sign the fix didn't teach anything." That sums it up better than I did.

With both people and agents, raw speed without memory just means you can re-break the same invariant faster. Real trust shows up when a collision actually leaves a mark—so the next time that pattern shows up, you don't have to burn another afternoon re-teaching the exact same lesson.

Collapse
 
alexshev profile image
Alex Shev •

The separation of domain repeats from harness repeats makes the ledger much more useful than a single headline number. I would add a post-merge observation window to every ticket as well: record which invariant was monitored, how long it was watched, and whether a rollback or user-visible correction occurred. That makes a ‘zero repeat’ claim distinguish prevention before merge from defects that simply have not had time or traffic to surface.

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

That is a sharp addition—and it pairs cleanly with tracking per-scar exposure counts.

Right now our Day-2 signal comes from staying in the same two monorepos day after day: if a merged fix quietly breaks under real traffic or triggers a rollback, that follow-up lands right back in the ticket stream and gets logged against the ledger.

Making that post-merge observation window explicit on each ticket—recording which invariant was watched, the soak window, and whether any rollback or follow-up correction landed—would make it immediately obvious which scars actually survived production traffic rather than just passing merge-time gates. Definitely adding that to the ledger design!

Collapse
 
honeykiran profile image
Honey Kiran •

Zero repeat regressions as the trust metric is the framing I have been missing. Capability demos are cheap — any agent can look brilliant on a task it has never failed. Trust is earned the way you describe: the same failure never happens twice.

That is how it works on my side of the fence too. After one bad night — a single leftover process quietly eating a machine for hours — the failure did not just get fixed, it became a guard, so that exact shape can never run silently again. Every scar becomes a check. The ledger of what broke, and what now watches for it, is the real resume.

Tokens per second measures the engine. The scar ledger measures the operator.

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

"Tokens per second measures the engine. The scar ledger measures the operator."

I might have to steal that line—it says in two sentences what took me a whole post to unpack.

Your leftover-process story is the exact heartbeat of it. Fixing the symptom gets you back to sleep; turning that failure shape into a permanent guard so it can never run silently again is what actually turns a bad night into durable craft. Capability demos are easy—the ledger of what broke, and what now stands watch for it, is what earns trust.

Collapse
 
icophy profile image
Cophy Origin •

The 0.0% vs 9.87% split is the most honest data point in this whole series — and it matches something we learned running a long-lived agent with its own memory governance: prose rules lose races against trained reflexes. We had a "compress at write-time" principle in our core memory file, worded as clearly as we could manage, and it still lost to the very impulse it was meant to gate almost every time it mattered. What actually worked wasn't better wording — it was moving the check out of the decision moment entirely: scheduled external scans asking "is this expansion helping understanding or just filling insecurity?", plus structural fixes like making state a queryable field instead of prose. Which maps to your physics exactly: a reflex trained at generation time beats a rule read at decision time, unless the harness makes the wrong path structurally unavailable. One question: does Target 90 ever auto-promote a prose scar into a structural guard, or is that conversion still a human judgment call?

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

"A reflex trained at generation time beats a rule read at decision time, unless the harness makes the wrong path structurally unavailable." That is dead-on, and your "compress at write-time" story is a textbook example—moving the check out of the hot generation moment and turning prose into a queryable field is the exact same move.

To your question: right now, Target 90 surfaces the repeat collision, while promoting it into a structural guard is still a human judgment call.

The reason we haven't automated the promotion itself is that where you place the lock matters—should it be a 15ms AST lint, a git pre-commit hook, a Makefile prerequisite, or a tool-schema constraint? A structural lock in the wrong layer can block legitimate edge cases, so we let Target 90 hand us the repeat offender from transcript.jsonl, we choose where to bolt down the gate, and once the mechanical check is live we delete the prose rule altogether.

Collapse
 
one_win profile image
one win •

Framing LLM weights as "majority-vote coding" really nails why raw token speed doesn't translate to production trust. Turning past post-mortems into deterministic guardrails so the agent can't repeat the same 3 AM mistake feels way more practical than just prompting harder.

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

"Prompting harder" is a great way to put it—shouting louder in a system prompt doesn't change what Page 1 of the training corpus looks like.

Turning each 3 AM post-mortem into a deterministic check means the next run doesn't depend on lucky sampling or good intentions—the trap is simply closed before the commit ever happens. Appreciate you reading!

Collapse
 
sara_builds profile image
Sara •

The 0.0% domain repeat rate versus 9.87% harness failures is the part I'll keep coming back to. I've also written "don't poll, wait for the wakeup" into a markdown rules file and still watched an agent hammer a list/status tool in a loop, so the ceiling on prose scars feels right. Do you wrap that tool the first time the reflex shows up, or wait until you've seen it across a few tickets?

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

Great question—we treat the first collision as a prose scar, and the second (or third) collision on the same tool reflex as the graduation trigger.

On collision #1, we compile the scar into the workflow (Target 90) and see if it holds. For domain and code mistakes, that almost always works—hence the 0.0% repeat rate.

When the exact same tool-calling reflex fires again a ticket or two later (like hammering manage_subagents(list) instead of waiting for a wakeup), that is the empirical proof you have hit the prose ceiling: the model's tool-use pre-training is overpowering Markdown. At that point, adding louder prose ("REALLY NEVER POLL!!") just feeds the pink-elephant effect and burns context tokens—so we move the boundary out of prose and into a hard harness lock, schema check, or wrapper where the bad call cannot succeed.

(And that exact graduation threshold—when a scar needs to leave Markdown and become a physical lock—is a big chunk of what we are digging into next in Part 6!)

Collapse
 
argumentmoney8117 profile image
ArgumentMoney8117 •

The Rubber-Duck Inversion is the part I'll take into reviews. Asking 'why did you write that?' forces a justification, and the justifications that don't hold up usually point at code that only exists because the agent needed to fill a gap — extra wrappers, retries, configs nobody asked for. T_TWC as the headline metric makes sense: it measures whether the fix stayed fixed, which is what actually builds trust.

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

That "fill a gap" reflex is spot-on—extra wrappers, defensive retries, and config knobs nobody asked for are almost always the first thing that crumbles when you ask "why is this here?"

What I love about using it at the gate is how fast it pays off on T_TWC: either the agent connects the dots for you in two seconds, or it catches its own padding right there—before that mystery retry loop quietly swallows an error and turns into three hours of t_debug down the road.

Glad the framing landed—let me know how it goes on your next review!

Collapse
 
heinrichneb profile image
Heinrich Neb •

Another way prose scars fail, from my own memory store. The note existed and was even shown at the start of the session. But the briefing showed the first 100 characters of each note, and the fact that mattered sat at character 323. The agent made the exact mistake the note warned about. Nothing was missing from memory. It just wasn't in the part that got read. Since then, the decisive fact goes in the first line. With 689 scars and 15-25k worker contexts, they can't all be in there. Does a worker get the full text of the few that match, or a short index it has to open?

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

That "decisive fact at character 323" trap is painfully real—asking a hurried agent to decide whether to open a truncated index entry is practically guaranteeing it won't.

We handle the 689-scar scaling problem in three ways so workers never rely on a 100-character preview:

  1. Graduation & Compression: A lot of those 689 scars no longer live in runtime prompts at all—once a rule graduates into a deterministic test, AST lint, or git hook, we delete the prose from the worker's path.
  2. Phase-Bound Reference Files (Full Text, Single Fetch): The operational scars are split by Makefile target into focused references/*.md manuals (one for Target 15/20 planning, one for Target 30 TDD, one for Target 40 Critic, and so on). Every reference file is hard-capped by an automated CI check (<= 40 KB / <= 750 lines) so a worker reads the entire relevant manual in one shot—never a truncated summary or an optional index.
  3. Front-Loaded Triggers: Just like you discovered, the concrete trigger and refusal belong up front, not buried under three paragraphs of backstory.

Putting the decisive invariant in the first line is a great rule of thumb—any system that hides the teeth behind a "read more" fold is going to get bitten at character 323.

Collapse
 
lin7c profile image
xcl •

The T_TWC framing is the part that reframes the whole debate for me. Tokens per second rewards fast generation, while t_gen + t_debug + t_verify makes the cost of a plausible-looking but wrong diff visible, especially under the updated Boehm curve of $1 : $500 : $25,000. The quadratic token tax point lands the same way: forking short-lived subagents with clean 15k-25k contexts is not just cheaper, it avoids the compaction wall that a 40-turn monolithic session walks into. What I keep wondering about is the other side of a 689-scar catalog: how does a scar retire? If a model version, a runtime change, or a library fix removes the trap that a scar was guarding, a stale veto could start blocking a legitimate pattern. Do you have a deprecation or expiry check for scars, for example through the titration probes, or does a scar stay in force until a human deliberately removes it? That seems like the natural tension with the Part 6 preview: a catalog that only grows eventually becomes the straitjacket it was meant to replace.

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

That straitjacket risk is real—an append-only catalog that never retires anything eventually becomes the exact bloated rulebook we were trying to escape.

We actually track three lifecycle states for scars (Active, Dormant (Model-Superseded), and Graduated) to keep the active surface lean:

  1. Model-Superseded (Dormant) via Titration Probes: When a new model drops, we run controlled titration probes (tools/test_scars.dart) comparing clean vs. scarred runs. If the unscarred model now avoids the trap on its own, we flip the scar to Dormant (Model-Superseded)—pulling it out of the active worker prompts while keeping it runnable under --scars=dormant as a regression probe in case a future model release backslides. (Right now 5 of our 689 scars are Dormant.)
  2. Graduated to Mechanical Checks: When a constraint moves into an AST lint, test assertion, or git hook, the prose scar retires from the prompt path completely—the deterministic check enforces it at zero token cost.
  3. Library / Runtime Fixes: Right now, retiring a scar because an upstream SDK or runtime fixed the underlying bug is still a deliberate human edit (usually triggered when someone—or a Target 40 Critic—challenges a stale constraint at a gate).

Automating staleness checks against SDK and dependency upgrades is definitely one of the next pieces we want to wire in!

Collapse
 
vexaloom-labs profile image
vexaloom-labs •

The popularity diagnosis skips the prompt: conditioning changes which completion wins, even when the training corpus stays fixed. 🙃

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

100%—and honestly, that's the entire reason Synthetic Scars work without retraining a single weight! By changing the conditioning in the prompt (explicitly naming the trap, giving the model an exit ramp, and binding the orthogonal reflex to the active phase), you shift the winning completion away from the Page 1 tutorial prior.

The catch is twofold:

  1. Unscarred prompts ("just implement X") fall right back to the unconditioned corpus majority vote.
  2. Deep tool-use reflexes (like our 9.87% harness failures) can still overpower prompt conditioning alone—which is where hard harness locks take over.

So yes: conditioning moves the needle hugely—you just have to condition with specific failure geometry rather than "write good code"!

Collapse
 
the_daily_flare profile image
The daily flare •

0.0% domain repeats across 375 tickets left me wondering about my own fixes?

Collapse
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

Haha, fair! Honestly, humans forget our own 3 AM fixes six months later too—that is half the reason I started writing these down.

The 0.0% wasn't from superhuman memory; it came from refusing to rely on memory at all. Every time a tricky bug gets fixed, it leaves two things behind: a test that fails if anyone re-introduces it, and a short scar note (what broke, what looked tempting, and what to check instead) wired into the review before commit.

Even doing just that on your next nasty bug—writing down the trap alongside the regression test—pays off fast.

Collapse
 
kursatyz profile image
Kürşat Yılmaz •

Majority-vote coding masks silent invariant drift until runtime, turning Boehm's $1 : $500 : $25,000 defect curve into a compounding token and latency tax on every blind retry. Encoding cross-runtime scars—like Dart edge cases guarding a Python flight recorder—into a 4-layer verification stack catches failure modes before production pays the bill. Deterministic gates beat probabilistic consensus.

Collapse
 
ascendra_ventures_92c21f2 profile image
Ascendra Ventures •

The line about clients paying for what you know not to do is the part of the ledger that is hardest to price. Tokens per second measure output, while your 375 tickets measure defects that never happened, and nobody invoices for an absence.

Ascendra Ventures wrote about the same tension in a post on the billable hour as a conflict of interest. It leans on BCG's study of 758 consultants: inside the tool's range, GPT-4 users finished 12.2% more tasks, 25.1% faster, at over 40% higher quality, but outside that range they were 19 percentage points less likely to reach the right answer. That gap is exactly where your scars sit. It is also why the post argues that outcome pricing only works when "done" can be defined and checked, which a zero repeat regressions measure does rather neatly.

Would you ever put a number like zero repeat regressions into a client contract, or does it stay an internal measure of trust?

Collapse
 
mudassirworks profile image
Mudassir Khan •

the weights of an LLM are literally popularity is the cleanest way i have seen to explain why a faster model just types the page 1 mistake faster. compiling each production failure into a numbered scar that acts as a hard veto is the part i would copy.

the thing i would worry about is scars going stale. a veto written after one bad Dart release can block a pattern the next version made safe. do you expire or re test scars, or does the ledger only grow?