Skip to content

feat(rfq): durably relay provider settlements - #42

Open
tvolk131 wants to merge 1 commit into
codex/rfq-taker-runtimefrom
codex/rfq-provider-relay
Open

feat(rfq): durably relay provider settlements#42
tvolk131 wants to merge 1 commit into
codex/rfq-taker-runtimefrom
codex/rfq-provider-relay

Conversation

@tvolk131

@tvolk131 tvolk131 commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • atomically persist the exact signed PSET, raw transaction, txid/wtxid, and an immediately due relay record
  • fence access to relay bytes behind durable retry leases and revision-checked outcomes
  • add status-first Elements reconciliation for mempool, canonical confirmation, stale-block reorgs, conflicts, policy rejection, and ambiguous broadcasts
  • expose the validated relay lifecycle through authenticated status and client recovery
  • supervise relay work in the provider daemon, gating new trade admission on relay health without reopening signed inputs
  • document the durability, reconciliation, and operations boundary

Correctness properties

  • signed artifacts and relay intent commit atomically
  • retries always use the exact persisted transaction bytes
  • same-txid/different-witness artifacts conflict only when observed in the active mempool or chain
  • stale-block observations fall through to stable-tip input checks and exact rebroadcast
  • relay leases and outcomes are crash-safe and revision-fenced
  • confirmed/conflicted settlements remain monitored for reorgs
  • signed allocations never reopen
  • relay degradation closes quote/blind/execute admission while status recovery remains available

Verification

  • cargo test --locked --workspace
  • cargo check --locked --workspace --all-targets
  • cargo fmt --all -- --check
  • git diff --check

Live Elements process-kill, mempool/confirmation/reorg acceptance, and public-network rollout gates remain explicit follow-up work.

Stacked on #41.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T04:08:02.425077Z 399464d PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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