claim_next_task
Atomically claim the highest-priority pending task on a plan for a role, returning a task and claim token or no_work_available. Use when ready to start new work and let the system pick.
Instructions
Atomically claim the highest-priority pending task on a plan for the given role. The role must be valid for the plan's plan_type (e.g. 'developer' for dev plans, 'auditor' for audit). Returns { task, claim_token } on success or no_work_available if nothing is claimable. Use this when the orchestrator or developer is ready to start something new and the system should pick. Assigns the bound Project V2 card to the calling actor's GitHub user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Role | No | ||
| PlanId | Yes | ||
| as_agent | No | ||
| TtlOverride | No |