Skip to content

fix: make deposit submission crash-safe - #463

Open
colll78 wants to merge 1 commit into
tx-validationfrom
safety/durable-deposit-submission
Open

fix: make deposit submission crash-safe#463
colll78 wants to merge 1 commit into
tx-validationfrom
safety/durable-deposit-submission

Conversation

@colll78

@colll78 colll78 commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • persist exact signed deposit CBOR and immutable semantic identity before any provider call
  • enforce a one-way Prepared -> SubmissionUnknown claim so only a never-claimed row can make one initial exact-byte submission
  • reconcile canonical Kupo and Ogmios evidence without rebuilding, re-signing, or automatically resubmitting post-call states
  • add bounded observation-only startup reconciliation and operator reconcile/resume commands
  • fold the lifecycle schema into the fresh baseline

Safety model

Accepted or committed evidence blocks submission. SubmissionUnknown, Submitted, and Ambiguous are observation-only and never reopen. Provider disagreement, stale indexer coverage, missing dependencies, response loss, and pruned historical evidence fail closed.

Verification

  • frozen offline install with pnpm 9.15.4
  • Node 22 typecheck, Prettier, production build, and compiled CLI help
  • 44 provider and submission-utility tests
  • 6 real PostgreSQL lifecycle and schema tests
  • 5 real PostgreSQL crash-boundary tests
  • real-contract fresh-schema deposit and emulator regressions
  • independent final differential review

@colll78
colll78 force-pushed the safety/durable-deposit-submission branch from 1b15e9a to d90727b Compare July 15, 2026 19:32
@colll78
colll78 marked this pull request as ready for review July 15, 2026 20:43
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