Skip to content

Studio: Run cost's calibration trial — dollars per percent of a plan's windows #1058

In review

Description

@danielrispler

Parent

#1056

What to build

The calibration trial the spec puts first ("The calibration trial comes first"). On Daniel's account, in a quiet hour with every other session idle, run about 5 First map drafts on chery 124ebdb and observability-sdk 7894bdf, read the plan's percentages with /usage sent through claude -p before and after, and divide the runs' summed total_cost_usd by each window's change. Settle the spec's three open facts: whether claude -p "/usage" spends model tokens, whether /usage or /status names the plan, and how often the plan-limit request may be made.

Acceptance criteria

  • docs/studio/research/run-cost.md gives the dollars per percent of the 5-hour window and of the week, the plan measured on, the date, the runs' ids, and the uncertainty
  • It answers the three open facts, each with the command and output that settled it
  • The captured usage_report JSON is saved under server/tests/fixtures/usage/ (a subscriber's at least); shapes the trial cannot produce (Ultra, no rate_limits, a null report) are named in the doc, and the plan-detection ticket writes them by hand from the documented shape
  • When /usage spends tokens or gives nothing on a -p run, a comment on Studio: Run cost — what a background run takes from your plan, before and after #1056 says so (the spec's fallback: status line only)

Reading

Touches

  • Files: new docs/studio/research/run-cost.md, new server/tests/fixtures/usage/
  • Session: auto mode, with blocked commands (each claude -p draft and /usage read needs Daniel; he also keeps other sessions idle)
  • Route: medium · effort medium — a hand-checked trial on Daniel's account; the spec settles the method and the fallback

Activity

  1. added
    ready-for-agent
    on Dec 2, 2026
  2. danielrispler commented on Dec 2, 2026

    @danielrispler
    OwnerAuthor

    Built on the integration branch issue-1056-run-cost, PR #1071 (closes on merge).

    Route outcome: medium·medium claude/opus (orchestrator, trial run by Daniel) → pass | 35m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions