fix(work-items): skip in-flight candidates at work-loop admission (#4610) - #4688
Merged
Merged
Conversation
…osing PR (#4610) The admission gate now applies /work-items:work's in-flight exclusion (adapter "Open linked PRs", drafts counted, fail closed on query error, fail open without a PR host) before classification, so an item whose closing PR is already open is never ratify-queued, escalated, or dispatched. The cycle report lists it as in flight, and it does not count as actionable work for the no-progress detector. Closes #4610 Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Contributor
|
PR body contract — issue linkage This PR body does not yet satisfy the issue-linkage contract:
Edit the body and this comment updates itself on the next run. |
Merged
1 task done
cursor Bot
pushed a commit
that referenced
this pull request
Sep 27, 2026
…worker authority (#4262) (#4698) <!-- CURSOR_AGENT_PR_BODY_BEGIN --> Fixes #4262 ## Summary Defines a wave as one phase’s worker-row batch. One git writer per worktree binds under both commit authorities (`worker` → serialize shared worktree; concurrent shared worktree needs `orchestrator`). Keeps #4511 orchestrator concurrency. New/updated evals 7 and 9. Versions: `implementation` → 0.18.2; `work-items` wording bump (may collide with stacked #4688–#4690 — serialize on merge). ## Sources - git-worktree / lockfile.h; triage A+B outcome B ## Test plan - [x] evals; changelog parity (per implementer) ## Notes **Merge after** work-items stack #4688/#4689/#4690 if those land first, or renumber work-items here. <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-ab53da24-b89d-4314-a060-0da474e837e9?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-ab53da24-b89d-4314-a060-0da474e837e9&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
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.
Closes #4610
Summary
The work-loop admission gate queued C3 items for ratification without checking whether a closing PR was already open. Step 3 now drops in-flight candidates first, reusing
/work-items:work's open-linked-PR exclusion (drafts count). Excluded items are not dispatched/ratify-queued/escalated; the cycle report lists them as in flight; stall detection no longer counts them as actionable.work-items0.40.29 → 0.40.30.Research trail
work/context/candidate-discovery.mdin-flight exclusionTest plan
Notes
Merge first of three stacked PRs (#4610 → #4605 → #4609).