Part of the budget-configurability epic — the “all of them” completeness item.
Scope
Beyond the account circuit breaker, make the run-level bounds settable through the same config resolver, UI, and MCP:
- Per-delegation-tree budget (
DEFAULT_LIMITS in workers/api/src/lib/delegation-budget.ts): costMicros ($5), delegations (50), maxDepth (4). Today only the cost ceiling is auto-derived (p95 × headroom in openBudget); make the defaults explicit and overridable.
- Loop max-iterations (the “iter 12/50” cap the Loop orchestrator enforces): expose as a per-instance / per-run setting rather than a fixed 50.
Clamp each to a safe maximum. Reuse the resolver + endpoints from the backend/MCP tickets; no separate plumbing.
Part of the budget-configurability epic — the “all of them” completeness item.
Scope
Beyond the account circuit breaker, make the run-level bounds settable through the same config resolver, UI, and MCP:
DEFAULT_LIMITSinworkers/api/src/lib/delegation-budget.ts):costMicros($5),delegations(50),maxDepth(4). Today only the cost ceiling is auto-derived (p95 × headroom inopenBudget); make the defaults explicit and overridable.Clamp each to a safe maximum. Reuse the resolver + endpoints from the backend/MCP tickets; no separate plumbing.