state-hub/api
tegwick af3fdfde80 feat(token-tracking): introduce token note taxonomy (measured/userbased/workplan/heuristic)
Tier 1 (exact counts) now defaults to note="measured" instead of null,
signalling the counts were read from the Claude Code status bar.
Callers can pass note="userbased" when a human provided the numbers.

  measured  — agent read exact counts from the Claude Code status bar
  userbased — counts provided by a human
  workplan  — prorated from workplan total across task count
  heuristic — server fallback, 1000/500, no agent input

Added token_note field to TaskUpdate schema and exposed note param on
update_task_status and record_interactive_task MCP tools.
TOOLS.md documents the full taxonomy. 185 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-29 18:47:40 +02:00
..
models feat(token-tracking): record AI token consumption per task (CUST-WP-0029) 2026-03-29 17:46:46 +02:00
routers feat(token-tracking): introduce token note taxonomy (measured/userbased/workplan/heuristic) 2026-03-29 18:47:40 +02:00
schemas feat(token-tracking): introduce token note taxonomy (measured/userbased/workplan/heuristic) 2026-03-29 18:47:40 +02:00
config.py Add state-hub v0.1 — local-first state service for the Custodian 2026-02-24 17:47:49 +01:00
database.py Add state-hub v0.1 — local-first state service for the Custodian 2026-02-24 17:47:49 +01:00
doi_engine.py perf(doi): fingerprint-based DB cache for DoI results 2026-03-20 01:47:19 +01:00
main.py feat(token-tracking): record AI token consumption per task (CUST-WP-0029) 2026-03-29 17:46:46 +02:00