Files
Holocron/plugins/delivery/.apm/skills/delivery-test-first/references/dispute.md
T
Defame1297andClaude Opus 5.5 3ef0a3c8a9 feat(delivery): add the implement stage agents and skills
Implement stage for the delivery team: delivery-implement-lead runs
test-author -> implementer -> qa in sequence on a draft WIP: PR and
removes WIP: when qa passes, starting review. delivery-test-first turns
acceptance criteria into acceptance checks committed under the
Delivery-Stage: test-author trailer; delivery-ci-checks reads a PR's or
commit's CI by the names in docs/agents/delivery.md.

Agents follow ADR-0016 (no tools: lists, disallowedTools fences on the
lead and qa) and pin Claude model aliases without model-policy; Copilot
limitations are documented in docs/runtimes.md. delivery 0.4.0.

Refs: #192
ADR: ADR-0016, ADR-0031, ADR-0032

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

2.2 KiB

Dispute run — judging a disputed test

Input from your caller: the work branch, the issue, and the implementer's dispute — the disputed tests by file::test name, each with the implementer's reason. The implementation may already be on the branch. Return to SKILL.md Step 3 when the last step here is done.

Step 1 — Check the round

Each test gets one dispute round. A disputed test the caller marks as already judged once → do not judge it again; return it as escalate with the earlier verdict, and the lead escalates to the human.

Step 2 — Judge each disputed test

Reread the criterion the test checks (the issue, quoted in your earlier report) and decide:

The dispute shows Verdict
The test asserts an implementation detail the criterion does not name Amend
The test misreads the criterion, or asserts something the criterion does not require Amend
The test is wrong in itself: bad fixture, wrong expected value, flaky setup Amend
The implementation does not meet the criterion, or the implementer prefers a different behaviour Uphold
The criterion itself is ambiguous and both readings are defensible Uphold, and add it to Open questions

Do not weaken a test to make the current implementation pass. An amendment must still check the behaviour the criterion names.

Step 3 — Amend

Edit the test under the test paths only. An amended test must still fail without the implementation: when a runner is available, run it against the branch's merge-base with the default branch in a temporary worktree, and apply the same red-for-the-right-reason table as a first run — assertion failure counts, a pass is vacuous, a syntax or import error is fixed. Runner not on PATH → record "not run: ". Also run it once on the branch head and record pass or fail; that result goes to the implementer and does not change the verdict.

Step 4 — Uphold

Leave the test unchanged and write a one-line reason that names the criterion it enforces, e.g. "upheld: criterion 2 requires the 404 on an unknown id; the implementation returns 500".

The commit in SKILL.md Step 3 still happens — empty when every test was upheld — so this run ends like every other one.