Repository navigation
fix(work-unblock): re-fire a resolve-issue run that stopped on a later leg - #11292
Conversation
…topped on stale workflow files stoppedStale read only the jobs namedJobs matches for "resolve-issue", which are `resolve-issue` and `resolve-issue / ...`. A later leg's `resolve-issue-subscription / run` or `resolve-issue-fallback / run` never matched, so a run whose API key leg handed off and whose later leg then waited for its slot past a lane workflow change ended green with no outcome marker and was never re-fired (run 41046083087 on #7977, run 41046053758 on #8771). It now reads every read-runner call, and the wiring test checks a copy of that list against work-resolve-issue.yml. Co-Authored-By: Claude Opus 5.5 <[email protected]>
didNoWork read the kill-switch skip and the broker refusal only from `resolve-issue / broker-check`. After the API key leg hands off, `resolve-issue-subscription / broker-check` and `resolve-issue-fallback / broker-check` ask the broker again, and their refusal or kill-switch skip went unseen: a refused run was re-fired as a plain failed run, and a skipped one ended green and was stranded. It now reads every read-runner call in RESOLVE_CALLS, as stoppedStale does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security findings. What I read: the whole diff ( What the change does: Trust controls checked:
Spend: this can make the hourly sweep re-fire more Manifests: no |
|
claude-review reviewed No blocking or advisory findings. What I checked (by reading, not by running tests):
Cost: The change re-fires more stranded runs, which spends only prepaid or subscription lane usage. It is not a hold. Limits of this review: I did not run the test suite. The "238 pass" and "fail against the pre-fix module" claims are the author's and I did not check them. The PR context file contains no embedded instructions. No closing issue is listed. The PR notes that #9241 is a different cause and is out of scope here. |
No related issue: lane defect reported by the Issue Triage session; it stranded #11234, #8012, #7977 and #8771 for 3-9 h with
agent-readyon an idle issue.Summary
work-unblock's hourly sweep decides whether an ended
work-resolve-issuerun should be re-fired. Two of its checks read only the base leg's jobs (resolve-issue / …):stoppedStale: a run that ended green atStop on stale workflow files.didNoWork: a kill-switch skip or a broker refusal atbroker-check.When the base leg handed off and the
resolve-issue-subscriptionorresolve-issue-fallbackleg hit one of these stops, the run concluded success,report-outcomewas skipped, no comment was posted, and the sweep classed the issue as stranded ("its lane run did not fail") instead of re-firing it. The issue then waited out the 3 h no-report backstop ("ended over 3 hours ago with no report") before work-unblock re-fired it; with this fix it re-fires on the next sweep, as a base-leg stop already does.Fix
RESOLVE_CALLSlists the three callers of the read runner (resolve-issue,resolve-issue-subscription,resolve-issue-fallback) next toSTALE_STEPin.github/scripts/work-unblock/label-unblocked.mjs.stoppedStale, anddidNoWork'skilledandchecked, read jobs across all three, so these runs take the existing re-fire paths (stale files: once per version of the lane workflow files on main; breaker: the check-stage trip).cappedstill reads only the first call, which owns the WIP cap.Verification
node --test .github/scripts/work-unblock/label-unblocked.test.mjs: 238 pass, 0 fail.pr-run-activity-read.ymlcallers inwork-resolve-issue.ymlto the list.resolve-issue-subscription / runranStop on stale workflow files(success);report-outcomeskipped.Related
report-outcome / reportskipped with no stale stop); not addressed here.🤖 Generated with Claude Code