Instead of reviewing the code an agent wrote, review the choices it made where the spec was silent — in plain language, ranked least-confident first. The single most portable idea in Building software factories (with no slop), and the cheapest piece of the Software Factory to adopt: it needs no architecture change, only a prompt and a separate audit pass.

The economics in one sentence

A two-day run produces tens of thousands of lines I will never audit, and maybe thirty decisions that actually determine whether the thing is right. I read the thirty. I push back on four.


Why behavior isn’t enough

Sensors and invariants (the other half of the factory, see Codebase as a Black Box) tell you a piece does what it says. They do not tell you that the agent:

  • silently picked optimistic concurrency,
  • invented a retry policy nobody specified,
  • decided two features should share a table.

None of those are defects. The tests pass, the outputs are correct, the sensors are green. They’re decisions — and they’re what bites you three months later when you need to change something. Behavior tells you what. It doesn’t tell you why.

The ledger exists because every spec is incomplete. Every gap in a spec gets filled by somebody; the only question is whether that filling is recorded. Unrecorded, it becomes Intent Debt — the externalized why that no future reader, human or agent, can recover.


What a ledger entry contains

Four fields, all in plain language, no code:

  1. Where the spec was silent — the ambiguity the agent hit.
  2. What it guessed — the choice it made.
  3. Why — the reasoning, stated as reasoning and not as fact.
  4. What it would have asked you, if asking were free — the question it swallowed.

And one ordering property that carries most of the value: ranked least-confident first. The agent surfaces its own uncertainty as the sort key, so your attention lands on the shakiest calls before it runs out. This is a self-reported confidence signal used as a triage device, not as a truth claim.


The two rules that make it honest

Zhang flags these as “small implementation details.” They are not small — they’re the whole difference between a ledger and a compliance artifact.

1. The auditor must be a separate pass from the implementer. Run it as an independent sub-agent. A model reviewing its own work is primed by its own intent and will rationalize the choice it just made rather than surface it as a choice. Same principle as Agentic Code Review’s heterogeneous-reviewer finding and the adversarial-verification pattern in Dynamic Workflows in Claude Code — a second, uncommitted pass catches what the first is structurally blind to.

2. The audit never blocks and cannot change code. The moment the auditor can fix things, it starts optimizing for a clean report instead of an honest one. Separating reporting from authority to act is what keeps the report truthful. This is the same design instinct behind advisory-only lints and non-gating security scanners, applied to an LLM whose objective function is “look good.”

The generalizable rule

Any agent that can both find problems and erase them will stop finding them. Keep detection and remediation in separate passes with separate permissions, whatever the domain.


This isn’t new — it’s code review with the filler removed

Worth stating clearly because “stop reviewing code” sounds like a downgrade.

When a senior engineer reviews a junior’s PR, the valuable part was never the line-by-line nitpicking. It was catching that they chose the wrong abstraction, missed a case, or solved a different problem than the one on the ticket. Reviewing decisions instead of code is what code review was always trying to do, with the incidental part finally stripped away.

That reframe also explains why the ledger scales when line review doesn’t: the valuable content of a review was always O(decisions), not O(lines). AI generation exploded the second number and left the first roughly where it was.


How to run one

Practical shape, adapted from Zhang’s audit-choices skill (see the appendix of Building software factories (with no slop)):

  • Prompt for it explicitly, as a skill or slash command, not as an ad-hoc ask. It must fire every session or it fires in the sessions that matter least.
  • Emit it per slice, not only at the end. A ledger at the end of a two-day run is archaeology; per-slice, it catches decision 12 before it poisons 13 through 30. This is why slicing and the ledger are one discipline, not two (see Fog of War Scouting).
  • Read top-down and stop when entries stop mattering. The ranking makes early exit safe, which is what makes the practice survive a busy week.
  • Push back in plain language and let it re-audit. The output of your pushback is a spec amendment, not a code comment.
  • Archive accepted decisions with the spec. They’re the rationale record a future session (or a future colleague) reads instead of re-deriving. close-spec in Zhang’s repo does exactly this; the vault’s equivalent instinct is Agent Legibility — if it isn’t a versioned file in the repo, it doesn’t exist.

Where it fits in the vault

  • Software Factory — the parent frame; the ledger is the intent surface, the black box is the behavior surface.
  • Intent Debt — the debt the ledger pays. Osmani names the problem and prescribes “decision logs”; this is the most concrete, agent-native version of that prescription the vault has.
  • Agentic Code Review — the compatible practice, one abstraction level down. Osmani’s tiering by blast radius still decides how much ledger scrutiny a change deserves.
  • Verification Bottleneck — the ledger is a way of shrinking what must pass through the bottleneck rather than widening it.
  • Orchestration Tax — literally spending the serial human lock on judgement only, as Osmani prescribes.
  • The Ratchet - Every Mistake Becomes a Rule — the natural downstream: a decision you push back on twice becomes a line in AGENTS.md so the agent stops guessing it.
  • Writing Specs for AI Coding Agents / Spec-Driven Development — the ledger measures spec quality. A fat ledger means a thin spec.
  • Session Observability and Replay — traces tell you what the agent did; the ledger tells you what it chose. Different questions, both needed.
  • Cognitive Surrender — the risk if you read the ledger the way you skim a PR. Ranked-by-confidence helps only if you actually disagree sometimes. “I pushed back on four” is the health metric.

Open Questions

  • The ledger is self-reported. What surfaces the decision the agent didn’t notice it was making? An independent auditor helps, but it’s the same model class with the same blind spots.
  • Does ranking by self-reported confidence correlate with actual risk, or with verbosity? Nobody has measured this.
  • At what team size does a per-slice ledger become its own review backlog — the Orchestration Tax reappearing one level up?

Sources

  • Building software factories (with no slop) — David Zhang, Building software factories (with no slop), 2026-08-20; the ledger is the “Behavior tells you what, it doesn’t tell you why” section, with audit-choices as the implementation