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

+11
View File
@@ -140,6 +140,17 @@ the pointer the next stage starts from, open questions, and the command that lau
stage. The next stage reads it first.
_Avoid_: summary, status update
**Step mode**:
How v1 runs the delivery flow: a human launches each **Stage** session by hand, from the previous
**Handoff comment**'s Next command. The launch itself is the human's approval.
_Avoid_: manual mode, interactive mode
**Run mode**:
The later way the delivery flow runs: Gitea Actions workflows launch the next **Stage** on **Gate**
events, and the launcher checks the event's sender against the repo's human allowlist before
starting an agent.
_Avoid_: auto mode, autopilot
**Acceptance check**:
What the test author writes before any implementation, from a ticket's acceptance criteria: a
failing test where a test can express the criterion, otherwise a post-merge assertion about the