Files
Holocron/plugins/delivery/.apm/skills/delivery-review/references/review-body.md
T
Defame1297andClaude Opus 5.5 0258cff316 feat(delivery): add the review stage and the review hand-back loop
delivery-reviewer (opus; no Bash, Edit, Write or NotebookEdit) is the
review-stage lead. It judges the PR through the new delivery-review
skill and posts one COMMENT review per round. Gitea refuses
REQUEST_CHANGES from a PR's own poster, and the reviewer runs as the bot
that opened the PR. The review opens with `Delivery review: round <n> —
blocking|clear`, and each blocking finding is tagged with the role that
must fix it: [test-author] (with its dispute key), [implementer] or
[human].

Routing: a [human] finding, or a 3rd blocking round, stops with Ready
for Human. Other blocking rounds post the Handoff and put `WIP:` back,
handing the PR to delivery-implement-lead. A clear round hands on to
delivery-operator. A relaunch finishes a crashed routing, using whether
a later Handoff links the review.

delivery-review checks the change against the acceptance criteria and
re-judges every test-path change itself, because a dispute round moves
the CI freeze boundary. It also judges post-merge assertion reasons,
security and the dry run. It reads the delivery doc at the PR's base
ref, and a PR that changes the test-path rules is a [human] finding.

Hand-back: delivery-handoff lets the implement stage take a PR, with
the inbound Handoff required and the gate checked on the issue it
closes. The implement lead first sends [test-author] findings through
delivery-test-first's dispute flow, which now takes review findings,
then gives the implementer the rest. Dispute verdicts are one keyed
`- Dispute verdict:` line copied into every Handoff comment, so later
sessions never re-judge an item or re-dispute a settled test.

delivery-repo-doc, delivery-test-author, delivery-implementer and
delivery-qa are aligned with these contracts. Package bumped to 0.5.0,
with the marketplace allow key and manifest.

Refs: #193

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-23 22:44:18 +00:00

3.1 KiB

The review body and round counting

This file owns the round marker. The reviewer posts the body; this skill only defines it and counts rounds from it.

Every delivery review is posted with state COMMENT. Gitea refuses REQUEST_CHANGES and APPROVED from the PR's poster, and the reviewer runs as the bot user that opened the PR, so the marker, not the review state, carries the outcome.

Round marker

The review body's first line is exactly one of these, with nothing before or after it:

Delivery review: round <n> — blocking
Delivery review: round <n> — clear

<n> is the round from §Round counting, as a bare integer. — blocking when the blocking list holds at least one finding, — clear otherwise. The line is the only thing that identifies a delivery review, so never reword it, translate it, or add a prefix or emoji.

Body

Delivery review: round <n> — <blocking|clear>

<summary line>

- **blocking** [test-author] <key> — `<path>:<line>` — <finding> — [evidence](<link>)
- **blocking** [test-author] — <finding> — [evidence](<link>)
- **blocking** [<owner>] — `<path>:<line>` — <finding> — [evidence](<link>)
- **non-blocking** — `<path>:<line>` — <finding> — [evidence](<link>)
  • Summary line: <b> blocking, <m> non-blocking. When <b> is 0, write No blocking findings. followed by <m> non-blocking. if <m> > 0.
  • One list item per finding, blocking items first, each in the order the skill returned them. Each blocking item carries its owner tag as returned, and a [test-author] item its key, copied verbatim: the implement lead and the test author match on that key, never re-derive it. The one keyless [test-author] item is check 3's missing ## Acceptance checks block, in the second shape above; <owner> is implementer or human, or test-author for that keyless finding. Drop `<path>:<line>` — from any item for a finding with no line.
  • No findings at all: the marker line and No blocking findings. only.
  • Never paste log text or secret values; evidence is the link.

Inline comments

Each finding with a <path>:<line> is also posted as an inline comment on the same review: path the repo-relative path, new_line_num the line in the PR head's version of the file, and body **blocking** [test-author] <key> — <finding>, **blocking** [<owner>] — <finding> or **non-blocking** — <finding>. A finding about a removed line has no line in the new file, so it stays in the body only, as does the keyless **blocking** [test-author] — <finding> (a missing block has no line).

Round counting

Read every page of mcp__gitea__pull_request_read method get_reviews on the PR. A review is marked when its body's first line matches ^Delivery review: round [0-9]+ — (blocking|clear)$.

  • round = 1 + the number of marked reviews.
  • blocking-rounds-before = the number of marked reviews whose first line ends — blocking.

A human's review never carries the marker, so it never counts. Do not trust the <n> in earlier markers; the count is what decides round.