Skip to content

Correct missing speed-tier rates and default pricing aliases #1436

Description

@camjac251

What do you want to change?

Correct two cost-accounting paths in usage reports. When a speed tier has no published multiplier, retain standard pricing instead of assuming 2x. Also resolve a documented unsuffixed pricing family to its default entry before fuzzy matching, while preserving exact and partial user overrides.

The branch also marks golden snapshots as text and removes an unused timing-inference scratch plan.

Why?

The generic multiplier can overstate cost without supporting rate data. Longest-name fuzzy matching can select a non-default sibling, and partially specified overrides can lose inherited fields. Both paths can misstate reported cost.

How? (optional)

Use exact raw entry, canonical alias, then fuzzy fallback for pricing and context metadata. Canonicalize threshold lookups and inherit unspecified values from the canonical base entry. Add regression coverage for rates, context limits, thresholds, and override inheritance.

Activity

  1. github-actions commented on Jul 12, 2026

    @github-actions
    Contributor

    This issue was auto-closed. Issues from new contributors are auto-closed by default.

    Maintainers review auto-closed issues and reopen worthwhile ones. Issues that do not meet the quality bar in CONTRIBUTING.md may not be reopened or receive a reply.

    Keep the issue short, concrete, and written in your own voice.

    If a maintainer replies lgtmi, your future issues will stay open. If a maintainer replies lgtm, your future issues and PRs will stay open.

    See CONTRIBUTING.md.

  2. camjac251 commented on Jul 12, 2026

    @camjac251
    ContributorAuthor

    Update: #1437 is outdated. It was auto-closed before the source branch gained the inherited-history accounting fix, and GitHub froze that PR at commit 2500c5b.

    I pushed the complete four-commit branch at b9cd694 and opened #1438 as the replacement. It contains the inherited child-session replay correction together with the speed-tier and pricing-alias fixes. Focused and full test suites, formatting, type checks, flake checks, and secret scanning pass; all committed fixtures use synthetic data.

    #1438 was also auto-closed by the contributor gate. Please use #1438 for review and reopening; #1437 can remain closed.

  3. camjac251 commented on Jul 15, 2026

    @camjac251
    ContributorAuthor

    @ryoppippi could this be merged?

  4. ryoppippi commented on Jul 23, 2026

    @ryoppippi
    Member

    hey! so does codex start recording fast/standard mode? they didn't record it before afaik.

    @camjac251

  5. camjac251 commented on Jul 23, 2026

    @camjac251
    ContributorAuthor

    Yes. Starting with CLI 0.144.0, rollouts persist event_msg → thread_settings_applied → thread_settings.service_tier. The recorded values are priority for Fast and default for Standard. I confirmed this against current upstream source and 0.144.x rollouts.

    There is one limitation: usage before the first persisted settings snapshot can remain unclassified. #1438 now consumes explicit tier markers chronologically, keeps --speed fast|standard as full-report overrides, and uses the existing configuration fallback only for unclassified startup, legacy, and headless usage. It also prevents replayed parent settings from leaking into child usage and reconciles copied records deterministically before cost attribution.

    For all three current 5.6 variants, the update uses the documented 2× API Priority rate. The separate 2.5× figure is account-credit consumption; this report's costUSD is an API-equivalent estimate. Transition, override, long-context, replay, duplicate-order, and unified-report coverage is included, and the full repository checks pass.

    The updated PR is #1438 at 65e8005.

  6. github-actions commented on Aug 28, 2026

    @github-actions
    Contributor

    Automatic implementation was not started because the issue author GitHub email could not be resolved reliably for co-author attribution. A maintainer can implement the issue manually or provide a verifiable author email.

  7. ryoppippi commented on Aug 30, 2026

    @ryoppippi
    Member

    Closing as completed by #1438. The requested pricing aliases and speed-tier handling are present on current main. Please reopen with a current failing example if any part remains broken.

  8. ryoppippi commented on Aug 31, 2026

    @ryoppippi
    Member

    Historical audit: this discussion was auto-closed by the legacy contributor gate. That closure did not assess technical importance.

    Audit result: resolved. A later merged change or the current main implementation covers this request. This item is kept for history and does not need to be reopened.

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

    priority:highHigh user impact or an important regression.triage:resolvedResolved by a later change or current implementation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions