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
4.0 KiB
First run — acceptance criteria to acceptance checks
Input: the ticket (issue) and the work branch, from your caller. No implementation exists yet.
Return to SKILL.md Step 3 when the last step here is done.
Step 1 — List the criteria
Read the issue's acceptance criteria and number them in their written order. Quote each one verbatim; the report pairs checks with the quoted text.
No acceptance criteria on the issue → stop: "issue has no acceptance criteria".
Step 2 — Classify each criterion
Every criterion gets at least one check. Decide per criterion, in this order:
- Test — the behaviour it names can be exercised before merge: code, a template render, a lint or schema rule the repo's tests can run, a script's output.
- Post-merge assertion — the criterion is only observable in the applied state and nothing before reconcile or apply carries logic to test, e.g. a chart version bump.
- Neither — the criterion names no observable outcome ("is clean", "works well", "is faster" with no measure). That is a spec problem → stop with the criterion quoted: "criterion not checkable: """.
A criterion may need both a test and a post-merge assertion; write both.
Step 3 — Load the tool skills
Match the paths the change will touch (from the issue, or the files its criteria name) against the
## Contents → skills globs. Load the union of the listed skills over every matching glob; they
own the test framework, file layout and naming conventions. Follow them, not a framework you would
pick yourself.
A listed skill that is not installed → stop: "missing skill <name>". No glob matches, or the
section is - none → follow the conventions of the existing tests under the test paths.
Step 4 — Write the tests
For each test-classified criterion:
- Place the file under a test path glob. The needed test cannot live under one → do not write it; add the criterion to Open questions in the report, naming the path it would need.
- Assert the outcome the criterion names, through the interface a user or caller sees: a public function, a CLI's output, a rendered manifest, a role's resulting file. Never assert private names, call order or internal structure the criterion does not mention.
- Name the test after the behaviour, so the report line reads as the criterion.
- One test per behaviour; a criterion with several outcomes gets several tests.
Step 5 — Confirm each test is red for the right reason
Run only the new tests, once, with the runner the tool skill names. For Ansible, use a placeholder
vault password (a temporary file holding the literal string placeholder), never the real one.
| Result | Action |
|---|---|
| Fails on an assertion about the named behaviour | Correct — record it as red |
| Passes | Vacuous: the behaviour already exists or the assertion is too weak. Strengthen it until it fails; if the behaviour truly already exists, add the criterion to Open questions |
| Fails on syntax, import, collection or fixture errors | Fix the test and rerun |
| Runner not on PATH, or needs credentials you must not hold | Do not fake a result; record "not run: " for that test |
A test that imports a module the change will create fails on import; that is expected only when the missing module is the change itself. Make the failure an assertion where the framework allows, e.g. import inside the test and assert on its absence, or say so in the record.
Step 6 — Write post-merge assertions
For each assertion-classified criterion, write one line holding:
- one observable statement about the applied state, concrete enough for
delivery-operatorto check with read-only commands — resource kind, name, field and expected value; - a reason no pre-merge test applies, which
delivery-reviewjudges (its checklist check 3).
Example: HelmRelease gotify Ready at chart 1.2.3 — reason: a version bump has no testable logic
before reconcile.
Post-merge assertions are not files; they go only in the report. With no test files written, the
commit in SKILL.md Step 3 is empty.