feature_claim
Claim a feature for exclusive work using an expiring lease, preventing duplicate assignments and automatically freeing features if a worker dies.
Instructions
Take a feature to work on, if nobody else holds it. The claim is a LEASE with an expiry, not a flag: a worker that dies holding a flag blocks its feature forever, whereas a lease runs out and the work returns to the pool. Claim before starting, or two workers take the same item and you find out via a merge conflict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| cwd | No | Directory identifying the project and the tree. Defaults to this session's working directory, which in a git worktree is that worktree. | |
| worker | Yes | Who is taking it — the worker or session name. | |
| lease_minutes | No |