The Spending Cap That Disappears When Its Store Fails
A spending ceiling becomes advisory when a payment gateway replaces an unavailable shared budget with a local counter. The configuration often survives review because the fallback preserves availability and every mandate still passes signature verification. The defect appears when independent replicas each authorize spending against the same remaining allowance.
The fallback changes the security boundary
Consider an AP2 security gateway configured with a wallet ceiling of 100 USD and a shared reservation store: the dangerous setting permits local accounting when that store becomes unreachable. Reviewers inspect the ceiling, signature checks and retry policy, but miss that the fallback changes ownership of the allowance from the wallet to each gateway replica. The AP2 documentation describes signed mandates that express payment constraints and bind authorization to a checkout; those signatures do not themselves serialize consumption of a shared budget. Each replica can therefore accept an individually valid payment while their aggregate commitments exceed the ceiling, even when every local comparison is correct. Treat this as a deployment failure pattern to test in an AP2Shield architecture, rather than a claim about an undocumented product default.
Cryptography cannot allocate the same balance twice
Post-quantum ingress protects the connection under its negotiated cryptographic assumptions, and hardware can protect signing keys or enforce a local velocity limit, but neither establishes an aggregate spending ceiling unless every authorization consumes uniquely allocated allowance.
Run the partition test before promotion
Run this exercise today in an isolated payment sandbox using the rendered deployment configuration: create a capped wallet, route distinct valid payment requests through separate gateway replicas, and choose amounts that fit individually but exceed the remaining allowance together. If your sandbox uses Docker Compose, name the shared accounting service budget_store and run `docker compose stop budget_store` after establishing healthy baseline behavior, then submit those requests concurrently while the dependency remains unavailable. Observe authorization at the payment adapter boundary and inspect durable reservation records, because an ingress success response or a rejected settlement does not establish whether excess commitments were issued. Restore the dependency with `docker compose start budget_store`, replay the same requests, and verify that recovery reconciles existing reservations without creating additional commitments. Reject promotion if a gateway issues a fresh authorization without either a durable shared reservation or consumption of an exclusive allowance allocated before the interruption; a passing test must demonstrate that invariant, not merely produce errors while the service is stopped.
Keep payments moving with allocated authority
The conservative design stops fresh authorizations when shared reservation cannot complete, while allowing already reserved work to proceed through an idempotent payment adapter whose records bind the reservation to the wallet, checkout, amount and currency. Where continued spending during isolation is required, allocate disjoint escrow allowances to tokenized sub-wallets before failure, deduct those allocations from the parent budget, and require durable local consumption that survives process restart. Bind each allowance to an enforcing authority, since copying its credential or session key to another replica must not create another independently spendable balance. Recovery must reconcile consumption before reclaiming an allocation, and expiration alone cannot justify recycling funds while the former holder might still authorize against them. This preserves bounded payment capacity when accounting is unavailable, but strands unused allowance wherever it was allocated, leaving the operator to choose how much liquidity to distribute for continuity without weakening the ceiling.