codeburn icon indicating copy to clipboard operation
codeburn copied to clipboard

docs(copilot): clarify token-estimate vs metered billing (interim for #443)

Open iamtoruk opened this issue 5 months ago • 0 comments

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.md explaining why codeburn's Copilot number won't match the GitHub dashboard: codeburn estimates tokens × 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: true on 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.ts drops + 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.

iamtoruk avatar Jun 06 '26 01:06 iamtoruk