---
license: CC0-1.0
metadata:
  author: "RJ Lindelof (https://rjl.dev/)"
  source: "https://rjl.dev/case-studies/multi-agent-code-review/"
  version: "1.0"
  updated: "2026-12-05"
  attribution: "Appreciated, not required"
---

# Review lessons

Save this file as `.review/lessons.md` in the repository you want reviewed, and commit it. Every lens
and the verifier read it on every review, so a mistake made once is looked for every time after.

Add a line when:

- the review **missed** a real bug that a person or production found later, or
- the review raised a **false finding** and the author proved it wrong (rebuttal mode adds these
  lines for you).

Write each lesson as a rule for reviewers, one line, dated, with the reason. Keep it short; delete a
lesson when the code it was about is gone.

## Lessons

- 2026-11-02 - Before reporting "no validation", check the request schema middleware in
  `src/http/validate.ts`; every route body is validated there.
- 2026-11-09 - A feature that reads a field must have a producer for that field on the default
  branch. Trace it; a passing unit test with a hand-built fixture proves nothing about upstream.
- 2026-11-20 - Retries in `src/jobs/` are idempotent by job id (`jobs.dedupe_key` unique index); do
  not report duplicate processing there without showing the key differs.
