Repository navigation
Use durable single-item phases from Grant intake through delivery - #25
Merged
Merged
Conversation
Queue acceptance when verification completes, and queue delivery in the acceptance or retirement transaction. Resume the single active delivery after restart instead of scanning completed result and outbox history. Bound webhook attempts, retain failed events in a dead-letter phase, and provide an explicit local retry command. Keep authentication, immutable event bytes and destination cooldown intact. This intentionally requires fresh application stores without migrations. Focused persistence, delivery and acceptance checks passed, including atomic phase recovery and exhausted attempts. The full fresh installed-wheel suite is running for the coordinated Oracle and Comply review.
kentbull
marked this pull request as ready for review
November 1, 2026 02:55
Record accepted revocation work in the same registry transaction as KERIpy's TEL index. Consume one handoff at a time, committing application retirement before acknowledging it, so restart recovery no longer scans association history or depends on transient cues. The service owns a narrow Reger subclass against pinned GLEIF KERI 1.2.19. Focused tests cover both revocation variants, write rollback and the retirement acknowledgement gap; all four witnessed IPEX/Anvil scenarios passed.
Claim one Grant or verification attempt before processing, persist retry deadlines and finite budgets, and dead-letter exhausted work for explicit operator resumption. Replace acceptance pages with one unfinished obligation and stop missing or revoked evidence instead of revisiting it indefinitely. Delete batch readers, scan bookmarks and the in-memory retry calendar. Completion requires active verification. Public stored status, retry commands, protocol documentation and ADRs describe the breaking layout with no migration or compatibility path. Focused phase, rollback, restart, fairness and operator-command checks pass; full installed-wheel and paired qualification follow this exact commit.
The real HIO scheduler can catch up after slow store work, advancing a test deadline before the production UTC retry is due. Drive injected worker clocks from one epoch plus the shared HIO time across every service reopen. Keep the ten-second assertions and three-attempt budget unchanged and include durable phase diagnostics on failure. The previously failing local-only POST scenario passes against the installed wheel. This changes test scheduling only; application code is identical to the head that passed all 243 installed-wheel tests in CI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace batch readers, scheduling bookmarks and association-history scans with durable single-item phases from IPEX intake through delivery. Grant replay and verification persist attempts before processing, move missing evidence/RPC failures to timed waiting, and retain exhausted work for explicit operator retry. Completion requires active verification; one unfinished acceptance produces nonce ownership and its immutable delivery obligation atomically.
A narrow subclass of the pinned native Reger commits each accepted revocation handoff with KERIpy's TEL index. Retirement consumes that handoff only after committing application status and the outgoing event. This recovers both commit gaps without scanning completed associations or relying on transient cues. Native KERI validation and escrows remain authoritative.
Delete pending/acceptance/association batch APIs, notice paging, scan bookmarks and the in-memory retry calendar. Public stored status exposes waiting and dead letters; local retry commands resume corrected Grant, verification, acceptance or delivery work. Three-attempt budgets survive restart. This is a breaking storage layout: fresh stores, no migration, fallback or old-format reader.
Validation on
acea6613f6add016fa129221910b579d745d3e78:The IPEX test now drives retry deadlines and progress assertions from one epoch plus the shared HIO clock across restart. This fixes scheduler catch-up racing a UTC cooldown without changing the ten-second assertions or three-attempt budget. Application timing remains UTC and survives restart.
Companions: Oracle #56 pins this exact producer; Comply #17 is merged. Review/merge Verifier before Oracle. No additional mutex, background synchronization, compatibility framework or architecture/docs checker is introduced.