Merge dev → main: decisionReason work-item-id resolution (#1239)#1240
Merged
zbigniewsobiecki merged 1 commit intomainfrom Apr 29, 2026
Merged
Merge dev → main: decisionReason work-item-id resolution (#1239)#1240zbigniewsobiecki merged 1 commit intomainfrom
zbigniewsobiecki merged 1 commit intomainfrom
Conversation
… in decisionReason (#1239) Prod incident 2026-04-29: a `respond-to-ci` dispatch logged `Job queued: respond-to-ci agent for work item (unknown)` even though the agent ran on the right PR. Root cause: the GitHub adapter's `parseWebhook` extracts `event.workItemId` from `payload.pull_request.number` only — `check_suite` webhooks store the PR number under `payload.check_suite.pull_requests[0].number` and the parser leaves the field undefined. The `respond-to-ci` handler resolves the PR internally and returns it as `result.prNumber` + `result.workItemId`, but the decisionReason builder used the parse-time `event.workItemId`. The agent itself fired correctly; only the dashboard webhook log was affected. Fix: a `resolveWorkItemLabel(result, event)` helper picks the most specific label — `result.workItemId > 'PR #' + result.prNumber > event.workItemId > '(unknown)'`. Both the `Coalesced dispatch scheduled` and `Job queued` build sites use it. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the
Job queued: ... agent for work item (unknown)diagnostic that surfaced for check_suite-triggered respond-to-ci dispatches. The agent itself ran fine; only the dashboard log was affected.🤖 Generated with Claude Code