Repository navigation
skills(review-reviewers): map a relayed repository_dispatch run from its verify-job payload - #941
Conversation
…its verify-job payload
tend-agent
left a comment
There was a problem hiding this comment.
The PAYLOAD_* route itself checks out — verify's Verify bot engagement step carries PAYLOAD_KIND/PAYLOAD_PR/PAYLOAD_ID in its env: block, so they print in the job log for every dispatch run.
One correction on the verdict signal in the last line, though: React to mention is not a proxy for the engagement gate on this path. Its if: requires either a github.event.comment (never present on a repository_dispatch) or client_payload.kind == 'pull_request_review_comment' with reason == 'mention', so on a relayed pull_request_review — the majority of relay traffic, and the shape the linked run had — it is skipped unconditionally, whatever the gate decided. A pull_request_review_comment relay admitted on reason=participation skips it too while handle boots. Teaching the survey agent to read it as "gate declined, no agent booted" reintroduces the same conclusion-vs-verdict conflation the bullet is being added to remove, just one step over.
handle is the signal that actually carries the verdict — it is gated on if: needs.verify.outputs.should_run == 'true', so its skipped conclusion is exactly "the gate declined". Suggestion inline.
… React to mention
Step 2's run→output mapping list tells the survey subagent to map a
tend-mentionrun "from triggering comment". That works for theissue_commentpath, buttend-mention's relay re-posts review events as arepository_dispatch, and on that path there is no triggering comment at all: the run carrieshead_branch: main,display_title: tend-mention-review, and jobs named onlyverify/relay/handle. Neither of the two routes the list offers resolves it, so every window that contains one of these runs falls back to hand-derivation by the analysing agent.Observed again this window on
max-sixty/worktrunkrun 31404694712 — arepository_dispatchleg relaying the bot's own empty-bodyAPPROVEDreview on worktrunk#3798. The delegated survey reported it as "verify job: engagement check passed", conflating the step'ssuccessconclusion with the engagement verdict; the verdict was the opposite (React to mention: skipped,handle: skipped— the gate declined and no agent booted). Nothing shipped publicly from the misreport, because the mapping was re-derived by hand, which is the cost this bullet removes.The fix is the verified route: the
verifyjob's log prints the relayed payload in its step env block, soPAYLOAD_PRgives the number andPAYLOAD_KINDgives the relayed event directly. Confirmed against the run above —PAYLOAD_KIND: pull_request_review,PAYLOAD_PR: 3798,PAYLOAD_ID: 4898462421.Gate assessment and evidence
Evidence log: https://gist.github.com/a88c03f4d0c3fb1791060ff3dd97d1c4
repository_dispatchmapping gap in Step 2" counter: reached 3, then 4, then held at 4 across five consecutive windows with norepository_dispatchrun to count. This window supplies the fifth and the bar is met. Structural — the run's shape (no comment, default-branchheadBranch) is fixed, so the recipe fails identically every time; it never depended on how the agent approached the task.Analysis run: https://github.com/max-sixty/tend/actions/runs/31407252869