Repository navigation
Reduce sequential verification and webhook latency - #45
Merged
Merged
Conversation
Use accepted KERI key-state indexes for current-epoch establishment and witness lookups in receipt parsing and credential evidence. Keep native historical traversal for older anchors and preserve missing-event behavior, signature validation, revocation checks, and durable nonce claims. Advance workers on a five-millisecond scheduler cadence and use the same minimum default spacing for ordinary webhook starts. Failure backoff, Retry-After, finite attempts, sequential phase transitions, and synchronous LMDB commits retain their existing behavior. Add native lookup-contract coverage for warm and reloaded state, witness rotation, unknown and future events, missing accepted entries, and absent event bytes. Preserve one-second pacing assertions by configuring those tests explicitly. Focused installed-wheel checks passed after the pacing fixture adjustment; full wheel and paired qualification follow.
This was referenced Nov 1, 2026
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.
Current-epoch receipt and credential checks repeatedly walked the issuer KEL to rediscover its accepted establishment event and witness set. This amplified queue latency as issuer history grew.
Use KERIpy's accepted key-state index for accepted events in the current establishment epoch, in both receipt parsing and credential evidence. Older anchors retain native historical traversal. Unknown, future, missing-index and missing-body cases preserve the native lookup contract. Signature verification, live revocation checks, atomic nonce claims, sequential phase transitions and synchronous LMDB commits remain in place.
The root scheduler cadence changes from 31.25 ms to 5 ms. The default ordinary webhook spacing changes from 1 s to 5 ms; operators can still set
--webhook-interval. Failure backoff, Retry-After and attempt limits are unchanged. Operations documentation explains these defaults and queue-wait behavior.Validation:
Final CI installed-wheel suite: 273 passed (run). The separate local fresh installed-wheel replay also passed: 273 passed, 507 warnings in 530.25 s, outside the source checkout. Local wheel SHA-256:
69261cab585d13f97f5327537b778c4568dbdc52f194648c05e96b7b34cc929c.Oracle/Comply maintained paired qualification passed as part of Oracle's complete fresh installed-wheel suite: 87 passed, locally and in CI. Exact producer:
e05392b200774ac71e5ee4a4e09c76acfb70a53e; contracts:3d821564e5b7e4b730de47fe9d3c2fff0e87b6f8. Oracle pin advancement is Oracle PR #74.KERIpy remains pinned at 1.2.19; no upstream library changes are included.