Skip to content

fix(work-unblock): re-fire a resolve-issue run that stopped on a later leg - #11292

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/stale-files-stop-refire
Oct 30, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/stale-files-stop-refire

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

No related issue: lane defect reported by the Issue Triage session; it stranded #11234, #8012, #7977 and #8771 for 3-9 h with agent-ready on an idle issue.

Summary

work-unblock's hourly sweep decides whether an ended work-resolve-issue run should be re-fired. Two of its checks read only the base leg's jobs (resolve-issue / …):

  • stoppedStale: a run that ended green at Stop on stale workflow files.
  • didNoWork: a kill-switch skip or a broker refusal at broker-check.

When the base leg handed off and the resolve-issue-subscription or resolve-issue-fallback leg hit one of these stops, the run concluded success, report-outcome was 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_CALLS lists the three callers of the read runner (resolve-issue, resolve-issue-subscription, resolve-issue-fallback) next to STALE_STEP in .github/scripts/work-unblock/label-unblocked.mjs.
  • stoppedStale, and didNoWork's killed and checked, 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). capped still reads only the first call, which owns the WIP cap.

Verification

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 30, 2026 10:56
…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]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 30, 2026 15:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T15:17:38.983792Z 12ef430 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 12ef430ab15ab11074ece7f6caf0efbfa95a5675: 0 finding(s), 0 as inline comments.

No security findings.

What I read: the whole diff (label-unblocked.mjs and its test file) and the PR context. I also read namedJobs at .github/scripts/work-unblock/label-unblocked.mjs:1210. No changed file matches a trusted path.

What the change does: stoppedStale and didNoWork now read jobs from all three read-runner callers (resolve-issue, resolve-issue-subscription, resolve-issue-fallback). Before, they read only the first. That lets the sweep re-fire a run that stopped on a later leg.

Trust controls checked:

  • namedJobs matches a job name exactly or by the prefix "<name> /". resolve-issue / does not match resolve-issue-subscription /, so each call is picked up once and the legs don't overlap.
  • No token scope, trusted-actor check, kill-switch consult or merge hold changes. The kill-switch and broker-refusal reads are still the same step checks (KILL_STEP success with BROKER_STEP skipped, or BROKER_STEP failed), now over more jobs. A later leg's kill-switch skip still counts as a breaker trip and is not re-fired as a stale stop.
  • capped still reads only the first call, as the PR says.
  • Re-fire is still bounded: once per version of the lane workflow files on main, or the existing check-stage trip path. The input is job and step names and conclusions from the Actions API for this repository's own runs, not text from PR or issue authors.

Spend: this can make the hourly sweep re-fire more work-resolve-issue runs, which use prepaid API or subscription usage. It is not a hold.

Manifests: no plugin.json or marketplace.json change.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 12ef430ab15ab11074ece7f6caf0efbfa95a5675: 0 finding(s), 0 as inline comments.

No blocking or advisory findings.

What I checked (by reading, not by running tests):

  • RESOLVE_CALLS matches the three pr-run-activity-read.yml callers in work-resolve-issue.yml: resolve-issue, resolve-issue-subscription and resolve-issue-fallback. The -handoff jobs are separate job ids and are correctly left out.
  • namedJobs matches a name exactly or as a prefix followed by /. So resolve-issue does not also match resolve-issue-subscription / …, and the three names can't double-count a job.
  • stoppedStale and didNoWork (killed, checked) now read all three legs. capped still reads only the first call, which owns the WIP cap, so that behaviour is unchanged.
  • The early return null in didNoWork fires only when a job has a successful Request the lane token step and was not stopped. That step is not in the read runner pr-run-activity-read.yml, so a base leg that ran the model can't block the later-leg breaker check.
  • The new tests cover both a stale stop and a broker-check refusal/skip on each later leg. A wiring test pins the pr-run-activity-read.yml callers in work-resolve-issue.yml to the list, so a fourth leg would fail it.

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.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 571b112 Oct 30, 2026
133 of 136 checks passed
@kyle-sexton
kyle-sexton deleted the fix/stale-files-stop-refire branch October 30, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant