Expand description
Shared execution-loop budgets and planning safety bounds.
Constants§
- APPROVED_
PLAN_ MIN_ TOOL_ CALLS_ PER_ TURN - Minimum per-turn tool-call budget for executing an approved plan.
- APPROVED_
PLAN_ TOOL_ LOOP_ INCREMENT - One-time internal allowance applied when an approved plan enters execution. This is not a user-facing configuration field and remains bounded by the ordinary tool-loop hard cap.
- DEFAULT_
FULL_ AUTO_ MAX_ TURNS - Default maximum number of turns in full-auto execution.
- DEFAULT_
MAX_ CONVERSATION_ TURNS - Default conversation-turn retention limit. This is a context-retention limit, not a tool-execution budget.
- DEFAULT_
MAX_ TOOL_ CALLS_ PER_ TURN - Default maximum number of tool calls in one agent turn.
- DEFAULT_
MAX_ TOOL_ LOOPS - Default maximum number of tool-loop iterations in one agent turn.
- DEFAULT_
SAFETY_ MAX_ TOOL_ CALLS_ PER_ SESSION - Default safety-gateway session fuse when no run-specific budget is loaded.
- MAX_
CONTROL_ PLANE_ TOOL_ CALLS_ PER_ TURN - Per-turn cap on budget-exempt control-plane exec calls (blocking
waitand boundedinspectof running sessions or spooled output). - MAX_
SESSION_ AUTO_ GRANT_ TOTAL_ HEADROOM - Total auto-granted session headroom per session (tool calls).
- MAX_
TOOL_ LOOP_ CAP_ MULTIPLIER - Multiplier used to derive the ordinary extension hard cap.
- MAX_
TOOL_ LOOP_ INCREMENT_ PER_ PROMPT - Maximum ordinary tool-loop extension accepted from one prompt.
- MAX_
TOOL_ LOOP_ LIMIT_ ABSOLUTE_ CAP - Hard cap for ordinary tool-loop extensions.
- PLANNING_
WORKFLOW_ MAX_ TOOL_ LOOP_ INCREMENT_ PER_ PROMPT - Maximum planning tool-loop extension accepted from one prompt.
- PLANNING_
WORKFLOW_ MAX_ TOOL_ LOOP_ LIMIT_ ABSOLUTE_ CAP - Hard cap for planning tool-loop extensions.
- PLANNING_
WORKFLOW_ MIN_ TOOL_ CALLS_ PER_ TURN - Minimum per-turn tool-call budget while planning research is active.
- PLANNING_
WORKFLOW_ MIN_ TOOL_ LOOPS - Minimum tool-loop budget while planning research is active.
- PLANNING_
WORKFLOW_ TOOL_ LOOP_ CAP_ MULTIPLIER - Multiplier used to derive the planning extension hard cap.
Functions§
- session_
auto_ grant_ increment - Increment a full-auto run grants itself against the session headroom cap.
- tool_
loop_ hard_ cap - Absolute ceiling for per-turn tool-loop extensions derived from a configured base limit. Values at or above the absolute cap are returned unchanged so an already-generous configuration is never shrunk.