Skip to content

Let agent lanes claim ownership at startup#462

Merged
NagyVikt merged 1 commit into
mainfrom
agent/codex/agents-start-claims-manual-2026-04-29-2131
Apr 29, 2026
Merged

Let agent lanes claim ownership at startup#462
NagyVikt merged 1 commit into
mainfrom
agent/codex/agents-start-claims-manual-2026-04-29-2131

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

Agent startup now accepts repeated --claim flags, creates the branch/worktree first, then reuses the existing lock tool to claim the requested files for the created branch. If the lock tool rejects the paths, startup records a claim-failed session and prints the exact recovery command instead of continuing silently.

Constraint: Existing gx agents start repo-bot mode must keep working when no task/agent/claim lane inputs are provided.

Rejected: Reimplement lock writes in JavaScript | the existing lock tool already owns conflict detection and path normalization.

Confidence: high

Scope-risk: moderate

Directive: Keep startup claims routed through the lock tool so claim semantics stay single-sourced.

Tested: node --test test/agents.test.js test/cli-args-dispatch.test.js test/agents-start-claims.test.js

Tested: openspec validate agent-codex-agents-start-claims-manual-2026-04-29-2131 --strict

Tested: git diff --check

Not-tested: npm test is not fully green; existing test/agents-launch.test.js prompt-mode cases fail with Unsupported prompt mode for <agent>: argument.
@NagyVikt NagyVikt merged commit 231a519 into main Apr 29, 2026
2 of 5 checks passed
@NagyVikt NagyVikt deleted the agent/codex/agents-start-claims-manual-2026-04-29-2131 branch April 29, 2026 19:45
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