claim_extend
Extend an existing work-item claim by adding same-domain files, trees, or resources without weakening current ownership. Ensures atomic updates and returns clear errors when scope conditions are unmet.
Instructions
Atomically add same-domain scope without weakening existing ownership.
A work-item claim cannot add operational scope. A named resource extension requires complete timing evidence. Primary-only scope from a linked claim returns SHARED_CHECKOUT_REQUIRED; invalid mixed scope leaves the registry unchanged.
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_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 | ||
| resource_id | No | ||
| 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. | |
| resource_class | No | ||
| compat_file_directories | No | ||
| expected_duration_seconds | No | ||
| requested_hard_stop_duration_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| exit_code | Yes |