Cat Credits is built + break-even-hardened and dormant behind one env var
(PLATFORM_NWC_URI). Provisioning a real receiving wallet is George's action
(it's a live financial credential); this makes the rest a single verified step.
- scripts/bitcoin/verify-credits-roundtrip.ts — proves the APPLICATION loop,
not just the wallet: initiateTopUp issues a real invoice → you pay it → checkTopUp
settles it and credits the ledger → asserts the balance increased. Complements
the existing verify-platform-wallet.ts (mint-only, never paid) with the part
that could actually have a bug (payment → ledger).
- docs/operations/credits-activation.md — the exact ordered runbook: set the
URI → verify wallet → verify round-trip → flip NEXT_PUBLIC_CAT_CREDITS_LIVE.
Flags the money-transmission/custody question to weigh first.
Verified: tsc 0. (The scripts move real money, so they're run by George on the
box against the live wallet — not in CI.)
Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
CAT_CREDITS_LIVE was a hardcoded `false` requiring a code edit + deploy to
activate — a second source of truth for the same fact the env var already
governs. Derive it from FEATURES.catCreditsLive (NEXT_PUBLIC_CAT_CREDITS_LIVE)
so provisioning is env-only. The server top-up route still independently gates
on PLATFORM_NWC_URI, so the UI flag can't enable a broken flow.
Adds scripts/bitcoin/verify-platform-wallet.ts: run once after setting
PLATFORM_NWC_URI to prove the wallet can receive (validate → connect → get_info
/balance → mint a probe invoice) before going live. No funds move.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>