Skip to content

feat(agents): lane-neutral agent-claim/<issue> arbitration#2477

Draft
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/agentic-engineering-invocation-1e32
Draft

feat(agents): lane-neutral agent-claim/<issue> arbitration#2477
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/agentic-engineering-invocation-1e32

Conversation

@cursor

@cursor cursor Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

🤖 Generated by the Agentic Engineer (Cursor cloud instance)

Why

Cross-lane claim races were never arbitrated: each instance writes its own namespace, so two writers can both push and both believe they won. That discarded real builds and left the known hole in the claim protocol.

What

Adds a shared agent-claim/<issue> tip every lane acquires before its work branch, with portable fail-closed nonces, retire-on-PR and evidence-gated stale takeover, contract/run-loop updates, and a CI-gated four-trap self-test.

Fixes #2302

Open in Web View Automation 

cursoragent and others added 4 commits July 22, 2026 15:35
> 🤖 Generated by the Agentic Engineer (Cursor cloud instance)

Reserve lane-neutral agent-claim/<issue> work for monorepo#2302.

Co-authored-by: Nikolai Emil Damm <devantler@users.noreply.github.com>
> 🤖 Generated by the Agentic Engineer (Cursor cloud instance)

Close the cross-lane claim hole (#2302): every instance acquires a shared
agent-claim/<issue> tip via agent-claim.sh before its lane work branch.
Portable /dev/urandom nonce (fail-closed), tip-compare not exit-status,
retire-on-PR-open, evidence-gated stale takeover. RED/GREEN covers all
four proven traps. Removes the Claim protocol KNOWN HOLE note.

Co-authored-by: Nikolai Emil Damm <devantler@users.noreply.github.com>
…f-2302

Co-authored-by: ned <ned@devantler.tech>
Wire agent-claim.sh's four-trap self-test into CI on both OSes so the
cross-lane claim arbitration cannot regress without failing the PR gate.

Co-authored-by: ned <ned@devantler.tech>
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.

Cross-lane claim races are never arbitrated — a lane-neutral claim ref, with four proven traps

1 participant