Repository navigation
feat: repair job, evidence verification, queue backpressure and replay tests - #381
Merged
github-actions[bot] merged 1 commit intoOct 18, 2026
Conversation
|
@hardcordev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Code Review & Auto-Merge — @dorismaduegbunam 🚀Thank you @hardcordev for your contribution!
Verified code changes and repository requirements. Merging pull request. |
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.
Summary
Adds four focused, opt-in building blocks for operational resilience. Each is a self-contained vertical slice with its own tests and operator documentation; no existing runtime behavior, schema or API contract is changed.
Changes
src/common/repair/repair-job.ts: resumable, checkpointed repair job for orphaned and inconsistent records (dry run, per-record retries, resume from last cursor, before-image journal, resumable rollback, permission check, same-job concurrency guard).src/common/evidence/evidence-verifier.ts: Ed25519 verification of imported external evidence (canonical payload digest, signed envelope, per-key issuer/type binding, validity windows, revocation by issuance time, freshness, import permission, idempotent retry and id-reuse conflict detection).src/common/backpressure/bounded-work-queue.ts: bounded queue with a concurrency ceiling, FIFO waiting room, 429 with Retry-After when full, per-actor fairness, permission check and retry with backoff.src/testing/concurrency/deterministic-replay.ts: deterministic schedule replay, exhaustive interleaving exploration and seeded runs; spec covers concurrent writes, stale-version retries, duplicate idempotency keys and unauthorized writers using the realOptimisticConcurrencyService.docs/REPAIR_JOB.md,docs/EVIDENCE_VERIFICATION.md,docs/BOUNDED_QUEUE_BACKPRESSURE.md,docs/DETERMINISTIC_REPLAY.md) covering edge cases and recovery/rollback, and README links.Issues
Resolves #266
Resolves #265
Resolves #263
Resolves #262
Verification
Manual code review only.
cargo buildandcargo testwere not run (this is a TypeScript repository), and no other build, lint or test command was run, so the new specs have not been executed.