fix(delivery): stop unknown agents and wrong item kinds at the inbound check
An agent with no gate-table row had no defined stop; it now stops first in the inbound check with a plain comment. The item kind is checked before the Handoff lookup, 'latest' means newest by creation time, and an allowlist of '- none' counts as empty. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
This commit is contained in:
1 parent
d4226e152b
commit
5a4e4c0674
3 files changed
+13
-8
No files matched your search
@@ -14,11 +14,16 @@ and PR fields and reviews through `gitea-prs`. Every check reads tracker state o
|
||||
|
||||
A Handoff comment is a comment whose `##` headings are exactly the six listed in
|
||||
`references/handoff-comment.md` §Rules, in that order. Ignore every other comment: a quote of one,
|
||||
a plain stop comment, a partial one. Find the latest Handoff comment on the item you were pointed
|
||||
at:
|
||||
a plain stop comment, a partial one. Run these in order, stopping at the first that applies:
|
||||
|
||||
- Your agent has no row in the table above → stop with "no stage defined for agent `<name>`".
|
||||
- You are `delivery-planner` → stop with "no gate defined for the spec or tickets stage in v1":
|
||||
there is no stage to relaunch into in v1.
|
||||
- The item you were pointed at is not the kind your row's "Pointed at" column names → stop
|
||||
with "pointed at an `<issue|PR>`, expected an `<issue|PR>`".
|
||||
|
||||
Then find the latest Handoff comment, newest by creation time, on that item:
|
||||
|
||||
- Its `## Next command` launches your stage's agent → it is your inbound comment. A stop after this
|
||||
check passed posts a Handoff comment relaunching the stopped stage, so its relaunch lands here and
|
||||
runs every gate check in your row again.
|
||||
@@ -49,4 +54,3 @@ comment above. Typical gate-check wordings:
|
||||
- review: "PR title still starts `WIP:`"
|
||||
- verify: "PR not merged"; "no approval from an allowlisted human that is neither stale nor
|
||||
dismissed"
|
||||
- a stage lead not in the table: "no stage defined for agent `<name>`"
|
||||
Reference in new issue
Block a user