The review panel

Every plan passes a panel of expert reviewers before the person is asked to approve it (ADR-0022, fleet rule work.plan-review-panel). The skill /plan-review runs the panel. The plan-review-panel rule checks, at ExitPlanMode, that it did.

Who reviews

The panel follows the files the plan's ## Phases name (ADR-0061, work.review-seats): each backticked span with no space that has a /, a known extension or a known file name (Cargo.toml, Dockerfile, …), a :<line> suffix dropped. Context and evidence do not count: they cite files the plan does not change. Each path is attributed to the repository of the machine comment whose default tree holds it, a file under it, or a file in its parent directory (a new file in an existing directory); a path no repository holds counts for every one.

the named filesclassreviewers (plan-review-<role> agents)
alwaysbackend
.rs, Cargo.toml, Cargo.lock; .go, go.mod; .py, pyproject.toml; .ts, .js and their variants, package.json, tsconfig.jsonlang:<x>language, with lang=<l> in its review block
.tsx, .jsx, .css, .html, .vue, .svelte, *.stories.*uireact and ui-design
Kubernetes, Helm, Flux and Terraform files (kustomization.yaml, Chart.yaml, *.tf, *.tf.json), Dockerfile, CI workflows, and any other .yaml or .ymlopsplatform
any code file in a repository with a command linecliunix and tui
markdown and anything elsenone beyond backend

YAML that names no manifest still counts as ops, on purpose: a missed platform seat costs more than an extra one. Only tool configuration (.adr.yaml, pnpm-lock.yaml, pnpm-workspace.yaml, .pre-commit-config.yaml) is left out.

What no path shows, the plan declares with adds=: screen seats ux-research and game-ux (the Behaviour adds a screen or a flow), and contract seats po and architect (the plan adds a module, crate or repository, or changes a contract another repository consumes). large is the old name of contract and reads as it.

A plan whose Phases name no file is seated as before 3.22.0, from every area of its repositories, with ui seating all four interface reviewers; the plan-names-no-paths rule (advise, at most) says so at ExitPlanMode and plan-panel says it on stderr: name the files each phase touches in backticks under ## Phases. Paths seat the panel only when every phase names one: when some phases name files and others none, the areas seat it too, and the advice names each phase without one (Phase 5 names no file). On the review ledger, plans seated from the files of only some phases had dropped seats that made 95 accepted serious findings.

area (when no file is named)reviewers
alwayslanguage for each language, and backend
opsplatform
a command lineunix and tui
large (500 or more files or own commits)po and architect
an interfacereact, ui-design, ux-research and game-ux

Areas are read from each repository's default tree, never from keywords in the plan; the same read lists the files paths are attributed to, so naming paths costs no extra git call. The tree is the first of origin/HEAD, origin/main, origin/master and HEAD that exists, with no fetch. Each signal:

  • Languages: Cargo.toml, go.mod, package.json or tsconfig.json, pyproject.toml.
  • Interface: the ui trait in .adr.yaml areas:, or a package.json with a dev script or a runtime React dependency.
  • Ops: a kustomization, Chart.yaml, a HelmRelease or Flux Kustomization, or *.tf.
  • Command line: the cli trait, src/main.rs, [[bin]], a package.json bin, or package main.

Vendored, lock and dist/ paths do not count. A fork's commits are counted past its upstream, and a shallow clone is judged on files alone.

What the plan carries

  • A ## Review panel section, at most 5 lines, under the H1.

  • The full reviews under a final ## Full reviews (reference).

  • A machine comment as its last line:

    <!-- panel: repos=amont-agent,decisions adds=ui reviewers=… body-sha=<12 hex> -->
    

repos= names each repository. A name resolves to git config greenbelay.plan-review.<name>.path when that is set, for a repository kept elsewhere; otherwise to <plan root>/<name>. The plan root is $GREENBELAY_PLAN_ROOT, else git config --global greenbelay.plan-review.root (git config --global greenbelay.plan-review.root ~/Developer/Perso keeps the old default); with neither, the session's directory when it is not in a git repository, else the parent of the repository's main worktree. The attestations sweep uses only the explicit setting. adds= declares classes no named file shows: cli, ui, screen, ops, contract (or its old name large), or lang:<language>. A repository that does not exist yet needs a lang: entry.

Which agents to launch

greenbelay plan-panel <plan.md> answers with the hook's own code:

repos=greenbelay areas=cli,lang:rust body=cf3f43c938c4 panel=full seats=paths counts=repos:1,phases:2,prs:1,releases:1,person:0,words:640,steps:0,merge-candidates:-
plan-review-backend
plan-review-language --lang rust
plan-review-tui
plan-review-unix

areas= lists the classes the panel is seated from, seats= where they came from: paths (the named files) or areas (the repositories, when no file is named; the advice is then on stderr). panel=delta lists only the reviews needed since the plan's last accepted body. panel=current lists none. A baseline stored before 3.22.0 reads in today's class names (large as contract, ui with screen), so a plan it covered stays current.

counts= ends line 1 as one comma-separated token with no spaces, so a reader that splits line 1 on spaces still finds every other key=value, and agent lines still start on line 2. Readers take keys by name. A new key goes before merge-candidates, which stays the last comma field:

  • repos: the machine comment's list;
  • phases: the phases under ## Phases;
  • prs: the repositories the machine comment declares;
  • releases: phases naming a version file (Cargo.toml, package.json, plugin.json, pyproject.toml, greenharness.toml) or the word "release" (CHANGELOG.md alone does not count);
  • person: 🧑 items under Phases;
  • words: the body's words, as words:<now>/<round 1> once the plan's round 1 differs;
  • steps: actions only the person can run, the plain - bullets of a ### 🧑 Your steps block inside ## Phases; decisions stay in person. It is printed even when zero, and sits after words and before merge-candidates. A heading outside ## Phases counts nothing and plan-panel says so on stderr with its line;
  • merge-candidates: adjacent phase pairs (2+3;5+6) naming files in the same repositories with the same file-type classes, and no 🧑 item between them; - when there are none.

The plan id

plan-panel gives the plan file a plan-id: p-<26-char ULID> front-matter line when it has none, before it prints anything. The front matter is outside the body sha, so no review goes stale. The write resolves a symlinked plan file first, takes the ledger lock (waiting up to 5 s: ledger busy; nothing written. Run again: greenbelay plan-panel <path>, exit 1), re-reads the file and refuses one changed since it was read (plan changed under plan-panel; nothing written. Re-read <path>, then run: greenbelay plan-panel <path>), then renames a temp file into place; a file it cannot write prints cannot write plan-id: <path>: <error>. Both exit 1 with nothing on stdout. A second run leaves the file byte-identical.

When the person approves ExitPlanMode (PostToolUse, approved: true), the hook writes plan-review/approved/<id>.json ({"schema": "greenbelay-plan-approval-v1", "plan_id", "body_sha", "approved_at"}), before it takes the ledger lock and without it. The next plan-panel on another body replaces the retired id (replaced plan-id p-… (approved) with p-… on stderr); a rejection retires nothing, so a revised plan stays one plan. A file's id is live until it was approved with another body: the ExitPlanMode hook and record read the id through that rule, so a plan edited over an approved one never inherits its id, even when plan-panel did not run in between.

Each body plan-panel sees is mapped to its id in plan-review/ids/<body_sha>.json (greenbelay-plan-id-v1). record reads a row's plan_id from that map (on a miss, the file's own id when the file still holds that body), and numbers round and first_round_sha within the id. The baseline's older-body lookups (by path, by title) serve only the same plan_id, so a new plan in a reused file is a full panel for both plan-panel and the ExitPlanMode hook.

Binding a review to the plan

greenbelay plan-sha --block [--lang <l>] [--slice <role>] <plan.md> prints the review block that each reviewer's prompt carries:

<<<PLAN path=/Users/me/.claude/plans/p.md sha=<64 hex>>>>

The sha is that of what the canonical body says: the plan without its front matter, its review section, its full reviews and its machine comment, read as CommonMark. Every word, number and operator counts, code blocks and code spans count exactly as written, and so do link destinations and the kind of each block (list item, quote, heading, table cell, an ordered list's start). Blank lines, line wrapping, indentation outside code, table padding, list-marker and emphasis style and escapes do not. A landed copy in docs/plans/, which gains front matter and may pass through a formatter such as prettier, therefore hashes like the approved plan, unless the formatter rewrites code. Writing the review results into the plan never makes a review stale. Editing the body does.

The Markdown parser is pulldown-cmark, pinned exactly: a new version may read a plan differently, so a bump is its own change, and a fixture test fails when it re-hashes.

Until the transition ends (2.25 onward), a review or a baseline bound to the byte sha that 2.24 and earlier computed still counts. The hook's journal line for a pass starts match=legacy when it rested on one, and plan-sha --legacy prints that sha, for a plan whose machine comment was written before. Both go once the journal shows no match=legacy for 14 days.

A seat bound to its slice (3.23.0, ADR-0061 work.review-slices). On a plan whose every phase names a file, a seat that a file type earned (lang:<x>, react, ui-design, platform) and that has a phase of its own is bound to its slice: the lines before the first ##, the Goal, Non-goals, Behaviour and Code review sections, the ## Phases text before its first item, every 🧑 decision, and the phases that name a file of its types. A reference definition that kept text uses travels with the slice. Every other section (Context, Tests, Decision log, Verification, Outcome) is outside every slice: backend, which binds the whole body, reviews it. Backend, architect, product owner, unix, tui, ux-research and game-ux always bind the whole body, and so does every seat on a plan seated from areas.

greenbelay plan-sha --block --slice <role> <plan.md> prints two lines:

<<<PLAN path=… sha=<body sha> lang=rust slice=<64 hex>>>>
Your slice: Phase 1, Phase 3 and the shared sections. The other phases belong to other seats: …

Paste both, stdout only. sha= stays the body sha, so plan-apply and the outcome ledger keep working; slice= is what a later delta compares. For a seat with no slice the command prints the plain block and says why on stderr (binds the whole body (<why>): seats=areas, no phases, no phase of its own), exit 0. --slice=<role> and --lang=<l> work too. plan-panel prints --slice <role> on each sliced seat's line.

A sliced review counts when it reviewed this body, or when its slice= is the role's slice as it stands. In a delta the hook also requires every sliced seat whose slice moved since the last pass, and names the moved span with the command to re-run: stale (its slice changed: Phase 2) for repos=…: lang:typescript; re-run: `greenbelay plan-sha --block --lang typescript --slice lang:typescript <plan.md>` (the command is in backticks, so it copies alone; a path with a space is quoted). A seat that was whole-body at the last pass and is sliced now (it has a new slice), or the reverse (it now binds the whole body), is required too; a slice whose spans only changed order says the order of its phases. The baseline keeps each sliced seat's slice sha and one sha per span. A baseline written before 3.23.0 has none, and its delta keeps the old rule (slices=unknown in the journal); a pass on it records none either, so the old rule holds until a fresh panel. The journal line carries sliced= and, on a refusal, slice-stale=.

This tightens the hook: it saves no seat, since a delta already asked only backend, and it adds re-runs where a seat's own phase changed. A 14-day measure (due 2026-11-21) counts them and the findings they make.

A delta in a new session. A plan's baseline is found by its path, by its body, and, last, by its H1 and repos=: the same plan presented from a new session has a new file name, and after an edit only its title still names it. Two plans with the same H1 and repositories therefore share a baseline; backend still reviews the body. If the sha cannot be computed (the parser panicked), the hook asks the person instead of passing.

A review counts only when Claude Code recorded it as completed:

  • in the foreground, a result with status: completed and the agent's agentType;
  • in the background, a task notification that Claude Code queued itself.

Notification text inside a tool result, or in a message, is never read.

The declared sha stops a skipped review and a review of an older body. It does not stop a model that deliberately declares a sha for a body it did not have reviewed.

What the hook answers

situationanswer
first presentationthe whole panel, each role bound to this plan's path; backend bound to this body
body changed since the last passbackend plus every area new since then, bound to this body, plus every sliced seat whose slice moved, bound to this body or its current slice
same body, no new areapasses (a re-presentation, or a metadata-only write)
no machine comment, bad repos=, no review sectionrefused
no transcript, no plan path, git failedthe person is asked (ask)
refused twice alreadythe person is asked, with UNREVIEWED: refused N×
⚠ unreviewed: … in the review sectionthe person is asked

A pass is remembered under ~/.claude/greenbelay/plan-review/, which is 0700 with 0600 files, by plan path and by body. The same plan presented from a new session, under a new file name, is therefore recognised.

The default stance is deny. Set greenbelay.plan-review-panel.stance to advise to be told without being refused, or to observe to only journal.

Recording what the panel did

greenbelay plan-review record <plan.md> [--transcript <path>] appends one JSON row per completed plan-review reviewer of the plan to ~/.claude/greenbelay/plan-review/outcomes.jsonl, so the panel can later be judged on its own record. Without --transcript it reads the transcript under ~/.claude/projects (modified in the last 7 days) that reviewed this plan's path: the one that reviewed its current body first, then the newest. A long session still being written to can have reviewed an older body days ago.

stdin is a JSON array of findings (empty stdin is []): {"role", "severity": blocking|high|medium|low, "disposition": accepted|rejected|decision, "section"?, "area"?}. They are attached to the rows this call writes for the highest round it writes, matched by role.

A row has: schema (greenbelay-review-outcome-v1), recorded_at (unix seconds), role, agent_id, model, tokens, seconds, round (1-based, in the order distinct bodies first appear), body_sha, first_round_sha, plan_path, plan (areas, the repositories' areas whatever seated the panel; seat_source, paths or areas, null when the repositories could not be read, and read as areas on a row written before 3.22.0; seat_classes, the classes the panel was seated from; repos; body_lines of the body that round reviewed; null when that body was never saved), with first_round_sha the first body any call recorded for this plan path, across sessions, verdict (rework, approve-with-changes, approve or null), remit (the areas the role is asked for; * for backend) and findings.

findings is what stdin gave for the row's role, as given. Otherwise it is what the reviewer wrote: findings_of(result) reads only the lines between Findings: and the next of What I would measure: / Patches: (or the end), matches N. [blocking|high|medium|low] at the start of a line (a leading ** or spaces tolerated) and gives {n, severity} with no disposition. The count of numbered lines that did not match is the row's findings_unparsed; a line is skipped, never guessed. None. gives no findings.

record reads the launches as plan-apply does, so a round resumed with SendMessage counts. Rows are deduped on (agent_id, body_sha): a resumed round on a changed body gets its own row, on an unchanged body nothing. A manual call with stdin findings (each may carry n) for a reviewer already on record writes no outcome row; it appends one greenbelay-review-disposition-v1 row {agent_id, body_sha, role, n, disposition} per finding, exempt from that dedupe.

Outcome rows are deduped as above under an exclusive lock, so a second run, or two at once, writes nothing twice. Each round written also saves the plan body once as plan-review/bodies/<sha>.md, if the plan file still has that body (otherwise a note on stderr); bodies older than 90 days are deleted. The directories are 0700 and the files 0600.

The hook records on its own

The PostToolUse ExitPlanMode hook runs this record for the plan when the person answers it, on approval and on rejection alike, reading the session transcript from the payload (transcript_path). It never fails the call: nothing goes to stdout, and an error (an unreadable transcript, no completed review, a ledger that cannot be written) is journalled as outcome error of the rule plan-review-record. A repeat run is safe, by the dedupe above. The hook takes the ledger lock with LOCK_NB and retries for at most 2 s; if another process still holds it, it journals one skipped entry (body sha and plan path) and returns. plan-review stats lists such a plan as record-skipped until the ledger has a row for that body (or any row for the plan recorded after the skip); running greenbelay plan-review record <plan.md> by hand catches up.

Its status line (wrote N rows (round R, plan <sha12>), already recorded round R of <sha12>; nothing written, or no rows written … when every reviewer lacked an agent id) goes to stderr; stdout stays empty. --transcript=<path> works too, and -- ends the options.

Exit codes: 0 when the ledger is up to date; 1 when no transcript names the plan, a reviewer has no agent id (the other rows are still written) or the ledger cannot be written; 2 on a usage error or malformed findings.

Applying the reviewers' patches

A reviewer that proposes an edit ends its result with a Patches: section: a fenced JSON array of {"finding": n, "old_string": "...", "new_string": "..."}, one object per edit, old_string copied from the plan and unique in it. greenbelay plan-apply <plan.md> applies them with no model. The accepted findings come on stdin, [{"role": "tui", "finding": 1}, ...]; a finding may carry "patch": {"old_string", "new_string"} to supply an edit the main session wrote itself. Stdin on a terminal is a usage error.

The patches are read from the session transcript (--transcript <path>, or else the one under ~/.claude/projects that reviewed the plan), from the latest completion of each role, launch or SendMessage resume, that reviewed the plan body as it was before the apply. Each old_string must occur exactly once and must not overlap another patch; an empty one is a usage error. A patch that does not match is listed as unmatched <role>#<n>: <reason> (absent, absent (whitespace), N occurrences, overlaps <role>#<n>, no patches block, patches block is not JSON), never guessed. The matched ones are written once, atomically, to the file a symlink points to; if the plan changed between the read and the write, nothing is written. A patch inside the front matter, ## Review panel or ## Full reviews is applied and labelled outside the body.

stdout is data: one line per patch, applied tui#1 <section> or unmatched tui#3: absent, then applied A, unmatched U, sha <sha12>. When some patch is unmatched, a next: line follows and the last thing on stdout is the block the fallback subagent's prompt must start with: <<<APPLY path=<plan> sha=<sha12 of the body before the apply>>>>. Patch lines stay within 80 columns; the next: line and the block carry the plan's path unclipped, since one is copied and the other is machine-read. Diagnostics go to stderr. Every real run appends one greenbelay-review-merge-v1 row to outcomes.jsonl (recorded_at, plan_path, body_sha_before, body_sha_after, round, accepted, applied, unmatched, mode: "command"); merge rows are not review rows and never count as a recorded reviewer.

flageffect
--dry-runreport what would change; write nothing, no row
--check [--before <sha>]write nothing; a patch is verified when its new_string occurs once and its old_string is gone (a new_string that contains its old_string skips the absence test; a patch the apply step recorded as overlaps is verified on its old_string being gone alone, since the one merged edit that resolves two overlapping patches holds neither new_string). Patches resolve by the body before the apply: --before (12 to 64 hex), else the latest command row of this plan, else the current body
--record-fallbackafter a subagent applied the unmatched edits: find its launch by the <<<APPLY block its prompt starts with, check the findings on stdin, and write one mode: "subagent" row (agent_id, model, tokens, seconds, verified); a rerun writes nothing
exitmeaning
0every patch applied (or verified)
3some patch unmatched or not verified; the matched ones are written
1file I/O, the plan changed under the apply (nothing written), or no transcript holds the reviewer's result
2usage error, including an empty old_string

Judging a seat: plan-review stats

greenbelay plan-review stats [--json] [--model <id>]

Reads ~/.claude/greenbelay/plan-review/outcomes.jsonl and, for the implementation review, ~/.claude/greenbelay/implementation-review-outcomes/outcomes.jsonl, through the one ledger reader in review_outcomes.rs; rows of another schema (merge rows) are not reviews. It prints one row per (role, model): reviews, findings by severity (blocking/high/medium/low), accepted findings by severity, accepted findings by severity, unresolved findings by severity (shown when there are any) and accepted-plus-unresolved high-or-blocking findings per review. A finding is accepted when its disposition is accepted (plan review) or fixed (implementation review, role implementation-review).

A parsed plan-review finding (one record wrote as {n, severity}) has its disposition derived when stats are read, so a merge or a disposition row appended after the review rows still counts. In order: the latest greenbelay-review-disposition-v1 row for its agent_id, body_sha and n wins; else it is accepted when any greenbelay-review-merge-v1 row whose body_sha_before equals the review row's body_sha lists role#n in applied_labels (the union over every such row); else unresolved. Findings given on stdin keep the disposition they were given.

A row with 20 or more reviews and under 0.05 accepted-plus-unresolved high-or-blocking findings per review ends in retire-candidate (ADR-0042): an unresolved finding is not evidence that the seat caught nothing. Retiring the seat stays the person's decision. Stats also print predate-change=N for the reviews recorded before findings were parsed (findings empty and no findings_unparsed; the ledger is not backfilled, so the 20-review bar counts from the new rows), a no-parsed-findings line per seat with reviews that closed approve-with-changes or rework yet have 0 parsed findings, and a record-skipped line per plan whose hook record was skipped and not caught up. --json prints one array of objects instead (the skipped plans as extra record_skipped objects), --model keeps one model. Exit 0, or 1 when a ledger cannot be read, 2 on a usage error.

Time to done: plan-review stats --time

greenbelay plan-review stats --time [--since <YYYY-MM-DD>] [--json] reports each landed plan's time to done (ADR-0070 work.plan-time-to-done; the contract is the time-to-done programme's t01 ticket in decisions). It reads the transcripts under ~/.claude/projects, this ledger and git, and nothing else (harness.cross-tool-reads). Run hours come from relais's own query, which retro-weekly joins on the sessions field.

  • Plans: every docs/plans/*.md with branch: in its front matter and status: active or done, in the repositories under the plan root. Pointer files (canonical:) and .reviews.md sidecars are skipped, and a plan without branch: is counted under exclusions.
  • Start: the earliest round-1 row of the plan's first-round body. That body is found from the body-sha= of the machine comment (in the plan or its sidecar), else from the sha of the body as first committed, following plan-apply merge rows back. A plan the ledger does not know is unreviewed. It starts at its first commit and is left out of every median.
  • Done: the first commit that adds status: done. A plan without one is unfinished, listed with its age so far.
  • Attribution: an entry belongs to the plan whose branch its cwd is on, read from the transcripts' git worktree add, remove and switch -c commands (by time, so a reused path changes plans) and git worktree list. gitBranch is not read, because it stays at the session's first branch. The session that runs the add also belongs to the plan from the plan's start up to the add, whatever its cwd. Each entry counts for one plan, the latest-started.
  • Blocked: the union of foreground gate, test and build calls, foreground agents, relais calls, and gaps over 10 minutes ended by a background notification. resource_h (JSON) is their plain sum. Person: gaps over 10 minutes ended by the person.

The text output fits 80 columns: one row per finished plan (u marks an unreviewed one), the ten newest unfinished plans, the unattributed time, the exclusions, and a summary. The summary gives the medians of the reviewed plans, the share whose words grew past ×1.25, the unattributed share and, within it, the unmapped share (attribution failures: a worktree no surviving transcript adds, a detached or removed one, an entry without cwd), and done check: insufficient when fewer than four finished plans have a saved round-1 body. --json prints one object with schema (1), plans, unfinished, unattributed, exclusions and summary. Per plan it also gives prs, releases, questions, resource_h, words and phases from round 1 to final, and sessions ([{id, from, to}]). --since keeps the plans done on or after that day, plus every unfinished one. Progress goes to stderr only when stderr is a terminal and --json is off.

Exit 0 on a report, 1 when the plan root, the ledger or the transcripts cannot be read, 2 on a usage error. A closed stdout pipe ends the process quietly: by SIGPIPE on unix, exit 0 where the write fails instead.

The plan's code reviewers

A plan declares who reviews its code in a ## Code review section (after ## Non-goals), one line per repository:

- <repo>: backend, lang:rust, unix (tui: no screens)
- <repo>: none — <reason>

A profile is backend, platform, unix, tui, react, ui-design, architect or lang:<x>; a parenthesised reason for the profiles left out is kept as text. greenbelay plan-panel --code-review <plan.md> proposes the list: one line <repo>\t<profiles comma-separated>, or <repo>\tnone\t<reason>, per repository of the machine comment, from the files the Phases name in it (backend always, each lang:<x>; ops adds platform, cli adds unix and tui, ui adds react and ui-design, contract adds architect). A repository whose files are not code is proposed none, with the reason markdown only, no reviewed file type or no file named; cut -f2 reads none, and the line pastes as - <repo>: none — <reason>. When the Phases name no file, the proposal comes from the areas as before (none — no language area). Plain plan-panel prints what it always did; if the plan has no ## Code review section it says so on stderr and still exits 0. A section that does not parse (unknown profile, no colon, empty list, none without a reason, a repository twice) exits 1 with or without the flag.

plan-panel --code-review <plan.md> -C <dir> --base <ref> also reads the branch in <dir> (the base defaults to the merge base with origin/HEAD). When its diff is an exact copy of a registered, unrevoked block whose pin check passed, and the implementation-review hook enforces, the proposal is <repo>\tnone\tcopy of fp:<12 hex>; otherwise the profiles are proposed as before. Either flag without --code-review exits 2.

The pin check reads one marker line in the added lines of the block:

# release-pin: <owner/repo> <tag-template> <asset-template> <ENV_KEY>

review-brief reads the pin <ENV_KEY> from the same file, expands the two templates and runs gh release view for that tag; a missing gh (gh not found; install GitHub CLI and run gh auth login), marker or asset means the match does not count and the profiles are required.

What a code-review profile reads

review-brief --profile <p> gives lang:<x>, react, ui-design and platform only their file types' part of the diff (ADR-0061, work.review-slices), with the table above: the changed paths are listed with git diff --no-renames --name-only -z, so a move across languages is a deletion one language reads and an addition the other reads, and the patch is taken for the kept paths alone, as literal pathspecs in batches that fit one git call each (git diff has no --pathspec-from-file). No kept path is an empty patch, never the whole diff. The brief keeps the whole --stat, lists the rest under ## Not in this brief, and says on stderr how many of the changed files it carries and the patch's bytes. backend, architect, unix and tui read the whole diff. Every profile brief carries the plan's Goal and Behaviour beside its Non-goals. A delta brief (--interdiff) filters each patch it compares on that patch's own paths.