mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
The status-provider suite drives the real budget module against an in-memory stand-in for the day's usage row, so it exercises the atomic reserve/reconcile path rather than asserting a mock was called: spend lands on the ledger, an exhausted day is refused before any egress, a failed generation is refunded, and a chain on the user's own key is measured against the user-plan ceiling rather than the operator's. The snapshot suite walks a 60-turn conversation and pins the full snapshot to exactly two turns — the first and the elision crossing — including the case where a lost reply shifts the turn parity.