Skip to content

Replace reconciliation with a finite endorsement delivery pipeline - #56

Merged
kentbull merged 4 commits into
mainfrom
refactor/endorsement-phases
Nov 1, 2026
Merged

kentbull merged 4 commits into
mainfrom
refactor/endorsement-phases

Conversation

@kentbull

@kentbull kentbull commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Replace continuous registry reconciliation with a finite forward-delivery pipeline. Authenticated receipt now commits selection and queued work together. One writer advances one operation through queued, preparing, pending, completed or dead-letter LMDB phases. Completed statuses and transaction history no longer discover work, and production code no longer reads contract mappings.

Plan each contract step from current local selection and this writer's confirmed effects. Persist signed bytes before submission; bound preparation/revert attempts and pending RPC failures (three by default), plus receipt waiting (120 seconds). Exhausted work moves to dead letters. An unresolved signed transaction fences the writer until explicit local retry resolves that same intent. Posting failures never invalidate credentials or erase recorded confirmed effects.

Add GET /v1/endorsements/{associationSaid} for passive local progress and vlei-oracle retry OPERATION_ID for manual recovery with the service stopped. This is a breaking storage change: known initial empty deployment, preserved stores thereafter, no migrations or old readers. No independent on-chain drift repair, cancellation, replacement or full reorg recovery.

Validation on 236b5713a22c059de9bb921682e909f9949a5934, with exact producer pin acea6613f6add016fa129221910b579d745d3e78:

  • Fresh installed-wheel Oracle suite outside the checkout: 73 passed locally; final-head CI also passes all 73.
  • Companion Verifier: 243 installed-wheel tests passed locally and in CI. Its remaining intake/verification batch readers and association-history retirement scan are removed.
  • Comply: 35 Forge tests passed on the already merged contract tree.
  • Maintained paired qualification: passed, 76.48 seconds, with six witness listeners using the existing issuance profile. Both process manifests are empty after automatic shutdown. The exact pinned clean local companion checkouts and their recorded submodules supplied the builds.

Tests retain actual LMDB reader-release/rollback checks, restart, bounded mined reverts, receipt deadlines, unresolved signed fences, explicit retry and no RPC after completion when chain state changes independently. Contract fixture isolation gives each fresh Oracle store a known initial deployment. Witness topology, public-resource checks and real token balance assertions remain.

Companions: Verifier #25 and merged Comply #17. Review/merge Verifier first. Exact heads are pinned in scripts/integration/dependencies.json.

Create posting work in the authenticated receipt transaction and advance one writer operation through queued, preparing, pending and terminal LMDB phases. Plan from local selection and our own confirmed effects. Remove status-history scans and production contract mapping reads; completed operations make no further RPC calls.

Bound preparation, reverted transaction and pending RPC retries. Preserve signed bytes before submission, dead-letter exhausted work and fence unresolved nonces until explicit local retry. Expose stored selection and delivery progress at GET /v1/endorsements/{associationSaid} without refreshing Ethereum state.

Require fresh stores with no compatibility path. Update operations, diagrams and companion pins. Focused real-chain cases cover phase rollback, restart, revocation, dead letters and idle behavior; full installed-wheel and pinned paired qualification are running.
Extend the maintained paired scenario to require terminal Oracle progress over public HTTP as well as independently verified contract state. Add a rollback regression proving a failed phase write cannot separately commit a receipt or confirmed wallet effect.

The six-witness installed-wheel paired run passes with the exact Verifier and Comply companion revisions. All eight persistence cases pass; the preceding full Oracle suite passed 72 cases. Document the finite delivery and passive resource entry points.
Qualify the forward-only Oracle pipeline against the producer that removes verification paging, bounds durable retries and commits accepted TEL revocation handoffs. The exact producer revision is used by both the installed-wheel suite and maintained paired qualification; no compatibility fallback is introduced.
Select the verifier's test-clock correction so installed-wheel qualification uses persistent retry deadlines and assertion deadlines on one HIO timeline. The producer's application source is unchanged; the correction retains all timeout, attempt and business assertions.
@kentbull
kentbull merged commit 8cc09e4 into main Nov 1, 2026
1 check passed
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