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%
68 of 163 unbriefed11 of 164 briefed
attempts that repeated a known defect
Seven 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 3) predate today's subject-word search. Not measured in this A/B: the hook, the write side, improvement over time. The gate's drift was measured on its own (REPORT §4ae, §4af, §4ah). 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 · evals/REPORT.md §5, finding 7