Skip to content

Tracer: Filter model usage and show retained totals in Profile #507

Closed

Description

@DoodleBears

Parent

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

What to build

The PersonaBot Profile lets a Human filter actual model usage by provider/model, execution role, and bounded date range, see all-time totals, and distinguish no activity from unknown or temporarily degraded usage.

Acceptance criteria

  • The activity chart defaults to the last 7 days (Human-confirmed in UIUX: Coordinate daily usage and actual-model charts with one time range #592) and offers bounded selectable ranges; totals and daily points stay consistent with the selected provider/model and Orchestrator, Assignment, or DSH Subagent role filters.
  • All-time totals remain available separately from the selected chart range and include retained usage after ordinary Session deletion.
  • Missing provider usage is visibly unknown rather than zero; empty, partial, stale, and degraded query results have distinct, accessible Profile states.
  • Detailed Host queries are bounded or paginated, expose freshness, and use the existing API Gateway; Browser code does not derive totals from private Session logs.
  • Focused Host query and Client interaction tests cover filters and states; an isolated DSH Profile with more than one used route and role is Human-testable, with screenshots in the UI PR.

Blocked by

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 Oct 1, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Codex
    • Task: codex/local/01a0e445-0c0f-70e1-bad4-fd99c8cfaa21 (not a DSH Session)
    • Issue scope: bounded public Usage queries, actual model/provider and execution-role filters, separate retained all-time totals, observable freshness and Profile states, real DSH E2E evidence.
    • Branch: codex/507-usage-filters
    • Started: 2026-10-01 UTC
    • State: active

    The chart defaults to the Human-confirmed last 7 days (#592), replacing the older 26-week default. Execution categories remain in collapsed details; model/provider views remain separate and compact. Session deletion does not delete statistics (#502).

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

    @DoodleBears
    ContributorAuthor

    Agent work outcome

    • Task: codex/local/01a0e445-0c0f-70e1-bad4-fd99c8cfaa21
    • State: paused — awaiting Human QA.
    • PR: feat(usage): filter Profile usage and show retained all-time totals #641; final head 3e412b8c5001a0f5443c721ab9369c5fb5e61177.
    • Delivered: bounded actual-model/provider/date/execution-role filters, independently retained all-time totals, explicit empty/unknown/stale/degraded states, and manual Refresh without polling or timed expiry.
    • Verification: 46 focused tests, typecheck, build, bilingual Release Ledger, full Linux CI and real isolated DSH E2E pass. CodeRabbit reviewed the final head; no new actionable findings and both earlier review threads are resolved.
    • Evidence: five immutable, accessible real-DSH screenshots and public verification packets in the PR. A genuinely incomplete provider report remains unknown; known Flash total is 68,166 and Subagent total is 7,834. An empty selected period has zero activity while all-time remains 68,166.
    • Remaining: Human QA and authorization to merge. Tracer: Preserve model plans in Profile Backup only #505 remains deferred on the complete Backup/Export prerequisites; ordinary Session deletion does not erase token statistics.
  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 Oct 1, 2026
  7. DoodleBears commented on Oct 1, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome

    • Task: codex/local/01a0e445-0c0f-70e1-bad4-fd99c8cfaa21
    • State: completed.
    • Human QA: approved, with explicit authorization to merge and continue.
    • Merged: feat(usage): filter Profile usage and show retained all-time totals #641 at dfe8b637b0515959e1ab706d9b99dbb0c1c9024c.
    • Verification: final-head full Linux CI and real isolated DSH E2E pass; CodeRabbit final-head reviews have no outstanding actionable threads. Screenshot evidence remains accessible in the PR.
    • Delivered: date, actual model/provider and execution-role filters; retained all-time totals; explicit unknown/empty/failure states; manual Refresh without polling or timed expiry.
    • Remaining issue scope: none. Tracer: Preserve model plans in Profile Backup only #505 remains a separate dependency-gated model portability slice.
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