Skip to content

Tracer: Show actual provider-model tokens in PersonaBot Profile #499

Closed

Description

@DoodleBears

Parent

#39 — Usage read model / Typert remote / Profile contract; part of #34.

What to build

After one real PersonaBot Orchestrator model call, its Profile shows the actual provider/model and provider-reported input, output, cache-read, and cache-write token use through the Host usage read model.

Acceptance criteria

  • One real DSH Orchestrator attempt is attributed through trusted Session ownership to the PersonaBot and its exact provider/model, independently of the Bot's allowed Model Plan.
  • The Profile shows the four reported token buckets for that route and a correct total for the selected day; missing provider usage is not displayed as a fabricated zero.
  • The Browser reads a bounded Host query through the existing API Gateway rather than reading DSH logs or the operational database directly.
  • Focused tests cover the public usage query and Profile rendering; an isolated DSH request and screenshot provide a Human QA path.

Blocked by

None — can start immediately.

Activity

  1. added this to the v1.0 milestone on Sep 29, 2026
  2. added
    ready-for-agentFully specified, ready for an AFK agent
    area:fullstackEnd-to-end Host and Client implementation
    feature:usageUsage and cost attribution
    scope:tracerHuman-testable implementation slice
    on Sep 29, 2026
  3. DoodleBears commented on Sep 30, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Codex

    • Task: codex/local/01a0e445-0c0f-70e1-bad4-fd99c8cfaa21 (not a DSH Session)

    • Issue scope: one real owned Orchestrator attempt, bounded Host provider/model usage query, four reported token buckets and unknown reporting, visible PersonaBot Profile breakdown with isolated DSH E2E evidence.

    • Branch: codex/499-provider-model-usage

    • State: active

    • Started: 2026-09-30 15:44 UTC

  4. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Sep 30, 2026
  5. DoodleBears commented on Sep 30, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome

    • Agent: Codex
    • Task: codex/local/01a0e445-0c0f-70e1-bad4-fd99c8cfaa21 (coding task, not a DSH Session)
    • State: paused, awaiting Human QA
    • PR: Show actual provider-model usage in PersonaBot Profile #588
    • Final head: 399abc09ba78679612249372ff1b8758ace7b893
    • Evidence: real isolated DSH Orchestrator reply, actual provider/model matched to native Session selection and token counts, refresh and unused-plan independence verified; light/dark screenshots use verified permanent commit links in the PR.
    • Verification: 161 focused tests, typecheck, lint, both release ledgers and build passed; final-head CI passed. Both CodeRabbit findings were fixed and resolved, and its final check reports Review completed.
    • Human path: open Actual model usage QA 1790787978277, expand PersonaBot Profile, inspect Token usage for 2026-10-01: deepseek-official / deepseek-flash, input 12,486 / output 67 / cache-read 14,464 / cache-write 0 / total 27,017. Select the preceding day for an empty state, return and refresh.
    • Remaining: Human QA and merge; Usage read model / Typert remote / Profile contract #39 retention, per-attempt attribution and filters/totals remain follow-up issues. Tracer: Preserve model plans in Profile Backup only #505 prerequisites are now recorded explicitly in its body; PersonaBot model presets and per-Session model routing #488 remains open.
  6. added and removed
    ready-for-agentFully specified, ready for an AFK agent
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Sep 30, 2026
  7. DoodleBears commented on Sep 30, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome

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

    area:fullstackEnd-to-end Host and Client implementationfeature:usageUsage and cost attributionscope:tracerHuman-testable implementation slice

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions