The encoding loop
Where a lesson lives
Whether a rule was decided up front or taught by a mistake, a drift or a review, put it where the next person or agent will meet it. If it keeps being broken, move it somewhere stricter, up to a failing test.
Briefing onlyUseful for some tasks. Most lessons.
okl
Watched for driftCovers specific code: files and a check.
okl
Build-breakingBroken before, or costly: a failing test.
your CI
A line in CLAUDE.md or AGENTS.md suits the rare lesson every session needs. Moving a lesson is a person's call.
Measured
What the briefing did
42%→7%
78 of 186 unbriefed13 of 188 briefed
attempts that repeated a known defect
Eight A/B runs on eight tasks built to invite a defect, three samples per arm: sonnet writes one-shot code with the briefing put in its prompt, and haiku judges it blind. The runs (Aug 30 to Sep 26) predate today's subject-word search. Not measured: the hook, the gate, the write side, improvement over time. The example above shows how the parts work, not that they help.
Receipts in evals/results/: ab-20260830-0003, ab-20260901-0133, ab-20260901-1238, ab-20260902-0538, ab-20260903-0157, ab-20260903-1214, ab-20260903-1323, ab-20260926-0528 · evals/REPORT.md §5, finding 7