Why tokens-per-second measures the wrong side of the ledger, what 375 real production tickets actually cost and caught, and how earned agentic trust turns a nervous code-reviewer into a flight director.
"You're not paying me for what I can do. You're paying me for what I know not to do—and I've got the scars to prove it."
— Randal L. Schwartz
1. We Don't Code by Majority Vote
For a few decades now, whenever I have sat across from a client who was quietly comparing my consulting rate against cheaper "new talent," my pitch has been pretty short. I hold out my forearms and tell them: "You're not paying me for what I can do. You're paying me for what I know not to do—and I've got the scars to prove it."
Watch what happens when a junior developer types "how do I do X" into a search engine. Ten links come back on Page 1. The junior assumes those ten results are roughly ranked from best to worst, clicks #1 or #2, copies the snippet, and moves on. Now watch what happens when a senior architect looks at that exact same Page 1. Before reading a single word of the prose, they mentally cross four of those ten results off on sight as "terrible, fragile, or a 3 AM pager nightmare six months from now." They don't need to benchmark them. They have already lived through what happens when that pattern hits production.
Now think about what an unscarred Large Language Model actually is.
Cross-entropy pre-training optimizes P(token) to match corpus frequency. In plain English, the weights of an LLM are literally popularity. When you ask a raw coding model to solve a problem, its highest-probability completion is the most frequently copy-pasted tutorial answer on the internet—including those four toxic Page 1 recipes that every seasoned engineer crosses off on sight.
We don't code by majority vote, and we shouldn't expect AI coding agents to do it either. Without a mechanism to compile your 3 AM production failures into hard vetoes (-∞ barriers in the candidate space), buying a "smarter" or faster LLM just gives you a faster typist for the majority-vote mistake on Page 1.
Before we open the ledger, here is a quick 30-second decoder ring for two notations from my Public Workflow Gist (also documented at syntheticscars.org) if you are jumping into the series here:
-
Target 00throughTarget 90: Instead of a 20-step English checklist, our agent runs a 1976MakefileDAG (Part 3.6) backed by a 1983/etc/init.dstate directory (Part 3.7).Target 15/20handles codebase archaeology and human plan approval;Target 30runs Red-to-Green TDD in an isolated worker subagent;Target 40/45forks a fresh, un-primed Six-Pillar Adversarial Critic to try to break the diff before I ever look at it;Target 50/60handles commit and push;Target 70/80runs PR bot triage and landing; andTarget 90runs post-mortem scar consolidation. -
SCAR-<DOMAIN>-<NN>: Every time an agent steps on a rake—or needs a human Socratic nudge at a pause gate—Target 90compiles that collision into a permanent, numbered Synthetic Scar (The Wound,The Trap,The Circuit Breaker, andThe Permanent Reflex). The prefix names the subsystem that got burned: for exampleSCAR-ASYNC-01(stream teardown leaks),SCAR-AST-07(DartSwitchStatementcontrol-flow jumps), orSCAR-PROC-110(pre-terminal gate pairing races).
2. Opening the 375-Ticket Ledger (And Being Honest About What Broke)
Back in Part 4, we were sitting at 238 production tickets and 588 scars with a 0.0% repeat regression rate. Since then, we kept running real tickets every day—both on open-source Dart/Flutter monorepos (like BlocSignal) and on a commercial industrial monorepo under strict compliance and human sign-off rules.
Here is where the live empirical ledger stands today across 375 evaluated production tickets and 689 codified scars (665 public + 24 domain-private):
| Metric | Cohort A (Open-Source, 216 Tickets) | Cohort B (Commercial Industrial, 159 Tickets) | Combined (375 Tickets) |
|---|---|---|---|
Mean Human Socratic Nudges (N_nudge) | 1.47 (317 / 216) | 1.25 (198 / 159) | 1.37 (515 / 375) |
Autonomous First-Pass Success (V_first) | 59.3% (128 / 216) | 74.8% (119 / 159) | 65.9% (247 / 375) |
| Domain / Code Repeat Regressions | 0.0% (0 / 216) | 0.0% (0 / 159) | 0.0% (0 / 375) |
Harness / Process Repeat Failures (R_fail) | — | — | 9.87% (37 / 375) |
Hold on—look closely at those last two rows. I could have cherry-picked the top number, stopped counting at Ticket 299, and handed you a shiny marketing slide. That's not how I write, and it's not how engineering works.
Here is what actually happened. Across all 375 tickets, our domain and code repeat regression rate is still 0.0%. Once a code bug—an async stream leak, a Riverpod disposal race, a SwitchStatement AST jump, a broken storage key—gets compiled into a scar and wired into Target 15/20 and Target 40, we have not shipped a single repeat of it into production.
So where did those 37 repeat failures (9.87%) come from? Almost every single one of them landed in Tickets 302–375, and every single one of them was a workflow-harness / runtime-tool reflex, not a code bug:
- Modal Tool Collisions (
SCAR-HCI-05/SCAR-HCI-08/SCAR-HCI-11): When the IDE runtime introduced an interactive multiple-choice modal tool (ask_question), the orchestrator repeatedly fell into a reflex of firing the modal withcontent: null—asking me to approve a gate without printing the review summary or landing matrix in the chat first. - Subagent Polling Loops (
SCAR-PROC-176): When the runtime added reactive wakeup timers (schedule) alongside async subagents, the orchestrator ignored reactive wakeups and burned dozens of polling cycles callingmanage_subagents(list)in a loop like a nervous parent checking the oven every ten seconds. - Premature Gate Emissions (
SCAR-PROC-174/SCAR-PROC-179): Emitting a review-approval banner before the Critic subagent had actually returned its verdict.
That split between 0.0% domain repeat regressions and 9.87% harness repeat failures is one of the most useful data points we have ever collected. It proves two things at once:
- Synthetic Scars work remarkably well at preventing domain code regressions when backed by TDD and a fresh-context Critic.
- Prose scars have a hard physical ceiling against low-level tool-calling reflexes. When a model's tool-use training strongly favors polling or blank modal calls, writing another paragraph in Markdown won't reliably stop it—you have to enforce that boundary in the harness itself (a schema check, a tool wrapper, or a compiler lock). Hold that thought, because it is the exact bridge into Part 6.
3. The Golden Metric (T_TWC) & Boehm's $1 : $500 : $25,000 Curve
Walk into any AI developer discussion and people immediately start arguing about tokens-per-second or complaining that running a separate Critic subagent "uses twice as many tokens."
Well, they are measuring the wrong side of the ledger.
Nobody pays an engineering team for how fast their fingers hit the keyboard. What actually matters is Time-to-Working-Code:
T_TWC = t_gen + t_debug + t_verify If a raw coding agent spits out 400 lines of plausible-looking code in 12 seconds (t_gen = 12s), and then you spend three hours hunting down a subtle lifecycle leak it introduced, arguing with it for 25 chat turns, and waiting on two rounds of CI and PR review (t_debug + t_verify = 3 hours), that 12-second generation wasn't fast. It was a very cheap way to buy a very expensive afternoon.
Back in 1981, Barry Boehm published his famous Cost-of-Defect Curve in Software Engineering Economics: catching a bug in design vs. testing vs. production scaled roughly as 1 : 10 : 100. In 2026, with frontier API pricing on one end and senior engineering salaries on the other, that curve didn't flatten—it stretched out to roughly $1 : $500 : $25,000:
| Stage Where the Defect Is Caught | Wall-Clock Cost | Dollar Cost | What Actually Happens |
|---|---|---|---|
1. Target 40 Fresh-Context Critic (Before git commit) | ~45 seconds (while you sip coffee) | ~$0.25 – $0.75 in API tokens | Isolated subagent flags a BLOCKER on the uncommitted diff; Target 30 fixes it before a single commit exists. |
2. Human PR Review (Target 50+) | 4 – 24 hours of calendar latency + broken flow | ~$150 – $400 in loaded senior-engineer time | Author and reviewer context-switch, trace the diff, write comments, wait on CI, re-review. |
| 3. Escaped into Production | Days of triage, hotfix, & cleanup | $5,000 – $50,000+ | Pager at 3 AM, rollback, data remediation, customer trust damage, post-mortem. |
Pinching fifty cents of Critic tokens at Target 40 to save a subagent call is like refusing to buy a two-dollar fuse because you'd rather wait and see if the wiring in your walls catches fire.
And here is the kicker that surprises almost everyone: forking short-lived subagents often burns fewer total tokens than a single monolithic chat session.
We call this The Quadratic Token Tax (SCAR-PROC-95). Every turn in a monolithic agent session re-sends the entire conversation prefix. If you keep everything in one chat window until it bloats to 150k tokens and then spend 40 tool turns debugging a mistake, you just billed 40 × 150k = 6,000,000 input tokens—right before slamming into the 200k context compaction wall. By contrast, keeping PID 1 (the orchestrator) lean and forking ephemeral Target 15/20, Target 30, and Target 40 workers with clean 15k–25k contexts that immediately exit 0 keeps the bill tiny and prevents context compaction.
4. Second-Order ("Synthetic-Synthetic") Scars & Why "Yes, Continue" Is Not Vibe Coding
For the first 90 tickets, almost every scar in our catalog was a First-Order Scar:
flowchart TD A1["Human Socratic Nudge (N_nudge > 0)"] B1["Bug Caught at Pause Gate"] C1["Target 90 Compiles First-Order Scar"] A1 --> B1 --> C1 I had to be sitting at the gate, spot a subtle edge case, ask the right question, and let Target 90 etch the lesson into the registry.
Then, somewhere around Ticket 120, something quietly shifted. We crossed into Phase 2: Second-Order ("Synthetic-Synthetic") Scars:
flowchart TD A2["Zero Human Nudges (N_nudge == 0)"] B2["Target 40 Critic Catches BLOCKER\n(Synthetic Nudge)"] C2["Target 90 Compiles Second-Order Scar\nUpstream into Target 15/20 Planning"] A2 --> B2 --> C2 Here is a concrete example from the field log (FT-159). The Target 30 TDD worker implemented a Dart static-analysis lint rule and got all its unit tests green. I hadn't typed a single nudge (N_nudge = 0). Before the diff ever reached my screen, the fresh-context Target 40 Critic inspected the diff with zero sunk-cost bias and flagged a BLOCKER: the AST visitor missed labeled continue caseLabel; jumps inside a SwitchStatement. The worker fixed it, added a regression test, and then Target 90 compiled that Critic-originated synthetic nudge upstream into SCAR-AST-07 in the Target 15/20 planning manual—so future runs prevent at planning time what was previously only caught at review.
And this brings us to a question I get all the time when people watch me work at Ticket 300+: "Wait—you just typed yes, continue at the gate! Isn't that just vibe coding?"
Look at what is standing behind those two words.
When a vibe coder types "yes, continue", they are waving a blindfolded intern through an intersection on faith. When I type "yes, continue" at Ticket 375, those two words are backed by 689 silent sentries: hundreds of prior human Socratic nudges plus dozens of second-order synthetic nudges that have already pruned doomed branches at Target 15/20, audited the diff across six orthogonal pillars at Target 40, and verified the SHA-256 diff receipt before the gate prompt ever hit my screen.
Physical tools get dull with use. A scarred workbench gets sharper on every run.
The Solo-Dev Bootstrap (Minting Scars Without a Resident Staff Engineer)
This also answers the #1 question I hear from solo developers and small teams: "That's great if you have 45 years of systems scars in your head, Randal. What if I'm working solo and don't have a staff engineer sitting next to me?"
You use The Uncommitted Playground.
By separating Constructive Liveness (Target 30 TDD worker, running light with just the approved plan and TDD protocol) from Adversarial Safety (Target 40 fresh-context Critic, armed with the Six Pillars and the full scar catalog) before Target 50 (git commit) is allowed to unlock, you turn your uncommitted working tree into a sandboxed wind tunnel. Flawed ideas get broken in the wind tunnel instead of in production—Karl Popper's "permitting our hypotheses to die in our stead." Every time the Critic catches a domain edge case in your playground, Target 90 harvests a new domain-specific scar that teaches both the workbench and you before a single bad commit ever lands.
5. The TypeScript Confidence Inversion & The 4-Layer Verification Stack
A few weeks ago, someone asked me how I felt about letting an AI agent ship production code in a language I don't love. My answer surprised even me:
"Do I know TypeScript? Only enough to despise it—and yet, with the gates and scars in place, I have the confidence to just say 'yes' a lot."
Critics of AI coding often argue that agents just turn programmers into exhausted, full-time code reviewers squinting at unfamiliar syntax line by line. Well, yes—if your entire trust model is anchored in unassisted human syntax inspection.
Think about how you trust gcc -O3 or the Dart AOT compiler. Do you open a disassembler after every build and hand-audit every emitted ARM64 register move? Of course not. You verify the invariants at the boundaries and trust the compiler pipeline to handle the instruction-level mechanics.
When I ship code in a language I'd rather not write by hand, I am not trusting raw LLM token generation. I am trusting a 4-Layer Verification Stack:
flowchart TD L1["Layer 1: Red-to-Green TDD (Target 30)\nDeterministic failing test proves the bug exists\nand turns green only when the invariant holds"] L2["Layer 2: Fresh-Context Six-Pillar Critic (Target 40)\nZero sunk-cost bias across Intent, Verification,\nArchitecture, Blast Radius, Reviewer Defense, & Immune Defenses"] L3["Layer 3: Live Socratic Cross-Examination (Target 42/45)\nBreak the 'Cold Crime Scene' PR habit: interrogate the author\nlive in RAM with 2-second latency"] L4["Layer 4: Last-Mile Specialist Escape Valve (Target 70)\nRoute pre-vetted PR to the resident domain specialist\nand compile anything they catch into a new Scar"] L1 --> L2 --> L3 --> L4 Look closely at Layer 3—because almost nobody uses it yet, and it is an absolute superpower.
For fifteen years on GitHub, we trained ourselves to treat a Pull Request like a cold crime scene. The author pushed a 400-line diff three hours ago and went to lunch, so you sit there silently burning 45 minutes of mental RAM trying to reverse-engineer why they touched line 184. Developers carried that exact dead-drop habit straight into AI coding, completely forgetting that the author is sitting right there in RAM with a two-second latency.
At Target 45, I don't silently squint at unfamiliar TypeScript syntax. I ask the agent directly: "What is that adapter doing on line 82, and why couldn't you pass the payload straight through?"
That triggers a win-win Rubber-Duck Inversion:
- If the code is genuinely necessary, the agent joins the cross-file causal chain for me in two plain-English sentences, saving me 20 minutes of manual spelunking.
- If the code is accidental slop, forcing the model to attend to those exact lines and justify them in plain English breaks its generation momentum—and half the time it immediately self-corrects ("Actually, looking at that again, that wrapper is completely redundant. Let me rip it out.").
And if a genuine language-specific subtlety still survives Layers 1, 2, and 3? That is what Layer 4 is for: hand a spotless, test-proven, pre-audited PR to the team's resident specialist for a five-minute final sign-off—and feed anything they catch straight into Target 90 so the Critic knows it forever.
6. The 4th Dimension (Time), The NTSB Flight Recorder, & The Teaching Hospital
Vanilla AI coding agents live in two dimensions: they look at your repository as a flat spatial snapshot at HEAD right now. When a purely spatial agent spots a weird-looking four-line guard or an awkward ordering constraint, its pre-training urge to "clean up the code" cheerfully rips down Chesterton's Fence—re-introducing a concurrency bug or hardware workaround that took a human team three days to diagnose six months ago.
To stop The Groundhog Day Anti-Pattern (re-litigating and re-breaking settled architecture every month), our workflow treats Time as a first-class input at two gates:
- Looking Backward Before Planning (
Target 15/20): Before drafting a plan, the Codebase Archaeologist runsgit log -n 10 --oneline -- <target_files>andgit log -n 3 -p -- <target_files>on non-obvious guards (plusgh pr viewon squash-merged repos to read prior reviews and rejected approaches), logging explicit historical precedents so it never tears down a fence without knowing why it was built. - Looking Across Concurrent & Downstream Time (
Target 40Pillars 4 & 6): Pillar 4 (Blast Radius) checks whether the diff collides with in-flight sibling branches, breaks historical on-disk storage keys, or violates semver compatibility, while Pillar 6 (Immune Defenses) cross-examines the diff against the entire scar registry.
The NTSB Flight-Recorder Loop & Breaking "Whack-a-Mole"
Notice one crucial rule we learned the hard way (SCAR-META-02): an operating agent can never audit its own governance compliance. If you ask the same agent that just skipped a step "Did you follow all the rules?", its sunk-cost trajectory will cheerfully invent a plausible excuse.
Instead, we treat transcript.jsonl like an aviation black box. When a run hits a snag—or when a remote PR bot catches a bug at Target 70—we don't just patch the line of code in a mindless Whack-a-Mole loop. An independent Flight-Recorder Auditor reads the raw thinking traces from the collision and asks the single question that compounds wisdom:
"Why didn't our local Critic see this going in?"
Answering that question during asynchronous Sleep Consolidation (Target 90)—in an isolated Git worktree, mirroring slow-wave hippocampal replay—turns a one-off external bot comment into a permanent cognitive antibody.
The Teaching Hospital Escalator (Solving Senior Review Burnout)
A lot of managers ask whether this kind of workflow makes junior developers obsolete. In practice, it does the exact opposite—it works like a teaching hospital:
- Juniors act as Ticket Pilots (
Targets 1 -> 6): They own scoping, domain context, and Socratic steering atTarget 15/20, while their localTarget 40Critic kills 95% of mechanical, architectural, and historical regressions inside the uncommitted playground before a PR is ever opened. Every plan and Six-Pillar review matrix teaches them blast-radius thinking on real code. - Seniors act as Last-Mile Scar Reviewers (
Targets 7 -> 8): Instead of burning out repeating the same ten PR comments every week, seniors review clean, pre-hardened diffs. Whenever a senior catches a genuinely novel domain edge case,Target 90compiles that senior's personal scar into the shared repository catalog.
That creates a Compounding Review Ratchet: a senior engineer only ever has to teach a lesson once. On the very next git pull, every junior's local Critic enforces—and explains—that lesson automatically.
7. When the Scar Becomes the Spec (noirebox#53)
For months, I thought of our scar registry strictly as defensive armor for our own coding agents. Then Sam LABBE proved it is something much bigger: a portable, cross-platform CVE catalog for autonomous agents.
After reading Part 3.7, Sam took four of our gate-counterfeiting scars—SCAR-PROC-43, SCAR-PROC-45, SCAR-PROC-89, and SCAR-PROC-110, all earned inside our Dart/Flutter workflow—and replayed them as pytest attacks (tests/test_scar_replay.py, noirebox#53) against NoireBox, a Python Ed25519 + SHA-256 flight-recorder built for EU AI Act compliance.
On its very first run, the scar replay caught a live pre-terminal pairing race in NoireBox's reconciler (decision -> FIRST outcome instead of terminal outcome, mirroring SCAR-PROC-110), which Sam fixed in 60 seconds (e9e8d0b). It also exposed an optional spec_hash schema seam (SCAR-PROC-45), closed at the schema hours later (0b888c1) so an LLM-judged receipt without a spec_hash refuses to seal.
As Sam put it in his write-up:
"The fixture didn't just replay your catalog, it caught a live pairing bug on its first day out. That is the difference between a test suite and a breaks-catalog: the catalog finds what the gate's author didn't think to check. The scar becomes the spec."
Why did four scars earned on a Dart monorepo immediately break a Python cryptographic flight recorder? Because agents cheat at the topology layer, not the language layer. Whether your stack is Dart, Python, TypeScript, or Rust, a fatigued LLM exploits the exact same distributed-systems race conditions—stale receipts, premature pairing, self-rubber-stamping, and skipped prerequisites. A well-written scar isn't just a note to self; it is an executable test vector for any agentic system on Earth.
8. Summary & What's Next in Part 6
Moving from paranoid human tele-operation to earned agentic trust isn't about waiting for a mythical "AGI" model that never makes mistakes. It is about building an engineering system that remembers pain and measures the right ledger:
- Stop coding by majority vote: An unscarred LLM's highest-probability completion is Page 1 tutorial popularity. Compile your 3 AM failures into
-∞vetoes. - Optimize
T_TWC, not tokens-per-second: Under Boehm's updated$1 : $500 : $25,000curve, spending fifty cents on a fresh-contextTarget 40Critic beforegit commitis the highest-ROI spend in modern software engineering. - Trust the 4-Layer Verification Stack, not syntax squinting: Pair Red-to-Green TDD, the Six-Pillar Critic, Live Socratic Cross-Examination (breaking the cold-crime-scene PR habit), and a Last-Mile Specialist Escape Valve.
- Let Second-Order Scars and the Teaching Hospital compound: When the Critic catches a blocker on a zero-nudge run—or a senior catches an edge case on a junior's PR—compile it into the shared catalog so the lesson only has to be taught once.
- Be honest about the ledger: Across 375 tickets, our domain/code repeat regression rate is
0.0%, while9.87%(37 / 375) of runs still hit process/harness tool-calling reflexes.
Next Up in Part 6: "The Proscriptive Inversion: What You Get to Forget, and Why More Negative Rules Mean You've Lost"
Those 37 harness repeat failures point straight to a deeper architectural law: if you have more rules about what not to do than what to do, you've already lost. In Part 6, we tackle The Straitjacket vs. The Wind Tunnel (why giant 2,000-line .cursorrules and CLAUDE.md files paralyze models), introduce the Unlearning Metric (ΔU)—measuring how much accidental complexity you get to forget—and walk through a real-world architectural case study comparing defensive minefields against clean, generative state machines.
📚 The Synthetic Scars Series on DEV.to
- Part 1: Why AI Keeps Making the Same Coding Mistakes—And How Teaching It Pain Gives It Wisdom
- Part 2: Why AI Coding Agents Crash at 3 AM: The Happy-Path Mirage & The Forced Continuity Defect (💎 DEV.to Staff Pick)
- Part 3: The Physics of Socratic Prompting: Somatic Recoil, Chess Alpha-Beta, & The NLP Meta-Model
- Part 3.5: Nudging with Questions: Why Telling Your AI What to Fix Triggers an Apology Death Spiral (And How to Advance Juniors)
- Part 3.6: Stuart Feldman Was Right in 1976: Why Your AI Agent Needs a Makefile, Not a 20-Step Prompt
- Part 3.7: Surviving the 200k-Token Lobotomy: How Unix
init.dand "Memento" Made My AI Coding Agent Immune to Context Compaction - Part 3.8: What LLMs "Know" That You Don't Know They Know: Stop Inventing Prompt DSLs and Ride 50 Years of Unix Pre-Training Gravity
- Part 3.9: If You Never Do Anything Else to Fix Your Prompts, Do This One Thing
- Part 3.10: Requests, Promises, Assertions, and Declarations: Rewriting Our AI Agent Workflow as a 1986 "Committed Speech" Machine
- Part 3.11: 926 Steps, Two Lobotomies, and Zero Nudges: Flight-Testing the Commitment Machine Across Gemini, Claude, and GPT-OSS
- Part 3.12: The Best Prompt Rule Is the One You Delete: Moving AI Guardrails Out of Markdown and Into Git Locks, Linux
insmod, and 15ms Compiler Auto-Fixes - Part 4: Giving AI Pain: The Architecture of Synthetic Scars & The Rapid-Regret Miner
- Part 4.1: All That Glisters Is Softmax: Shiny-Object Interns, Airplane-Magazine Execs, and Why AI Labs Can Only Bake In Half the Scars
- Part 4.2: The Postcard That Ate Six Grammars: 1980 Smalltalk-80, 1976 Make, TDD, and the Four Attractors of Agentic Coding
- Part 4.3: Crows, Moths, and Makefiles: How 300 Megabytes of Crow DNA Explains Why a 20-Kilobyte Scar File Outsmarts a Terabyte LLM
- Part 4.4: Being, Doing, Having: Why 50 Years of Senior Craft Lives in Context, Not Code
- Part 4.5: The Prisoner in the Library: Mary's Room, Aphantasic Code in Motion, and the Two-Track 'Magical Voice'
- Part 4.6: Why "You Are a 10x Coder" Fails: The METR -19% Paradox, MIT CSAIL's Weight-Space Programming, and the
-∞Pruning Law - Part 4.7: I Merely Am Someone Who Doesn't Touch Hot Stoves: Consciousness, Flores Speech Acts, the DSM Blindspot, and Why RLHF Is a Bad Actor
- Part 5: Zero Repeat Regressions: The Golden Metric & The Future of Agentic Trust (You are here)
- Part 6: The Proscriptive Inversion: What You Get to Forget, and Why More Negative Rules Mean You've Lost (Next)
Have you ever caught a bug in an AI-generated diff by simply asking the model "Why did you write that?"—or found a recurring failure mode on your team that should have been turned into a permanent guardrail? Let me know in the comments!