# NousResearch/hermes-agent · Anthropic OAuth usage parsing and scaling bugs

## Open now

- 2 issues, 5 PRs open on GitHub.
- #54404: bug(account-usage): Anthropic utilization parsing calls float() 3x without error handling
- #58226: \[Bug\]: Anthropic OAuth usage renders low-usage windows as 100% used (utilization ≤1 wrongly scaled ×100)
- PR #58228: fix(usage): treat Anthropic OAuth utilization as percent, not fraction
- PR #84115: fix(usage): reconcile canonical Anthropic usage limits
- PR #109840: fix(account-usage): drop an unreadable usage window instead of the whole report
- PR #127825: fix(account-usage): skip non-numeric utilization windows without dropping the rest (#54404)
- PR #139916: fix(usage): read Anthropic utilization as a percentage, so a 1% window is not reported as 100%

Multiple bugs and fixes related to how Anthropic OAuth utilization values are parsed and scaled, including incorrect percent-vs-fraction handling, missing error handling on float conversions, and tolerance for non-numeric values.

## TL;DR

- 8 member(s): 2 open issue(s), 0 closed issue(s), 5 open PR(s), 0 merged PR(s), 1 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.23`: 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

- #54404: bug(account-usage): Anthropic utilization parsing calls float() 3x without error handling
- #58226: \[Bug\]: Anthropic OAuth usage renders low-usage windows as 100% used (utilization ≤1 wrongly scaled ×100)

## Prior & competing PRs

- **#54467: fix(account-usage): tolerate nonnumeric anthropic utilization**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#58228: fix(usage): treat Anthropic OAuth utilization as percent, not fraction**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `d923a5eb48`, `9cb34e9e28`, `#139916`
  - files: `agent/account_usage.py`, `tests/test_account_usage.py`
- **#84115: fix(usage): reconcile canonical Anthropic usage limits**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `80ba85d4b90dc08eb690453add2acbb19a37f5d8`
  - files: `agent/account_usage.py`, `tests/test_account_usage.py`
- **#109840: fix(account-usage): drop an unreadable usage window instead of the whole report**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `agent/account_usage.py`, `tests/agent/test_account_usage.py`
- **#127825: fix(account-usage): skip non-numeric utilization windows without dropping the rest (#54404)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `e3c3d27390`
  - files: `agent/account_usage.py`, `tests/agent/test_account_usage.py`
- **#139916: fix(usage): read Anthropic utilization as a percentage, so a 1% window is not reported as 100%**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#58226`, `#124267`, `#133106`, `#58228`
  - files: `agent/account_usage.py`, `tests/agent/test_account_usage_pool_fetch.py`

## Fix status

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