feat(agents): lane-neutral agent-claim/<issue> arbitration#2477
Draft
cursor[bot] wants to merge 4 commits into
Draft
feat(agents): lane-neutral agent-claim/<issue> arbitration#2477cursor[bot] wants to merge 4 commits into
cursor[bot] wants to merge 4 commits into
Conversation
> 🤖 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>
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.
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