fix(delivery): keep inbound-rule stops out of the handoff trail

Why: every Stop posted a Handoff comment whose Next command relaunched the
stopping agent, including stops raised by the inbound rule itself. A second
launch then passed the inbound check, and a wrong-agent stop buried the
correct pointer.

Implementation Notes:
- Stops before the inbound check passed (Steps 1-2) post a plain comment;
  later stops keep the relaunching Handoff comment.
- gates.md defines a Handoff comment strictly and owns the inbound stop
  wordings; the planner stops at the inbound check in v1.
- Heading names and where-to-post live once, in handoff-comment.md.
- Gotcha and delivery-repo-doc checklist item: the two Status labels must
  not share an exclusive scope.
- GLOSSARY gains Step mode and Run mode; ADR-0032 scopes the gate-label
  check to stages that have one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-23 17:21:51 +00:00
1 parent fc09f77fb3
commit d4226e152b
6 files changed
+53 -28

No files matched your search

@@ -55,11 +55,11 @@ running it in CI on a bot PR hands the bot those credentials. Decided in
it is not used. Ansible's pre-merge `--check --diff` is reopened (see Secrets); later
`tofu plan`;
- in step mode (v1) the human launching a stage is the approval, and stage leads check gate
state only: the gate label is present, and for verify the PR is merged with a non-stale,
non-dismissed approval by a user on the human allowlist in `docs/agents/delivery.md`. The
who-set-the-label check moves to the run-mode launcher, which checks the triggering event's
sender against the allowlist before starting an agent; it is deterministic, so it belongs in
the workflow, not an agent;
state only: the stage's gate label, if it has one, is present, and for verify the PR is
merged with a non-stale, non-dismissed approval by a user on the human allowlist in
`docs/agents/delivery.md`. The who-set-the-label check moves to the run-mode launcher, which
checks the triggering event's sender against the allowlist before starting an agent; it is
deterministic, so it belongs in the workflow, not an agent;
- a CI test-path check, run from `main`'s copy, fails if a commit after the test author's
(trailer `Delivery-Stage: test-author`) touches the globs in `.gitea/test-paths`; this check,
not file protection, guards tests. The implementer hands disputed tests back instead of editing