# NousResearch/hermes-agent · Fix token attribution in daily analytics charts

## Open now

- 1 issue, 2 PRs open on GitHub.
- #107861: \[Bug\]: Usage analytics daily chart attributes a session's entire lifetime tokens to its start date
- PR #107871: fix(analytics): attribute daily usage to activity day, not session start
- PR #107872: fix(analytics): show long-session tokens on actual usage days

These issues and PRs address a bug where tokens consumed during long sessions were incorrectly attributed to the session's start date rather than the actual days the usage occurred.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #107861: \[Bug\]: Usage analytics daily chart attributes a session's entire lifetime tokens to its start date

## Prior & competing PRs

- **#107871: fix(analytics): attribute daily usage to activity day, not session start**. open
  - maintainer direction: category `stale_abandoned`; implication `active`; refs `db8d742fdf555d9ca842d940b1694043ba15d62d`
  - files: `hermes_cli/web_routers/analytics.py`, `hermes_state_common.py`, `hermes_state_usage.py`, `tests/hermes_cli/test_analytics_daily_usage.py`
- **#107872: fix(analytics): show long-session tokens on actual usage days**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#107871`, `#107861`, `#107871`
  - files: `hermes_cli/web_routers/analytics.py`, `hermes_state_common.py`, `hermes_state_schema.py`, `hermes_state_usage.py`, `tests/agent/test_async_token_accounting.py`, `tests/hermes_cli/test_usage_analytics_daily.py`

## Fix status

- No merged fix on record.
- Subsystem: `dashboard`
