Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 225ea6ac73
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if let Some(q) = round_quorum { | ||
| quorum = Some(q); | ||
| break; |
There was a problem hiding this comment.
Replay all traced rounds before declaring success
replay_trace_entries exits immediately after observing the first quorum for expected_round, so replay_multi_round_trace_reaches_quorum can pass without ever validating later rounds in the trace. In practice, any corruption or omission in round-2+ entries will be silently ignored as long as round 1 still reaches quorum, which undermines the purpose of the multi-round fixture as a regression test.
Useful? React with 👍 / 👎.
225ea6a to
7857bf7
Compare
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7857bf7 to
79b13d0
Compare
This PR adds unit tests for consensus invariants (aggregator, queue, step_votes_reg) and adds a specification-level test harness that replays consensus traces through handler logic.