task_next
Atomically claim the highest-priority runnable task for a worker; leases stop concurrent agents from owning the same task tree.
Instructions
Agent-loop primitive: atomically claim the highest-priority runnable task for this worker. Multiple model clients can call this concurrently; leases prevent two workers owning the same tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| project | No | ||
| workerId | No | ||
| workerRole | No |