delimit_next_task
Fetch the next high-priority task with safeguard checks for cost and error limits. Stops when thresholds are exceeded.
Instructions
Get the next task to work on with safeguard checks.
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 | |||