claim_extend
Atomically add same-domain scope to an existing claim—files, trees, resources, or backlog—without weakening ownership. Requires a scope reason for project-wide or all-files extensions.
Instructions
Atomically add same-domain scope without weakening existing ownership.
Backlog-domain or all-files extension from an isolated claim returns SHARED_CHECKOUT_REQUIRED. Mixed project/backlog extension returns structured INVALID_SCOPE; project-files and all-files require scope_reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| trees | No | ||
| backlog | No | Select the complete primary-worktree-only backlog. Mutually exclusive with project_files and all_files; returns SHARED_CHECKOUT_RELEASE_REQUIRED when another claim owns the shared checkout, or SHARED_CHECKOUT_REQUIRED from another checkout. | |
| claim_id | Yes | ||
| all_files | No | Select the primary-worktree-only union of project files and backlog. Mutually exclusive with project_files and backlog; requires scope_reason. | |
| resources | No | ||
| repository | Yes | ||
| scope_reason | No | Bounded coordination-only reason required for tree, project_files, and all_files ownership. | |
| project_files | No | Select project files excluding backlog. Mutually exclusive with backlog and all_files; requires scope_reason. Eligible isolation is placed at the canonical primary-worktree .worktrees/<claim-id> path with backlog omitted by sparse checkout. | |
| compat_file_directories | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| exit_code | Yes |