codeburn
codeburn copied to clipboard
docs(copilot): clarify token-estimate vs metered billing (interim for #443)
Interim baseline for #443 — not the full metered-billing cost model (that's gated on reporter calibration; see below).
What this does
- Adds a Pricing section to
docs/providers/copilot.mdexplaining why codeburn's Copilot number won't match the GitHub dashboard: codeburn estimatestokens × underlying-model API rate, while GitHub bills by metered premium requests (legacy, annual plans) or AI Credits (the usage-based model GitHub moved to on 2026-06-01). - Sets
costIsEstimated: trueon Copilot calls (both parsers).
Why it's only a baseline
The real fix — modeling GitHub's metered billing so the dollar figure matches the dashboard — can't be done blind:
- GitHub switched billing systems 5 days ago (premium-request → AI Credits). We don't yet know which system the reporter is on.
- The premium-request multiplier table has changed silently in the past (Sonnet 1×→9×, Opus 10×→27×), so there's no stable spec to test against except a real user's dashboard.
- Making a Copilot-specific cost survive the cache round-trip needs changes to the core cost-authority path (
parser.tsdrops + recomputes provider cost), which warrants its own careful PR.
So we asked the reporter (and the subagent commenter) for their plan + billing system + a calibration data point on #443. Once we have that, the real metered-billing model gets built on their numbers and they validate the branch before merge.
Status
Draft / do not merge yet — kept open as the honest-labeling baseline. tsc clean; copilot.test.ts 25/25 pass.