Skip to content

fix: exercise production event-store replay in regressions - #1935

Closed
hmzakhalid wants to merge 1 commit into
mainfrom
fix/test-audit-production-replay
Closed

fix: exercise production event-store replay in regressions#1935
hmzakhalid wants to merge 1 commit into
mainfrom
fix/test-audit-production-replay

Conversation

@hmzakhalid

Copy link
Copy Markdown
Collaborator

Fixes audit finding RT-007.

  • Run five replay regressions through EventStore loading and production ReplaySpool::replay; remove the copied test-only replay loop.
  • Keep source fixture ingestion separate from the destination clock and duplicate state. Give stored fixtures valid timestamps.
  • Check sequence-before-timestamp ordering and completion of the final subscriber.

Verification: all 40 sync unit tests pass. In an isolated worktree, removing production clock seeding still passed all 38 old tests but failed the strengthened clock check. Removing infrastructure filtering failed two regressions; removing acknowledged delivery failed the backlog and final-subscriber checks. Restoring production code returned all 40 tests to green. Normal pre-push checks passed.

Fixture EventStores are in-memory; the replay spool uses real temporary files. These tests do not claim a full node process restart.

@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
crisp Ready Ready Preview Sep 11, 2026 3:58am UTC
interfold-dashboard Ready Ready Preview Sep 11, 2026 3:58am UTC
interfold-docs Ready Ready Preview Sep 11, 2026 3:58am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 53 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 6785c348-e3b7-4c7a-ba40-96aa00e279f3

📥 Commits

Reviewing files that changed from the base of the PR and between 03ed94e and 63b67b8.

📒 Files selected for processing (4)
  • agent/ARCHITECTURE.md
  • crates/sync/src/sync/service.rs
  • crates/sync/src/sync/tests/mod.rs
  • crates/sync/src/sync/tests/replay.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hmzakhalid

Copy link
Copy Markdown
Collaborator Author

Superseded by #1934 at the user’s request. The combined branch retains this PR’s commits, including 63b67b8. Full CI continues on the combined PR.

@hmzakhalid hmzakhalid closed this Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant