You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Studio: the cost engine — estimates, actuals and the 7-day total in the plan's unit #1059
The cost engine as a pure module with no I/O: the factors from the trial as one constant (date, plan, run ids, citing docs/studio/research/run-cost.md), the plan ratios (Pro a fifth of Max's dollars per percent, Ultra's weekly percent twice Max's, no 5-hour window), the cost estimate from a list of records (First map per part from lines with units, other kinds per run, last 20 records, interquartile range, trial fallback under 3 records), a run's actual cost, and the 7-day total, each turned into the plan's unit: shares with "about" and "under 1%", dollars for an API key, dollars labelled API price for an unknown plan. Nothing calls it yet.
Acceptance criteria
One table test of the estimate covers each kind, too few records (trial fallback), First map lines without units, Ultra (no 5-hour share), API key (dollars), unknown plan (API price) and a share under 1%
A table test of the 7-day total over records: dismissed runs, other projects, missing costs, records older than 7 days
Activity
Studio: the run cost engine, estimates, actuals and the 7-day total i…
Merge #1059: the cost engine
danielrispler commentedon Dec 2, 2026
Built on the integration branch
issue-1056-run-cost, PR #1071 (closes on merge).Route outcome: medium·medium claude/sonnet → pass | 14m