The implementation review

Before the push of a branch that carries a plan, one independent reviewer has read the diff against that plan and the repository's active rules, and its verdict is recorded in the plan (ADR-0022, fleet rule work.implementation-review). The worktree-task skill runs the review (step F4b). The implementation-review rule checks, at git push, that it happened for the tree being pushed.

The plan step has a panel; the quality loop has one reviewer. A diff with its surrounding code is larger than a plan and arrives on every push, and the reviewer's job is narrower: findings only, never an edit, never a waiver.

What the reviewer reads

Its prompt carries, in order: the review block, Round 1. or Delta., a brief the session builds once, and its output contract. The brief is the landed plan's path and Verification section, the diff against the default branch without docs/plans/ (its stat when it is large), the repository's active constraints (greentopo rules --level constraint), and the plan's Non-goals. It checks plan conformance, that every recorded verification is an observable check, violated constraints (rule id and file:line), tests that cannot fail, and scope past the phases or the Non-goals.

Its result begins with the verdict, exactly, because the hook reads it:

Verdict: approve | approve-with-changes | rework
Findings:
1. [blocking|high|medium|low] <problem>. Evidence: <file:line>. Rule: <id or —>. Edit: <concrete change>.
Would still check by hand: <one to three things>

What a review binds to

The content id: the sha256 of git ls-tree -r -z of the commit with every entry under docs/plans/ left out, 64 hex in any object format, computed read-only (attest SPEC, "Content id"). Recording the review in the plan, or adding a plan, therefore never makes it stale; a code change does. It is not attest's canonical tree, canon(T), which counts whether a plan file exists; greenbelay tree-sha prints the content id.

A pass also holds for another tree with the same branch patch, when the repository's rule files are unchanged (ADR-0034, work.implementation-review-binding). The patch is git diff --binary <merge-base> <pushed> -- . ':!docs/plans' hashed by git patch-id --verbatim: whitespace counts, index lines and hunk line numbers do not. The rules are the entries of AGENTS.md, CLAUDE.md, .adr.yaml, .adr/ and .claude/ in the pushed tree. So a rebase onto a moved main that does not touch the patch or the rules keeps the review. A rebase that resolved a conflict, changed a line of the patch's context, or brought new rules does not, with one exception: the root CHANGELOG.md (ADR-0059). A release rewrites the lines around a branch's ## Unreleased entry, so a pass is also filed, under by-notes-patch/, by a second key that ignores where the changelog entry sits: the git patch-id --verbatim of every other file, plus the changelog's changed non-blank lines inside its hunks, in order. A rebase that only moved the changelog's context or blank lines keeps the review, journalled reviewed-by-patch-notes-moved. An entry whose text or order changed, any other file, a mode change or a rename does not. A person's overrule carries over on the same terms, once the overruled tree itself has been pushed (the push files it under its patch); journalled overruled-by-patch. When the patch cannot be computed, the held message says why.

greenbelay tree-sha [--block] [-C <dir>] [--] [<rev>]

--block prints the block the reviewer's prompt carries:

<<<TREE repo=<name> sha=<64 hex>>>>

<name> is the basename of the directory holding the repository's common .git, so a worktree checked out as amont-agent-wt-x says amont-agent. Exit 0; 1 outside a repository or for a rev that names no tree (the reason on stderr); 2 on a usage error.

What the hook does at a push

  1. Resolves the push (crate::push_target): the repository and the commit each refspec publishes. A dry run, a push to main/master, and a push of tags only are not its business.
  2. No plan on the branch: docs/plans/ unchanged between merge-base(<pushed>, <base>) and the pushed commit, where <base> is the first of <remote>/HEAD, <remote>/main, <remote>/master that exists, never the branch's own tracking ref and never HEAD. The rule declines, silently.
  3. Computes the content id of the pushed commit.
  4. Looks for a binding: a completed implementation-review agent in this session's transcript whose block names this repository and tree, or a pass remembered under ~/.claude/greenbelay/implementation-review/by-tree/. Completion is read from structured fields only, as the review panel reads it; a notification echoed inside a tool result never counts. A reviewer resumed with SendMessage on a new block counts as a review of that block (below).
  5. Reads the verdict. A review that said rework and got no later delta on the same tree is not a pass.
  6. On the first transcript binding that passes, writes the pass file (0700 directory, 0600 file), so a new session pushing the same tree passes without a transcript. The pass is also filed under by-patch/ with the patch, the rules fingerprint and the tree.
  7. No binding for this tree: looks the branch patch up under by-patch/. A pass there whose rules fingerprint matches is copied to by-tree/ for this tree ("how": "patch <old tree>"), and the push passes as reviewed-by-patch. The exact patch is tried first, then the changelog key under by-notes-patch/ ("how": "patch-notes-moved <old tree>", reviewed-by-patch-notes-moved). A patch or fingerprint that cannot be computed is a miss.
situationadvise (ships)deny
reviewed this tree, verdict not reworksilentpasses
reviewed the same branch patch, rules unchangedsilentpasses
no plan on the branchsilentsilent
reviewed an older treenote, names both treesheld, names both trees
verdict rework, no deltanoteheld
never reviewednoteheld
transcript unreadable, git failed, no default branch knownnoteheld
a push shape this guard cannot read (--all, --mirror, …)journalled, passesheld

Every note ends with the next step:

greenbelay/implementation-review: no implementation review of greenbelay tree 5085edae1d66 is in this session. worktree-task F4b: `greenbelay tree-sha --block`, then launch the implementation-review agent …

A resumed review

The delta (F4b.6) may resume the same reviewer with SendMessage, giving it the new block, instead of launching a fresh one. Each round is a review of its own, read from the shape a real session recorded (tests/fixtures/sendmessage-resume.jsonl, 2026-10-08):

  1. the launch's result carries toolUseResult.agentId;
  2. a SendMessage whose input.to is that agent id, and whose result carries toolUseResult.resumedAgentId = the same id, starts a round: its prompt is input.message (the block is read from it) and its id is the SendMessage's own. Claude Code 2.1.330 and later answer some subagents' resumes with revivedAgentId alone; when resumedAgentId is absent or null, revivedAgentId = the same id starts the round instead; a resumedAgentId that is present and not null alone decides, so one that is not a string starts nothing;
  3. the round completes only on a structured task notification whose <tool-use-id> is that SendMessage's id and whose <task-id> is the agent id. The launch's own result is never overwritten.

A message to an agent that was not launched as implementation-review, a round whose notification names another task, or a notification typed or echoed rather than queued by Claude Code does not count. Only this rule reads resumes: the plan-review panel counts fresh launches alone.

A delta brief

A resumed reviewer brings its whole first round with it, 50-80k tokens each time. A delta after a rebase or a small fix can instead be a fresh launch that reads only what changed:

greenbelay review-brief --interdiff <head> [--profile <role>]

prints the same <<<TREE>>>, <<<RULES>>> and <<<CANDIDATES>>> headers as the full brief, then what changed since <head>, docs/plans/ left out: the plain diff when <head> is an ancestor of HEAD (a fix on top), or the diff between the two branch patches after a rebase. git range-diff is not used: it lists a commit added on top without its patch, which would hide the fix. The plan, the full diff and the rules are not repeated.

<head> is 7 to 64 hex digits; anything else is a usage error (exit 2). The brief is refused (exit 1, one stderr line naming the brief to build) when <head> or its merge-base cannot be read, when the rule files changed since it, when this role's last passed review of the branch read another head (the line names that head and its --interdiff command), or when what changed is 60 KB or more. It is never cut. Each brief built is journalled interdiff-brief with the head, its size and its shape.

The head comes from the stale line. Each fresh pass records, per role, the head, merge-base and tree it read under by-branch/<repo>/<role>/<sha256 of the remote ref>.json (last writer wins). A push whose review is stale then says "A delta reads only what changed: greenbelay review-brief --interdiff <head> (a profile seat adds --profile <role>)" when that record matches the stale review's tree. The brief looks the record up under the branch of the same name, which is what git push and amont land update; a push to another name finds no record, and the brief says so.

A stale push also names each resumed round on the pushed tree that did not count, right after (stale). and before the carry-over and delta sentences: "A resumed round was not counted: SendMessage to ()." Then its next step once: "A fresh launch on this tree counts.", or, for a round that may still be running, "Wait for its notification; if it ended without one, a fresh launch on this tree counts." With more than one named, the next step follows "For the last:" after the last round. The why is its answer did not name that agent as resumed (the answer's resumedAgentId, or with none its revivedAgentId, is another agent or missing) or no notification of its own yet (still running, or ended without one). Only an answered SendMessage to an agent launched as implementation-review, whose message header carries this repository's block at the pushed tree, is named; at most the last 3 (side transcripts first, then the main one, each in line order), preceded by "N earlier resumed rounds are not shown" (singular for one), each id cut to 64 characters and control characters escaped. The journal excerpt does not change.

The person's overrule

A rework that survives the delta goes to the person on a marked question: its text starts with [implementation-review <repo>@<sha64>] and its options are exactly Overrule, Fix, Hold. As with the preview approval, the hook records the question before it runs and trusts the answer only when that record exists and the question did not arrive with answers pre-filled. On Overrule, and only when this session's transcript shows a completed review of that tree that said rework, the hook writes the pass file with verdict: overruled. An overrule that bound nothing says so in the model's context.

Only the hook writes a pass file

Under deny a pass file is a trust boundary. A Write, Edit or MultiEdit under ~/.claude/greenbelay/implementation-review/ is refused, with . and .. folded before the comparison; a Bash command that would write there — a redirect into it, or rm, cp, tee, python, chezmoi and the like with a word naming it — is refused too, whatever the rule's stance. Reading the record (ls, cat, find, grep) is allowed. The Bash half is best-effort by nature: a parser cannot see inside python -c beyond its words.

~/.claude/greenbelay/provenance/ is guarded the same way (below).

The provenance record

When the hook passes a push that carries a plan, it writes the unsigned amont-provenance-v1 payload to ~/.claude/greenbelay/provenance/<repo>/<pushed sha>. The format is attest SPEC amont-provenance-v1; the decision is ADR-0036. One datum per line: amont-provenance-v1, commit, tree (the full tree), patch (only when the branch patch could be computed), plan <path> <body sha> (the plan under docs/plans/ changed on the branch, read from the pushed tree), review <reviewed|by-patch|overruled> <content id the review read>, preview <approved|evidence|not-required> and producer amont-agent <version>. There is no canon line: attest's canonical tree is a tree fact greenbelay does not own, and the signer, amont, computes it and inserts it before signing. A payload that carries one is refused by the signer.

After the review line, one code-review <role> <how> <content id> line records each code-review profile the plan declares for the repository, in declaration order: how is reviewed, by-patch, carried or overruled, and the content id is the tree that profile's review read. A push with no declared profile writes no such line. greenbelay doctor (and doctor --json) reports one gap for each code-review agent file (code-review-<role>.md, code-review-language.md, interface-review.md) that no agents directory carries, and says nothing when all eight are there.

It is written on reviewed, reviewed-by-patch, reviewed-by-patch-notes-moved, overruled, overruled-by-patch, overruled-by-patch-notes-moved and on a transcript pass; never for a held push or a push declined as no-plan, no-branch, dry-run or nothing-new. A write that fails is journalled provenance-write-failed and never changes the judgment; a write that lands is journalled provenance-written. The record is written once per repository and commit: a re-push of the same commit finds the file and keeps it (the first pass's origin stays), journalled provenance-kept. The preview datum is the preview gate's own decision: evidence when the plan's evidence stood, approved when the person's approval did, not-required for no interface change. While the preview has not stood (the gate holds the push), no record is written, journalled provenance-deferred: the push that passes writes it. Like the pass files, the directory is hook-only: Write, Edit and Bash writes are refused.

What the journal records

Every push writes its decision line, under the rule's id, in the buckets greenbelay status counts: a declined push as unconfirmed with the reason (reviewed, reviewed-by-patch, reviewed-by-patch-notes-moved, overruled, overruled-by-patch, overruled-by-patch-notes-moved, no-plan, dry-run, no-branch, unresolvable), a spoken one as advised, denied or watched. The excerpt of a spoken line is structured:

tree=<12 hex> review=<stale|rework|missing|unknown> verdict=<approve|approve-with-changes|rework|->

A push that passed writes a second line. Its review is compared with the rules as they are now, advise-only and never holding the push, and a rules-checked line is journalled. status counts it in no bucket, because its outcome, rules-checked, is a note beside a decision, not one. Its excerpt is tree=<12 hex> review=<rules-current|rules-missing|rules-stale|rules-unknown>: rules-current when the review read the rules as they are now (the count the rollout reads before the check may deny), rules-missing when its prompt had no rules line, rules-stale when the rules changed since, rules-unknown when the pass predates the stored sha or greentopo could not answer.

A third line, candidates-checked, records what the review did with the candidates greenspotter listed. Its excerpt is tree=<12 hex> review=<...>: candidates-ruled n=<n> when every listed id has a ruling, candidates-undisposed n=<k>/<n> when k of n do not, candidates-unlisted when the reviewer's prompt had no block, candidates-unknown when the pass predates the stored candidates, and candidates-unavailable when it had the unavailable marker. It never changes the judgment, and status counts it in no bucket.

Candidates and rulings

greenbelay review-brief runs greenspotter candidates --base <merge-base> --json --max 40 in the repository (greenspotter from PATH, or the program named by GREENBELAY_GREENSPOTTER; a bounded wait; stdin from /dev/null). A candidate is a line greenspotter marked on a line the branch adds, for the reviewer to rule on; greenspotter owns the document (greenspotter.candidates/1) and the ruling record (greenspotter.ruling/1). The reader refuses any other format token and ignores unknown fields.

Right after the RULES line the brief prints a block to paste verbatim into the reviewer prompt:

<<<CANDIDATES sha=<sha256 of greenspotter's stdout> n=<count>>>>
<id> <rule> <pattern_id> <path>:<line>
<<<END CANDIDATES>>>

and a ## Candidates section in the body with each candidate's id, place, rule, pattern message and text, the per-rule overflow counts, and the instruction for the result. When greenspotter is missing, fails or prints another format, the block is <<<CANDIDATES unavailable>>>, the section names the cause, stderr carries one line, and the brief still exits 0.

The reviewer's result carries a Candidates: block with one line per listed id: <id> violation: <finding> or <id> fine: <one clause quoted from the rule body>. An id is the full 64 hex or a unique prefix of at least 12.

On a passing review (the transcript, the tree memory and the patch memory alike; the pass file keeps what the prompt listed and the result ruled) the push check journals the candidates-checked line above and appends, for each ruling, one greenspotter.ruling/1 line to ~/.claude/greenbelay/rulings/<repo>.jsonl (created 0600 in a 0700 directory, appended to and never rewritten): format, review (the reviewer's agent id), tool (amont-agent), repo, tree (the content id), candidate, rule, pattern_id, pattern (the message from the brief's section, the rule id when unknown), ruling, clause and at (RFC 3339 UTC). A retried push of the same review appends no second record for the same review and candidate. greenspotter ruling-record --check <file> validates the file.

A repository with no .adr.yaml gets a brief with no RULES line and a # Code rules section saying that no decided code rules apply (stderr says so in one line); rules-sha there still exits 3. A repository with .adr.yaml where greentopo is not installed (GREENBELAY_GREENTOPO unset and no greentopo on PATH, not even a non-executable file or a dangling symlink) also gets the brief, with no RULES line and a # Code rules section saying the decided code rules were not read; stderr says so in one line. The review-brief exit codes: 0 the brief was printed (greentopo not installed included), 1 a repository error, 3 an installed greentopo failed or GREENBELAY_GREENTOPO points nowhere. A row of greentopo relevant without a string key is an greentopo error (exit 3) naming the row.

Away from a push: overruled, answered, unbound, unknown, prefilled, unrecorded for the marked question, and denied for a refused write. The soak reads them with:

grep -E ' implementation-review ' ~/.claude/greenbelay/journal.log

Stance

Ships advise. git config --global greenbelay.implementation-review.stance deny holds a push whose review is missing, stale, rework or unknown; observe journals and says nothing. The 2026-10-06 soak review, alongside push-preview, decides between deny, advise and retiring the gate from the journal's review= counts and the first real cycles' finding quality.

Recording what a review found

echo '[{"severity":"high","disposition":"fixed","section":"Verification"}]' |
  greenbelay implementation-review record <plan.md> --verdict approve-with-changes

Appends one greenbelay-impl-review-outcome-v1 row per invocation to ~/.claude/greenbelay/implementation-review-outcomes/outcomes.jsonl (outside the hook-only store): recorded_at, tree (the content id of HEAD, as tree-sha), round (one more than the rows already kept for the plan: a per-plan count, unlike the plan-review ledger's round), plan_path, model (the resolvedModel of the completed implementation-review agent in the newest transcript of the working directory's session, empty when none), verdict and findings. Each finding on stdin is {severity: blocking|high|medium|low, disposition: fixed|deliberate|overruled, section?} and is rebuilt from those keys alone; --verdict is approve, approve-with-changes or rework. A bad severity, disposition or verdict exits 2 and appends nothing; an unreadable stdin exits 1. When a pass is remembered for the tree and its verdict differs from --verdict (a remembered overruled counts as agreeing with rework), a warning goes to stderr. The command writes only outcomes.jsonl and its lock file, never a pass file. greenbelay plan-review stats reads this ledger and reports it as role implementation-review, fixed counting as accepted.

Per-profile briefs

greenbelay review-brief --profile <role> (backend, platform, unix, tui, react, ui-design, architect or lang:<x>) adds a Profile: <role> line after the TREE, RULES and CANDIDATES lines and, after the code rules, a ## Judge rules for <role> section: the full text of each active code rule whose **Checked by:** classes are all judge and whose **Reviewed by:** line names the role (language matches any lang:<x>). A Reviewed by: name outside that set makes the command exit 1 naming the rule and the name; an unknown --profile exits 2. Without --profile the brief is unchanged except for one line in the plan section, Declared code review for <repo>: <profiles|none — reason|not declared>, read from the plan (the canonical file of a pointer plan, under the plan root).

The declared profiles at a push

When the plan declares code-review profiles for the repository, the push needs a pass for each of them on the pushed tree, beside the implementation review (ADR-0052). The hook reads the declaration from the plan(s) changed under docs/plans/ between the merge base and the pushed commit, as that commit holds them. A pointer plan (canonical: <repo>:<path>) that has its own ## Code review section declares through it; that section must declare this repository, and an empty one or one naming only other repositories is a declaration error. When the canonical plan is also readable and holds a different line for this repository, the pointer's line wins and pointer-line-drift is journalled. A pointer with no section is read through its canonical file under the plan root (3.14.0). A canonical file or a ## Code review section that cannot be read is held under deny and journalled (profiles-unreadable) otherwise. A plan with no section, or a repository line none — …, requires the implementation review alone; a plan with no section journals undeclared-profiles.

A copy of a reviewed block

A branch whose whole change is an exact copy of a block that was fully reviewed once needs no declared profile (ADR-0067). The plan says so on the repository's line:

- <repo>: none — copy of fp:<12 hex>

greenbelay plan-panel --code-review <plan.md> -C <dir> --base <ref> proposes that line. The hook does not trust the sentence: it recomputes the fingerprint of the pushed branch (greenbelay block sha) and rechecks the registry. A hit requires the implementation review alone and journals profiles-copy-matched; a miss requires the full declared profiles, with no question to the person, and journals profiles-copy-missed.

Only the hook registers a block, after every profile in the full set for the block's file types has its own approve on that exact tree. The entry keeps that profile set and the rules sha. A miss names its cause: no entry for fp:<id>, revoked: <because>, role <r> not covered, rules changed since registration, agent <a> changed since registration, no passed pin check; run greenbelay review-brief -C <dir> (no record), pin check failed: <detail> (the record's own detail), the pin record was made with GREENBELAY_GH set; run review-brief without it, binary diff, git failed.

greenbelay block manages the registry:

  • block sha [-C <dir>] [--base <ref>] prints the fingerprint of the branch.
  • block list [--json] lists the registered blocks, with the repository each came from (- and source_repo: null when the entry predates the field).
  • block revoke <fp> --because <text> ends a registration, for instance after a defect is found in a copy, until the person reinstates it; it prints the pilot (<source repo> TAB <branch> TAB -) and every recorded copy for a re-check. An ambiguous prefix exits 1: matches <N> blocks; give more hex.
  • block reinstate <fp> lifts a revocation and says so on stderr. It is the person's to run, in their own shell; the guard refuses it to an agent (block-reinstate).

A review recorded with implementation-review record carries copy: true when the hook journalled profiles-copy-matched for its tree, and copy: false otherwise; a row written before the key existed reads as not a copy. greenbelay plan-review stats counts, per seat, the copy-tagged reviews (copies) and the blocking or high findings fixed in them (copy-defects), which is how the rule is revisited at the first defect found in a copy or at 30 copies.

A branch that changes nothing outside docs/plans/ needs no profile: there is no code for one to read (3.14.0). The hook decides it with git diff --quiet --no-relative --ignore-submodules=none over the whole tree minus docs/plans/, before it reads the declaration, and journals profiles-plan-only; a diff git cannot answer is not plan-only. The implementation review still reviews such a branch's plan record.

A completed launch counts for a profile only when its agent is the one the profile maps to (lang:<x> to code-review-language, ui-design to interface-review, any other role to code-review-<role>) and its prompt carries exactly one Profile: <role> line naming that profile, in its header. Two lines, or a line naming another profile, count for nothing. The header is every line before the first that opens the body: a Markdown heading (# to ###### then a space), a code fence (three or more backticks or tildes), or an unfenced diff (diff --git, @@). So an inlined brief, which starts with # Implementation review brief, and an inlined diff never add a line. The launch's own Profile: line must come before them: a prompt that opens with the inlined brief and carries its line only there counts for nothing. The review block (<<<TREE …>>>) a profile review binds is read from the same header, so a block inside an inlined brief or diff binds no tree (3.11.1). A resumed round (SendMessage) inherits its launch's profile and may omit the line; one that names another profile counts for nothing. A profile review never satisfies the implementation review, nor the reverse. A profile's verdict is read like the implementation review's: rework is not a pass.

A pass is a completed review in this session's transcript whose TREE block names this repository and the pushed content id, or a remembered pass: by-profile/<slug>/by-tree/<repo>/<sha>.json, and by-profile/<slug>/by-patch/<repo>/<patch>.json for a tree with the same branch patch and rule files (lang:rust is lang-rust). The implementation review's own by-tree/ files are unchanged. A missing profile is refused:

missing code review of <repo> tree <12 hex>: <agent> [--lang <x>], … (declared in <plan path>). Launch them on this tree, or narrow ## Code review with a reason.

The person's Overrule of a profile's rework uses [implementation-review <repo>@<sha64> profile=<role>] and writes that profile's pass only.

A profile's approve carries to a fix

After a fix the implementation review always reads the new tree, and a profile whose verdict was rework or approve-with-changes reviews again. A profile that said approve keeps its pass on a later pushed tree when the hook can check it (work.code-review-delta, ADR-0052). A profile pass records the commit the review read (the newest commit of git rev-list <pushed> ^<merge-base> whose content id is the reviewed tree), the plan that declared the profile, and a digest of this repository's parsed ## Code review declaration. When a declared profile has no pass on the pushed tree, and the implementation review has passed it, the hook accepts the pass of an earlier commit C only when all hold:

  • its verdict is approve (not approve-with-changes, rework or overruled);
  • C is in git rev-list <pushed> ^<merge-base>: an ancestor of the pushed commit and strictly after the current merge-base, so a rebased branch (the old commit is no longer an ancestor) and a review from a plan already merged carry nothing; a rebase keeps a pass only by patch, as before;
  • its plan path and declaration digest equal the current ones;
  • the pass has all three fields; one written without them never carries.

The approval may also come from the session itself, with no push ever judged at its tree (3.13.0). The hook reads the transcript before any filed pass. It takes this profile's latest completed review, in launch order, of a tree of a commit in git rev-list <pushed> ^<merge-base> other than the pushed one:

  • if that review is not approve, nothing carries, not even a filed pass: a later rework of an earlier tree outranks an older pass;
  • if it is approve, it carries when every branch commit whose content id is the reviewed tree holds the current plan path and declaration digest, read at that commit from the plans it changed since the merge-base. A content id leaves docs/plans/ out, so a plan-only commit shares its tree: each such commit is one the review may have read. A declaration that differs or cannot be read there carries nothing, and never holds the push as unknown;
  • a pointer plan with its own ## Code review section is read at that commit like any plan, and carries; one without the section records no revision of its canonical plan, so what it declared then cannot be proven: it gets no session carry, and filed passes still may.

The carry writes a pass for the pushed tree (how is carried-from <12 hex of the reviewed content id>) and journals profile-carried with carried-from <12 hex> and the git diff --shortstat C <pushed>. Otherwise the profile is missing and must review the new tree.

The implementation review's own block is read from the prompt's header too (3.13.0), as a profile's is: a <<<TREE …>>> block inside an inlined brief or diff binds nothing, so the prompt's TREE line comes first.