621 B
621 B
D001 — Account-balance is the only prepaid writer
Status: accepted
Step: 1
Prepaid cents, credits, usage, and payments persist in zappier-account-balance (books.json). zappier-edge balanceCents is a cache filled from the books reply. Tests without NATS/HTTP books still mutate the cache so unit tests stay hermetic.
Addendum (2026-10-03, D006)
Durable prepaid/credits/usage/payments store is shared libSQL, not per-process
books.json or per-host billing.db. Single writer path still required. Edge
balanceCents remains a cache. Lab books.json / billing.db are migration sources.