Skip to content

Run summaries report raw tokens while budgets use weighted; neither unit is labeled #129

Description

@gnometa

Version: bmad-loop 0.8.1 · Component: run summary / session-end events
Reproduction: run 20260709-172451-0187

Problem

Token accounting uses two different units and labels neither:

  • The ATTENTION run summary reported 716,043,403 tokensraw, with cache reads at full weight.
  • The budget machinery uses weighted tokens (cache_read_weight = 0.1), by which the same run cost ~110M — a 6.5× discrepancy.
  • Session-end events carry raw only, so the weighted figure cannot even be reconstructed per session after the fact.

Every cost judgment an operator makes from the summary figure is inflated ~6.5× against actual billing.

Proposed fix

Add a weighted field to session-end events, and lead run summaries with it:

~110M weighted tokens (716M raw incl. cache reads)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions