Payment Checkout & Ledger Service · View 21 of 24 · Operations
Decisions
- A posting-rule change ships shadowed first: new rules evaluated, nothing booked, output diffed against the live rules (ADR-10).
- Code rolls back in minutes. Posted ledger entries never roll back — they are corrected forward, which is why the gate matters more than the rollback.
- Replaying the last 24 hours of events through a candidate poster must produce byte-identical transactions. That is a hard gate, not a test suite.
- A change that widens PCI scope is blocked at the CDE scope diff, not discovered at the next audit (ADR-11).
Decisions
- Forward-only migrations: no destructive DDL on an append-only store.
- One ledger-poster version runs at a time, so two posting-rule versions can never book the same event.
Risks
- The replay gate takes as long as the replay does, and it will become the slowest part of the pipeline as volume grows. The temptation to sample it is the main way this control decays.