claim_next_task
Atomically reserves the highest-priority pending task on a plan for a given role, returning a claim token or no-work signal so agents can start new work safely.
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 |