WI-066 · Platform & Contracts · cost-governance
queued P1 medium risk Owner: Paul Reviewer: Mark Hilleary 0% · 0/1 tasks complete
| Code | WI-066 |
|---|---|
| Phase | Platform & Contracts |
| Order | 27 of 93 |
| Story points | 13 |
| Primary surface | Budget service + append-only cost ledger + pricing catalog |
| Retires | — |
| Depends on | Observability core (operation envelope, OTel trace tree + attributes/events, durable provider-attempt records, P3/P4/P5/P7 trace linkage, redaction, sampling, dashboards) |
| Blocks | Learning loop & replay (qualification snapshots -> P2, drift detection, circuit breakers, validation/ranking/provider replay, retrospectives, policy comparison) |
Make spend bounded and truthful: the reserve->authorize->reconcile budget handshake that P2/P3/P7 call before any paid attempt, hierarchical budgets with green/yellow/red/critical states, an append-only micro-unit cost ledger, an over-budget engine that never crosses the quality floor, and honest reconciliation of overruns.
Build (governance)
Test
Entitlement in the handshake (D35)
P8 Observability and cost-control policy: scan trace structure, per-scan-type token/tier budgets, and quality/cost metrics are defined.No linked requirements.
No paid attempt begins without a versioned budget authorization; reserve->authorize->reconcile implemented with per-attempt authorization (retries share one cumulative operation budget); hierarchical budgets (tenant/plan/period/operation/scan) + green/yellow/red/critical; append-only cost ledger in integer micro-units; versioned pricing catalog (not in adapters); over-budget engine with typed outcomes that only reduces declared-optional scope + never crosses the quality floor; actual-over-reservation reconciled truthfully + alerted; paid-action approval (model can't self-authorize); local-compute accounting; paid MCP + ingestion cost linkage. Per spec section 12-27, 52 (cost rows). Unblocks paid work for P2/P3/P7.
No paid API / infra spend triggered by this item.
queued Sprint: P&C Wave 3: Vision Pipeline & Cost
Edit status / sprint on the ★ Live Board → — changes are logged live with who / when / why.
No human tasks linked.
None recorded yet.
None recorded yet.
None recorded yet.
None recorded yet.
No tool calls recorded.
No files / artifacts recorded.
No log entries yet.