json.loads returned untyped data, which failed strict type checking. pyright never reported it because it skips the .claude/ folder.
The agent cannot read /usage, and time leaves out the developer's own work. Tokens come from Claude Code's transcripts, priced at API list rates.