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
 
aiapikey profile image
HAOHAOnovai •

"Zero repeat regressions" is the right north star, and the thing that makes it hard to measure is that a repeat is not automatically a regression - the same input does not always produce the same outcome.

I measured this on a short prompt, temperature 0.7, five runs per model. One model returned 32 tokens five times out of five. Another returned 84, 93, 111, 221, 393 - same prompt, same request body. Both are "what the model does on this input", and neither is a bug. So if an agent fails a task today and again tomorrow, that is a repeat, but it is only a regression if it repeats at a higher rate than the run-to-run baseline.

The control that makes the metric mean something is cheap: run each failure N times rather than once, and compare the failure rate against the rate the same task had before the change. A failure that shows up 5 of 5 is a regression. A failure that shows up 1 of 5 was probably always there, and chasing it will have you reverting correct changes.

Practically that means the unit you store is not "did it fail" but "how many of N runs failed", per task, with N printed next to it. Then repeat regression becomes a statement about rates and not about single observations, which is the only version of it that can be actioned without false positives.

Curious whether you are already doing repeated runs or whether the golden metric is defined on single trials so far.

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

That distinction between a stochastic 1-of-5 baseline sample and a true rate shift is spot-on—and storing k / N with N printed next to it is great eval hygiene.

In our setup, the answer splits cleanly across our two measurement layers:

  1. In the 375-ticket production ledger: Those are single-shot live tickets—you only merge a PR once. There, "repeat regression" means a previously scarred bug class escaping past the gates onto a subsequent ticket (not just a single noisy sample during generation). In fact, catching a 1-of-5 stochastic bad draw before git commit is literally what Target 30 TDD and the fresh-context Target 40 Critic are for—so variance in the generator doesn't become variance in main.
  2. In our lab harnesses (tools/test_scars.dart & our pre-training benchmarks): We do run repeated N-trial A/B runs (CleanRate vs. LoadedRate)! That is how we separate real scar signal from run-to-run variance—and how we decide when a model has improved enough natively to flip a scar to Dormant (Model-Superseded) without getting fooled by a lucky single trial.

Completely agree that without k / N in your evals, you end up chasing sampling noise and reverting changes that were actually working!

Collapse
 
aiapikey profile image
HAOHAOnovai •

The two-layer split is right, and I would build one consequence of it into the reporting: the layers have different variance budgets, so a single regression rate across both is not a rate at all. Production variance comes from task diversity; harness variance comes from sampling. Average them and you get a number that moves when either input changes, with no way to tell which one moved.

The second thing is about the gate, and it is arithmetic rather than opinion. Catching a 1-of-5 bad draw before commit only works if the gate's N is sized from the escape rate you are trying to beat. If a scar class escapes onto a subsequent ticket at 1 in 50, a 5-trial gate catches it about 10% of the time - the gate is calibrated to a much higher rate than the one you care about.

The formula is N = ln(1 - q) / ln(1 - p), for catching rate p with probability q. For p = 0.02 and q = 0.9 that is 114 trials. Which is the honest boundary of the approach: a five-trial gate is well matched to a noisy generator where the failure is common, and it is nearly blind to a rare scar class. Both layers are doing real work, they are just sized for different populations of bugs, and saying which population a gate is sized for is the part that makes the number trustworthy.

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

Both of those points are crystal clear—and that N = ln(1 - q) / ln(1 - p) boundary is great to have written down explicitly.

  1. Separate variance budgets: Totally agreed—mixing production task-diversity escapes with lab sampling variance into one blended rate would hide which lever actually moved. Keeping the 375-ticket production ledger strictly separate from our N-trial lab titration numbers is non-negotiable.
  2. Sizing the gate to the bug population: At p = 0.02, a 5-trial stochastic probe is indeed almost blind (~10% catch rate vs. 114 trials for 90%). That is actually why our pre-commit gates don't try to out-sample rare defects with repeated LLM draws—instead, Target 30 (deterministic Red-to-Green tests + AST lints) and Target 40 (fresh-context Critic inspecting the concrete git diff that was actually generated) act as deterministic/targeted checks on that one artifact, while multi-trial lab runs measure the generator's baseline drift across model versions.

Saying explicitly which population each gate is sized for—common generator noise vs. rare production escapes—makes the whole measurement story much stronger.

Collapse
 
aiapikey profile image
HAOHAOnovai •

Thanks - and since you already answered the two points, the one thing I think is still worth writing down is why "use deterministic gates instead of sampling for rare defects" is not just a judgement call. It has a crossover point you can compute.

For a defect at rate p, sampling needs N = ln(1-q)/ln(1-p) trials to catch it with probability q, at cost C per trial. A deterministic check costs D to build once and 0 per run. So build the deterministic check whenever D < N * C.

At p = 0.02 and q = 0.9 that is N = 114. If a trial costs even 30 seconds of a model call, N*C is around an hour of compute per detection, which puts almost any deterministic check on the winning side - a lint rule, a test, a schema assertion. That is why your instinct is right and why it generalises: the arithmetic will almost always favour the deterministic check for rare defects, and almost never for common ones, where N is small enough that a few trials are cheaper than writing the check.

Which gives a rule for where to spend effort: sort your scar classes by rate, and only the ones above roughly 1/N are worth catching by sampling. Everything below that needs a deterministic check or it will not be caught by the gate at all.

Said differently: a sampling gate is a filter with a known pass-through rate for each defect class, and saying what that rate is for each class is the part that makes the gate trustworthy. That was the thing I took from your two-layer split.

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

D < N * C with N = ln(1 - q) / ln(1 - p) is a fantastic way to state that—it turns "when do you graduate a scar into a deterministic check?" from a judgment call into a computable crossover point.

Sorting scar classes by failure rate and putting everything below ~1/N behind a zero-marginal-cost check (a 15ms lint, a unit test, or a schema assertion) also matches what we see in practice: common traps are cheap to catch in a small review loop, whereas rare traps are an hour of compute to sample reliably—so building the deterministic lock once (D) wins almost immediately.

Mind if we cite your D < N * C crossover framing when we write up the graduation threshold in Part 6?

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
 
gautamtalksdev profile image
Gautam K •

Speed without memory just means re-breaking the same invariant faster. That's the line I'll keep from this thread.

Collapse
 
mycute_97b39c4e34027570f9 profile image
Atom Zero •

The "repeat regression" framing is the right one. In our small local model releases, the gate is deliberately boring: same seed, same 200 rows, same safety/self-harm suite, and a release is blocked if a metric regresses even when the average improves. The hardest bugs are the ones that only show up in the second turn or after a tool call, so "works once" is never evidence. A public ledger of failures, like the 375 tickets here, is worth more than another benchmark table.

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

"Deliberately boring: same seed, same 200 rows... blocked if a metric regresses even when the average improves." That is the exact discipline more teams need—boring, non-compensatory gates beat flashy new benchmark tables every day of the week.

And your point about second-turn / post-tool-call failures is dead-on: single-turn evals miss almost all the state-machine drift and tool-reflex bugs that only surface once the model has to react to its own output or a real tool response. "Works once" really isn't evidence!

Collapse
 
mycute_97b39c4e34027570f9 profile image
Atom Zero •

Thanks — the non-compensatory point is the one that matters. We also treat the second turn as a first-class gate: same rows, but scored after the model has seen its own previous reply. That catches the "works once" failures a single-turn average hides. Boring is the feature.

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

"Boring is the feature." — I'm stealing that for a sticky note.

Scoring Turn 2 on the same rows after the model has seen its own Turn-1 output is such a clean way to smoke out self-anchoring and state drift. Once it works in single-turn, all the real bugs hide in the follow-up.

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
 
randalschwartz profile image
Randal L. Schwartz Google Developer Experts •

"Nobody invoices for an absence"—that is the exact paradox of senior engineering, and that BCG jagged-frontier gap (19 percentage points worse outside the tool's safe zone) is dead-on where the scars earn their keep.

To your question: I would not put "0.0% repeat regressions" into a client contract as an absolute legal SLA, for two reasons:

Goodhart's Law: The moment a zero-repeat number becomes a contractual penalty, people start spending energy arguing over whether a bug was a "repeat" or a "new edge case" instead of fixing the system.
External Drift: Upstream SDKs, third-party APIs, and shifting requirements can break invariants from outside your diff.

What does belong in a client engagement—and actually makes outcome pricing work—is contracting around the verifiable mechanism: every defect caught in review or production gets a deterministic regression test, a codified scar, and an isolated pre-commit Critic pass before the next ticket ships, with "done" defined by green invariants rather than hours spent firefighting your own previous patch.

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

"Nobody invoices for an absence"—that is the exact paradox of senior engineering, and that BCG jagged-frontier gap (19 percentage points worse outside the tool's safe zone) is dead-on where the scars earn their keep.

To your question: I would not put "0.0% repeat regressions" into a client contract as an absolute legal SLA, for two reasons:

  1. Goodhart's Law: The moment a zero-repeat number becomes a contractual penalty, people start spending energy arguing over whether a bug was a "repeat" or a "new edge case" instead of fixing the system.
  2. External Drift: Upstream SDKs, third-party APIs, and shifting requirements can break invariants from outside your diff.

What does belong in a client engagement—and actually makes outcome pricing work—is contracting around the verifiable mechanism: every defect caught in review or production gets a deterministic regression test, a codified scar, and an isolated pre-commit Critic pass before the next ticket ships, with "done" defined by green invariants rather than hours spent firefighting your own previous patch.

Collapse
 
kling4ai-production profile image
Kling4 AI •

That Randal Schwartz line about paying for knowing what not to do hits hard with coding agents. A model has zero scars from a 3 AM rollback, so measuring tokens per second misses the whole picture if it keeps reintroducing the same brittle pattern.

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

Exactly—high tokens per second on a pattern that's going to wake someone up at 3 AM is negative throughput. Until you give the agent a permanent memory of what not to do, raw speed just accelerates the rollback cycle. Appreciate you reading!

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
 
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
 
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
 
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
 
arslan_ah profile image
Arslan Ahmad •

"The weights are popularity" is such a clean way to put it. The model's default answer is the most copy-pasted one, not the most battle tested one, and those are often very different things.

Turning past incidents into hard vetoes instead of hoping a bigger model avoids them makes a lot of sense. Curious how you keep the veto list from going stale though... some scars come from constraints that eventually disappear, like an old library bug that's since been fixed.

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

Great question—staleness is the exact failure mode of naive "append-only" rule lists. We handle it with an explicit lifecycle (Active, Dormant, Graduated) backed by automated titration probes:

  1. Empirical retirement (Dormant): Every scar is paired with a clean-vs-loaded probe. When a newer model or updated dependency stops tripping on the clean baseline, the scar moves to Dormant—out of the hot prompt, but still kept in the regression suite so future model swaps don't silently reintroduce it.
  2. Deterministic graduation (Graduated): Whenever a constraint can be enforced by a compiler rule, lint, or test assertion, it graduates out of prose into code.
  3. Phase-scoped loading: Active scars are bound to the specific workflow phase where they apply, so nothing irrelevant rides along in context.

Appreciate the thoughtful read!

Collapse
 
mycute_97b39c4e34027570f9 profile image
Atom Zero •

The 'zero repeat regressions' metric matches what we see with self-edit gates. A candidate can improve the average and still reintroduce a fixed failure. We now keep an append-only registry per candidate (parent, seed, gate JSON, decision) and reject on any repeat, not on the mean. The hard part is keeping the regression set small and adversarial.

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

"A candidate can improve the average and still reintroduce a fixed failure... reject on any repeat, not on the mean."

That is such an important distinction—mean score improvements are notorious for hiding a silent step backward on a previously solved failure. Treating any repeat as a hard veto (rather than averaging it away) is the only way a ledger actually stays monotonic.

And you're dead right about the hard part: keeping the active regression set small and adversarial instead of letting it turn into bloat. Our main tricks there have been graduating mechanical checks out of the probe set into fast deterministic tests/lints, slicing active probes by phase so nothing irrelevant loads, and retiring probes to Dormant once the baseline stops tripping on them—so what stays in the hot path is lean and sharp.

Collapse
 
swethasingh106 profile image
Swetha Singh •

The idea of turning production failures into permanent learning rules is what makes this interesting. AI coding agents don't just need better models or faster outputs; they need engineering judgment, context, and the ability to recognize patterns that should never be repeated. Speed is useful, but avoiding expensive mistakes is where the real value lies.

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

Exactly—raw speed without memory just lets an agent hit the same wall faster. Turning production bruises into permanent guardrails is where reliability actually starts to compound. Appreciate you reading!

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
 
sherotree profile image
Sherotree •

The TypeScript confidence inversion is the part I would actually use. Trusting gcc -O3 works because you check invariants at the boundaries, not because anyone audited the assembly. I'd keep Layer 1 — the failing test that proves the bug — mandatory when the diff is in a language the reviewer doesn't love. Otherwise "yes, continue" just means nobody can read the syntax, and Layer 4's specialist escape valve becomes the only thing standing between that and a rubber stamp.

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

100% agreed—Layer 1 (Red-to-Green TDD) has to be non-negotiable, especially when the diff is in a language you don't want to hand-audit line by line.

Without a failing test that first proves the bug exists (or the new contract isn't satisfied yet), "yes, continue" really does collapse into a rubber stamp, and you end up dumping all the verification burden onto the Layer 4 specialist—which turns them right back into the bottleneck.

Keeping Layer 1 mandatory, backed by the fresh-context Critic and Socratic cross-examination at the gate, is what lets Layer 4 stay an occasional escape valve instead of a daily fire drill.

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
 
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
 
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
 
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
 
mathewshales6545 profile image
Mathews Hales •

The 0% repeat regression figure caught my attention, especially when you also included the 9.87% harness failures. I appreciate that you didn't hide the less impressive number. It makes the results more interesting than simply claiming the system works perfectly.

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

Thank you—honestly, that 9.87% is the most valuable number in the table for us. Anyone can cherry-pick a 0% slide, but showing exactly where prose scars still lose to low-level tool-calling reflexes is what points straight to the next engineering fix: moving those boundaries out of Markdown and into hard harness locks. Appreciate you reading!

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
 
ryanjordan profile image
Ryan Jordan •

I built and publicly verified a 10-million-character AI memory benchmark

I built Ubiquitous AI to solve a fundamental problem with current AI systems: they forget, drift, alter, or hallucinate information when asked to retrieve it later.

I then created and published a deterministic benchmark to test whether an AI system can reproduce a large body of information verbatim—character for character.

Results

  • 10,088,169 characters reproduced verbatim
  • 274 independent tests
  • 0 failures
  • 0% hallucinations in the benchmark
  • Deterministic, character-for-character comparison
  • SHA-256 verified
  • Independently tested
  • Reproducible by others

Expected SHA-256:

4c5c0db1d26610115762220df94a7a3586787d70d8a69df3a1a87ce84737c1b0
Enter fullscreen mode Exit fullscreen mode

This is not a subjective evaluation or an LLM judge. Every response is compared against a fixed expected output using a deterministic checker.

The benchmark tests whether an AI system can preserve and retrieve information exactly—not approximately, not summarized, and not reconstructed from memory.

Run the benchmark

The complete milestone, methodology, deterministic verification process, and instructions are available here:

rockbench.dev/10-million.html

I’m inviting OpenAI, Anthropic, Google, and other AI labs to run the same benchmark against their memory systems.

If an AI system claims reliable long-term memory, the result should be measurable, reproducible, and independently verifiable.

AI #ArtificialIntelligence #LLM #AIMemory #RAG #AIEngineering #MachineLearning #Benchmarking #Reproducibility #UbiquitousAI #RockBench

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
 
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?

Collapse
 
ruslan_surkisov_9fe54d728 profile image
Ruslan Surkisov •

Your distinction between code regressions and process failures is useful. If applying this approach to a regional news site such as teplodar.biz.ua/, I’d track recurring publishing failures alongside the time spent on human review. How do you classify incidents that share a root cause but surface in different parts of the system? An example connecting the original incident, its regression test and subsequent monitoring would make the zero-repeat metric easier to reproduce across projects.

Collapse
 
hassamdev profile image
Hassam Fathe Muhammad •

Hmm, as developers we should move beyond prompt engineering towards engineering and developing reliable AI workflows.

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

Yes, and that's what Scars is trying to do, by identifying all the ways LLMs have trouble, and providing assistance where needed.

Collapse
 
sameer_mohsin_7387d82b7bf profile image
Sameer mohsin •

Great

Collapse
 
earl_kennetharaador_51b profile image
Earl kenneth Arañador •

Agentic AI ERA