Skip to content

fix(work-items): skip in-flight candidates at work-loop admission (#4610) - #4688

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/4610-work-loop-inflight-37e9
Sep 27, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/4610-work-loop-inflight-37e9

Conversation

@kyle-sexton

Copy link
Copy Markdown
Contributor

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-items 0.40.29 → 0.40.30.

Research trail

  • work/context/candidate-discovery.md in-flight exclusion
  • GitHub adapter "Open linked PRs"
  • Consensus triage A+B (2026-09-27): outcome A

Test plan

Notes

Merge first of three stacked PRs (#4610 → #4605 → #4609).

Open in Web Open in Cursor 

…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>
@github-actions

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a "## Fix" section. State the concrete change and how it addresses the problem.
  • Missing a "## Verification" section. Record concrete evidence the change works (commands, gates, output).
  • Missing a "## Related" section. List related PRs, ADRs, or decision-log entries this PR does not close.

Edit the body and this comment updates itself on the next run.

@cursor
cursor Bot marked this pull request as ready for review September 27, 2026 22:03
@cursor
cursor Bot merged commit 9a5897b into main Sep 27, 2026
32 checks passed
@cursor
cursor Bot deleted the cursor/4610-work-loop-inflight-37e9 branch September 27, 2026 22:47
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>&nbsp;<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>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

work-loop: admission gate ratify-queues items that already have an open closing PR

2 participants