V45 Gate 14: BTC Settlement Rights Delivery Readback#217
Conversation
Add explicit BTC settlement readback across quote acceptance, non-custodial wallet posture, PSBT posture, broadcast/observation/finality, rights transfer, delivery, and compensation routing. Expand settlement tests for non-final prepared/signed/broadcast/observed states, stale quote repair, compensation conservation failure, projection drift, missing repository delivery, persistence, and source-safe non-unlock behavior; add the Gate 14 checker and parity readback.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a86cd9074c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| settlementFinalizationState: | ||
| finalityConfirmed && input.paymentMatchesAcceptedQuote | ||
| ? 'settlement_finalized' as const | ||
| : 'not_finalized' as const, |
There was a problem hiding this comment.
Require readback before declaring settlement finalized
When the ledger/database/storage reconciliation is blocking (for example projectionMode: 'missing_database_projection' or drifted_object_storage), the boundary state correctly becomes blocked_until_projection_repair, but this readback still reports settlement_finalized based only on BTC finality and quote/payment match. V45 settlement law requires ledger/database/storage readback and repair-free receipts before final settlement, so consumers of btcSettlementReadback can route final settlement or compensation while the boundary is still in repair.
Useful? React with 👍 / 👎.
Recognize the stronger parameterized BTC pre-finality tests in prior settlement proof catalogs, add the BTC settlement readback surface to source-safe proof coverage, and regenerate affected Bitcode proof artifacts.
Summary
Verification