claim_task
Claim an open task atomically with a lease. If the agent stops renewing, the task returns to the board to prevent stalled agents.
Instructions
Atomically claim an open task. Fails if it is taken or not ready.
The claim carries a lease: if you stop renewing it (update_task renews automatically) the task returns to the board so the swarm never stalls on a crashed agent. After claiming, call get_briefing before starting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| agent_id | Yes | ||
| lease_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| project_id | Yes | ||
| title | Yes | ||
| description | No | ||
| role | No | Suggested agent role, e.g. 'implementer'. | any |
| priority | No | 1 = highest, 3 = lowest. | |
| status | No | open | |
| depends_on | No | ||
| claimed_by | No | ||
| lease_expires_at | No | ||
| iteration | No | How many review round-trips this task has had. | |
| summary | No | Completion summary written by the finishing agent. | |
| artifacts | No | Paths/URLs produced by the task. | |
| created_at | Yes | ||
| updated_at | Yes |