Summary
Design per-step and per-run token limits, cost caps, and budget-aware execution. This is NOT IN SPEC and requires spec authoring.
Parent issue: #105 — Tier 3, Priority #10
Why
In production, runaway costs from long context or retry loops are a real operational risk. A budget: field per step or per pipeline would enable cost-aware model selection and prevent blowouts. This is especially critical once iterative loops (#116) and retry (#108) are implemented.
Design Decisions Needed
Spec Work Required
New spec section needed for budget/cost control.
Acceptance Criteria
Summary
Design per-step and per-run token limits, cost caps, and budget-aware execution. This is NOT IN SPEC and requires spec authoring.
Parent issue: #105 — Tier 3, Priority #10
Why
In production, runaway costs from long context or retry loops are a real operational risk. A
budget:field per step or per pipeline would enable cost-aware model selection and prevent blowouts. This is especially critical once iterative loops (#116) and retry (#108) are implemented.Design Decisions Needed
budget:block withmax_tokens:,max_cost:?{{ budget.remaining_tokens }})Spec Work Required
New spec section needed for budget/cost control.
Acceptance Criteria