next_task
Identifies the next task ready for execution by checking candidate status, dependency completion, and optional agent or changed_files filters. Returns null with a reason and blocked task list when no task is available.
Instructions
Pick the next ready task: candidate status (default pending), all dependencies done, optional agent / changed_files filter. Tiebreaker priority then id. Returns null with reason when none ready, plus the blocked list so callers can show 'X is next when Y completes'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_root | Yes | ||
| agent | No | ||
| changed_files | No | ||
| candidate_statuses | No | ||
| done_statuses | No |