Apply the fresh-context prose pass

This commit is contained in:
2026-09-24 21:32:19 +02:00
parent fbff7bd3a2
commit 244c570b76
5 changed files with 21 additions and 35 deletions
+6 -14
View File
@@ -1,10 +1,8 @@
# Review protocol
The review loop exits on these words and glyphs; every reviewer uses them exactly.
## Verdict
The report's first line, derived mechanically from the findings:
A review's first line, derived mechanically from the findings:
- `BLOCK` — a 🔴 stands; for a looping reviewer (stability, product-owner), a 🟡 too.
- `ALIGN` — systems-architect only: no 🔴, drift (🟡) to address soon.
@@ -13,8 +11,6 @@ The report's first line, derived mechanically from the findings:
## Severity
Each reviewer defines what earns a glyph in its own domain; these are what the glyphs mean to the loop.
- 🔴 **must fix.** Never declinable: it is fixed, or shown factually wrong.
- 🟡 **should fix.** Holds a looping reviewer at `BLOCK`, but may be declined.
- 🟢 **nit.** Never holds the loop.
@@ -23,23 +19,19 @@ Each reviewer defines what earns a glyph in its own domain; these are what the g
## Rounds
- Surface everything in one round. A finding held back to a later round breaks convergence.
- Surface everything in one round.
- From round 2 the prompt carries the previous round's findings verbatim and what changed since. Verify each previous 🔴 and 🟡 is resolved — re-run the scenario, don't trust the claim — then pass over what changed. A fix spawns a new finding only where the fix itself introduced a real problem.
- The loop exits on no 🔴 and no 🟡. The 🟢 and ❓ left then are addressed in that same round — fixed, answered, declined or filed in `todo.md` — and trigger no further round. A nit whose fix changes behaviour is a fresh finding and takes a round.
- Caps: stability, product-owner and an external auto-reviewer 3 rounds each; systems-architect one scoped re-check of its own findings. A cap reached with a 🔴 or 🟡 open stops the loop: `needs input`.
- Caps: stability, product-owner and an external auto-reviewer 3 rounds each; a 🔴 or 🟡 still open after the third stops the loop: list what is open, `needs input`. Systems-architect gets one scoped re-check; still `BLOCK` → `needs input`.
## Declining
Applies to every reviewer, external ones included. A 🔴 is not declinable. Anything less the caller may decline where the reason is sound, sits consistently with the repo's goals, and confidence is very high; the decline, its reason and the goal it rests on go to `docs/decisions.md`. A reason that contradicts a goal, or that no goal speaks to, is a gap in the goals: propose the goal that settles the whole class, show what falls out of it for this instance, and take the human's answer — or fix the finding. Never a silent drop, and never a decline argued from convenience or the size of the fix.
Anything below 🔴 the caller may decline where the reason is sound, sits consistently with the repo's goals, and confidence is very high; the decline, its reason and the goal it rests on go to `docs/decisions.md`. A reason that contradicts a goal, or that no goal speaks to and you are not confident in, is a gap in the goals: propose the goal or rule that settles the whole class, show what falls out of it for this instance, and take the human's answer — or fix the finding. Never a silent drop, and never a decline argued from convenience or the size of the fix.
A reviewer honours an accepted risk in `docs/decisions.md` and a finding declined this way: it stays declined and is not raised again.
## Documenting decisions
Knowledge that outlives one review goes in the repo, where the next reader looks — never in private agent memory:
Knowledge that outlives one review goes in the repo, never in private agent memory: `docs/decisions.md` for every standing decision — accepted risks, declined findings, deliberate deviations, rejected alternatives — and otherwise where `~/.claude/CLAUDE.md` → "Ask, don't guess" and "Comments and documentation" put its kind.
- **`docs/decisions.md`** — every standing decision: accepted risks, declined findings, deliberate deviations and rejected alternatives, each with its reason. Format and indexing per `~/.claude/CLAUDE.md` → "Comments and documentation".
- **`AGENTS.md`** — contributor- and agent-facing conventions, plus the decision log's one-line index.
- **`README.md`** — goals, audience, and what a reader needs before opening the code.
Create the file if it is missing; fix it if it is wrong. Record only decisions the human made and declines made under the rule above, plus answers the human gives to ❓ — an unrecorded answer gets asked again next review. Default to recording nothing: never what a change did, never a narration of one symbol, file or test. Reasoning goes in the record; a definition — what a unit counts, what a term means — stays at the code in one line.
Create the file if it is missing; fix it if it is wrong. Record only decisions the human made and declines made under the rule above, plus answers the human gives to ❓ — an unrecorded answer gets asked again next review. Default to recording nothing: never what a change did, never a narration of one symbol, file or test.