Skip to content

V45 Gate 14: BTC Settlement Rights Delivery Readback#217

Merged
geraldarthurdavis merged 2 commits into
version/v45from
v45/gate-14-btc-settlement-rights-delivery-readback
Jun 1, 2026
Merged

V45 Gate 14: BTC Settlement Rights Delivery Readback#217
geraldarthurdavis merged 2 commits into
version/v45from
v45/gate-14-btc-settlement-rights-delivery-readback

Conversation

@geraldarthurdavis

Copy link
Copy Markdown
Contributor

Summary

  • add explicit BTC settlement readback for quote acceptance, non-custodial wallet posture, PSBT posture, broadcast/observation/finality, rights transfer, repository delivery, and compensation routing
  • harden source unlock and rights transfer so prepared, signed, broadcast, and observed states remain source-safe and rights-withheld until confirmed finality and quote/payment conservation
  • expand repair coverage for stale quote/payment mismatch, underpayment, compensation conservation failure, projection drift, missing finality, missing delivery, and persistence; wire the Gate 14 checker and parity readback

Verification

  • pnpm --filter @bitcode/pipeline-asset-pack exec jest --config jest.config.cjs src/tests/asset-pack-settlement-rights-delivery.test.ts --runInBand
  • pnpm --filter @bitcode/pipeline-asset-pack typecheck
  • pnpm run check:v45-gate14
  • pnpm run check:v45-gate13
  • node scripts/check-bitcode-spec-family.mjs --version V45 --mode draft --current-target V44
  • node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V44 --draft-target V45
  • git diff --check
  • pnpm --filter @bitcode/pipeline-asset-pack exec jest --config jest.config.cjs --runInBand

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.
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
engi-uapi Ready Ready Preview, Comment Jun 1, 2026 12:18am

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +750 to +753
settlementFinalizationState:
finalityConfirmed && input.paymentMatchesAcceptedQuote
? 'settlement_finalized' as const
: 'not_finalized' as const,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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.
@geraldarthurdavis
geraldarthurdavis merged commit f1e8df9 into version/v45 Jun 1, 2026
28 checks passed
@geraldarthurdavis
geraldarthurdavis deleted the v45/gate-14-btc-settlement-rights-delivery-readback branch June 1, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant