claim_task
Atomically claim an open task from the shared board, securing it with a lease that prevents swarm stalls. After claiming, retrieve the briefing to start work.
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 |