Skip to content

skills(review-reviewers): map a relayed repository_dispatch run from its verify-job payload - #941

Merged
max-sixty merged 2 commits into
mainfrom
hourly/review-31407252869
Aug 11, 2026
Merged

max-sixty merged 2 commits into
mainfrom
hourly/review-31407252869

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Step 2's run→output mapping list tells the survey subagent to map a tend-mention run "from triggering comment". That works for the issue_comment path, but tend-mention's relay re-posts review events as a repository_dispatch, and on that path there is no triggering comment at all: the run carries head_branch: main, display_title: tend-mention-review, and jobs named only verify / 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/worktrunk run 31404694712 — a repository_dispatch leg relaying the bot's own empty-body APPROVED review on worktrunk#3798. The delegated survey reported it as "verify job: engagement check passed", conflating the step's success conclusion 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 verify job's log prints the relayed payload in its step env block, so PAYLOAD_PR gives the number and PAYLOAD_KIND gives 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

  • Gate 1 — Medium, occurrence 5 of a 5+ bar. Recorded across prior windows in the gist as the "repository_dispatch mapping gap in Step 2" counter: reached 3, then 4, then held at 4 across five consecutive windows with no repository_dispatch run to count. This window supplies the fifth and the bar is met. Structural — the run's shape (no comment, default-branch headBranch) is fixed, so the recipe fails identically every time; it never depended on how the agent approached the task.
  • Gate 2 — targeted fix. One bullet added to an existing list, with a recipe verified against a live run. No restructuring, no new section. Normal bar, which Gate 1 clears.
  • Not the same as #869, which is open against Step 3 and covers confirming attribution from the posting run's log once a run ID is already in hand. This is the earlier problem — resolving which PR a dispatch run even belongs to — and it edits a different, non-overlapping part of the file.

Analysis run: https://github.com/max-sixty/tend/actions/runs/31407252869

@tend-agent tend-agent added the claude-behavior Behavioral issues found by review-reviewers label Aug 10, 2026

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@max-sixty
max-sixty merged commit d9b98ff into main Aug 11, 2026
9 checks passed
@max-sixty
max-sixty deleted the hourly/review-31407252869 branch August 11, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-behavior Behavioral issues found by review-reviewers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants