You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incremental scan cursor: baseline rescans reuse the durable usage ledger as a per-session cursor. Unchanged sessions seed straight from the ledger instead of re-folding every historical event; sessions that gained events fold only the new tail.
All-zero usage guard: zero-usage replays no longer overwrite already-recorded turn/step usage, while pure cache-read requests (cache-only hits) still count.
Structured token semantics: /api/all-usage now declares a machine-readable accounting contract (tokenSemantics.semantics) — input tokens are fresh (exclude cache), and cache read/write plus reasoning are separate buckets.
Fixed
Reduced startup scan cost on long usage history: unchanged sessions are no longer re-folded or rewritten.
Prevented a live retry of an already-recorded step from double-counting after a fresh-instance ledger seed.
Verification
npm test 28/28 (incl. new aggregation tests: incremental seed, zero-usage guard, cache-only retention, semantics contract).