feat(error-registry): implement error code lookup pagination, agent query, and stats#137
Merged
Merged
Conversation
…#113) Add the error-registry Soroban contract: error reports carry an application-level TTL (expires_at = created_at + ttl_seconds, capped at 90 days), expiry is enforced at read time, and a permissionless, bounded cleanup_expired_errors reclaims storage in batches. Also pin ed25519-dalek to 2.2.0 in the workspace lockfile so the contracts' testutils dev-dependency (via soroban-env-host 22.1.3) compiles on Rust stable, and re-enable clippy + cargo test for error-registry and agent-registry in CI with --locked to hold the pin.
|
@morelucks is attempting to deploy a commit to the Jaja's projects Team on Vercel. A member of the Team first needs to authorize it. |
devJaja
self-requested a review
July 20, 2026 22:29
Contributor
|
Nice implementation @morelucks |
8 tasks
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.
Closes #117
Summary
This PR implements the requested query, pagination, and statistical features for the on-chain
error-registrycontract.Changes
PaginationParamsstruct containingoffsetandlimit.get_errors_by_codeto support pagination with offset and limit, capping the limit to 100 and filtering out expired errors.get_errors_by_agentto retrieve active errors reported by a specific agent.get_error_statsto return active error counts per error code.test.rscovering the new features and pagination edge cases.