3 minute read

The hardening pass came back with a tidy diff and a confident explanation. One of the controls was redundant, the summary said, so it had been removed. The reasoning held up. Read on its own, the change was a reasonable simplification.

The control was one the operator had already decided to keep. It guarded against a stray cookie crossing between an application and its sign-in door, and the reason for keeping it was written down. The agent doing the pass had not read it, and nothing in its brief had said to.

This was not the first time. Earlier, other reviews had reported things as defects that were settled. A verification step that existed had been reported as missing. A key that was published had been reported as unpublished. Each finding was plausible, specific and wrong in the same way: it was a question about the past answered from the code alone.

Why a better prompt does not fix it

The instinct is to improve the instruction: be careful, check your assumptions, look for prior decisions. That helps a little and fails in the way that matters.

The cause is structural. After a year of work, the decisions that shaped the system are spread across design documents, decision ledgers, journals and the reasons behind each reversal. A fresh agent starts with none of it. From where it stands, a control with no obvious purpose looks like clutter, and removing clutter is what a review is for. The more capable the agent, the more convincing its case for the removal.

No prompt can supply a year of context, and an agent cannot know what it has not been shown. It can only be pointed at the place where the answer is kept.

The rule

So the fix was a rule, in three parts.

Read the record before the code. Every brief that asks an agent to review, verify or build names the decision record first: the design documents for the area, the ledger of reversals, and the history. The brief is the lever, because the brief is the only context the agent will have.

A contradiction is a question, not a finding. When what the agent sees disagrees with the record, it reports exactly that: this contradicts the recorded decision; confirm? It does not choose a side. A gap framed this way costs the operator one sentence to resolve. A gap framed as a defect costs a ticket, a fix, and the later work of reversing the fix.

The main session checks the record before it passes a finding on. An agent’s contradiction of settled work is checked against the cited decision first. Anything touching a security claim is traced by a capable model, never a cheaper one. A cheap model that gets a security call wrong costs more than the tokens it saved.

The map

The rule needs one thing it cannot supply: somewhere for the record to be found. Design documents answer “how was this built”, and the corpus answers “what do we believe”. Neither answers the question a reviewer actually asks, which is: this concept, is it built, and where?

So we keep one map from doctrine to mechanism. Each row is a concept. The columns are the doctrine that states it, the design document that owns it, the code that realises it today or the debt that tracks it, how it is recorded, and its status. It is a map of what the record says. Where the record disagrees with itself or with the code, the row says so and the disagreement goes to the operator. The map never settles it.

Its open rows were the useful part. One showed that a mechanism the early design described and the doctrine’s current wording were no longer quite the same thing. That is exactly the kind of gap a fresh reviewer would have filed as a bug. Written into the map as an open row, it is a recorded question with an owner.

What changed

  • Every brief names the record to read first, before any code.
  • A contradiction is reported as a question, with the decision it contradicts cited.
  • Findings are checked against the record in the main session before they reach the operator.
  • One map answers “is it built?”, and extends by rows rather than by re-deriving.

The same discipline applies to the model that does the work. Mechanical, checkable tasks go to a cheaper model. Judgement, security and anything that touches doctrine do not.

The line that stays

An agent that starts from the code alone will rediscover, with confidence, every decision you have already made.

The brief is the lever, and the record is the brief.

Reversals recorded, signals kept, decisions read first: the work holds only as far as the record behind it.