dream-cycle budget gates ignore pricing.overrides (BudgetMeter never receives them)
What happens
pricing.overrides (#4312) is the operator's declared rate: a proxy route, or $0 for a flat-rate subscription lane. The closing note on #4942 names it as the way to force claude-cli to $0. BudgetTracker consults it before the shipped tables (reservationCostUsd(…, this.opts.pricingOverrides)), and conversation_facts_backfill, extract_atoms (#4877) and enrich load it.
The dream-cycle meter never does. BudgetMeter.estimateCost (src/core/cycle/budget-meter.ts) prices through canonicalLookup or the Sonnet fallback only, and none of its five construction sites load the overrides:
src/core/cycle/base-phase.ts:219— propose_takes, grade_takes, calibration_profilesrc/core/cycle/synthesize.ts:701src/core/cycle/drift.ts:325src/core/cycle/auto-think.ts:126src/core/extract-takes-from-pages.ts:215— takes bootstrap
So an override that clears every BudgetTracker cap still leaves these phases gated at API list price. A model absent from the tables is still metered at the fallback rate instead of the declared one.
Impact
We run the dream cycle's LLM phases through claude-cli (subscription). Following #4942, the documented way to stop them being capped against dollars nobody bills is pricing.overrides. That works for conversation_facts_backfill and extract_atoms, but not for the seven meter-gated phases above. The only remaining lever is raising dream.*.budget to arbitrary values, which removes the cap for real API routes too.
Repro
const meter = new BudgetMeter({ budgetUsd: 0.001, phase: 'propose_takes' });
meter.check({ modelId: 'anthropic:claude-sonnet-4-6', estimatedInputTokens: 100_000, maxOutputTokens: 10_000 });
// allowed: false, whatever `pricing.overrides` says. The meter has no way to receive it.End to end: set pricing.overrides to {"anthropic:claude-sonnet-4-6": 0} and dream.drift.budget to 0.02 with models.drift = anthropic:claude-sonnet-4-6. The drift judge is still never called.
Fix
Same shape as #4877/#4878:
BudgetMeteracceptspricingOverridesand consults them first, through the sameoverrideForlookupBudgetTrackeruses (alias and dated id alike).- Each construction site loads them with
loadPricingOverrides(engine), which fails open.
A PR follows.
Source: garrytan/gbrain