Repository navigation
Feat/contract spec revalidation - #486
Merged
OxDev-max merged 3 commits intoOct 23, 2026
Merged
Conversation
…ting - Add oracle_providers, provider_keys, provider_revocations, provider_key_rotations tables (migration 004) - src/oracle/providers/credentials.ts: key types, generateRawKey, hashKey, verifyKey - src/oracle/providers/credential.repository.ts: all DB access for provider lifecycle - src/oracle/providers/provider-credential.service.ts: revocation, rotation with overlap window, forensic report, trust-status surface - src/oracle/providers/provider-key.guard.ts: submission-boundary guard rejecting revoked keys - src/oracle/providers/ops-provider.controller.ts: admin endpoints for revoke, reverse-revocation, rotate, complete-rotation, trust-status - src/oracle/providers/provider-credentials.module.ts: NestJS module wiring - src/oracle/providers/provider-credentials.spec.ts: tests for revoked-key rejection, overlap-window rotation, forensic report, accidental-revocation reversal Closes acceptance criteria: revocation record with reason/actor/timestamp/sequence, submission boundary rejection, affected-consensus report, overlap-window rotation, trust-status surface, reversible revocations.
…ff report - Add ContractSpecRevalidator: revalidates pool + oracle contract specs on configurable interval (default 300s) and on-demand via admin API - Reuses startup validatePoolContractSpec/parseContractSpec so startup and runtime checks cannot drift apart - Three states: valid / mismatch / unknown (RPC unavailable != mismatch) - assertPublicationAllowed() / assertSettlementAllowed() gates for OraclePublisherService and ClaimSettlementService - Block persisted in control_plane_flags Postgres table -- survives restarts - Block clears only after successful revalidation or explicit operator override (reason + actor recorded, alerted) - Structured FunctionDiff report (added/removed/changed + expected/actual) exposed via GET /ops/contracts/diff-report - Admin endpoints: revalidate, override, override/clear, diff-report - Migration 005: control_plane_flags table - DbModule created so DbService is injectable across modules - Spec covers: mismatch blocks + alert, RPC error -> unknown, restart persistence, diff-report correctness, operator override
…revalidation # Conflicts: # src/db/db.module.ts # src/stellar/stellar.module.ts
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 #284