delimit_next_task
Retrieve the highest-priority open task from the ledger with automated cost cap and error threshold checks. Returns actions BUILD, CONSENSUS, or STOP to direct workflow.
Instructions
Get the next task to work on with safeguard checks (Pro).
When to use: inside a loop session, to fetch the highest-priority open task with safeguard checks (cost cap, error threshold). When NOT to use: to mark a task done (use delimit_task_complete) or list all tasks (delimit_ledger_list).
Sibling contrast: delimit_task_complete closes + advances; delimit_ledger_list is general listing; this is the loop fetch that may return STOP.
Side effects: read-only on the ledger. Returns action: BUILD, CONSENSUS (queue empty), or STOP (safeguard tripped).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venture | No | Project name or path. Empty = auto-detect. | |
| max_risk | No | Max risk level — "low", "medium", "high", "critical". | |
| session_id | No | Resume existing session. Empty = new. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||