Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
PR changed again? Review this PR in Change Stack to compare snapshots and stay oriented. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughPkAggregationProofRequest construction for C5 proof pending now uses canonical committee dimensions: ChangesC5 Proof Request Dimensions
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
crates/aggregator/src/actors/publickey_aggregator.rs (1)
299-306: ⚡ Quick winAdd a regression test for the
N != Hrequest shape.This fixes the constructor, but the file still doesn't pin the emitted
PkAggregationProofRequestfor the non-square committee case that broke here. A small test around the publishedPkAggregationProofPendingwould lock incommittee_n = threshold_n,committee_h = H, andcommittee_threshold = threshold_mso the artifact-lookup contract can't drift again. Based on the downstreamPkAggregationProofRequestcontract and C5 handler behavior in the supplied snippets.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@crates/aggregator/src/actors/publickey_aggregator.rs` around lines 299 - 306, Add a regression test that publishes a non-square (N != H) committee scenario and asserts the emitted PkAggregationProofPending contains a PkAggregationProofRequest with committee_n == threshold_n, committee_h == H, and committee_threshold == threshold_m; locate where PkAggregationProofPending is emitted in publickey_aggregator (search for PkAggregationProofPending and PkAggregationProofRequest constructors) and create a test that drives that path, captures the published event, and asserts those three fields exactly to lock the artifact-lookup contract.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@crates/aggregator/src/actors/publickey_aggregator.rs`:
- Around line 299-306: Add a regression test that publishes a non-square (N !=
H) committee scenario and asserts the emitted PkAggregationProofPending contains
a PkAggregationProofRequest with committee_n == threshold_n, committee_h == H,
and committee_threshold == threshold_m; locate where PkAggregationProofPending
is emitted in publickey_aggregator (search for PkAggregationProofPending and
PkAggregationProofRequest constructors) and create a test that drives that path,
captures the published event, and asserts those three fields exactly to lock the
artifact-lookup contract.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 42c94f4c-ffcf-4e5d-8de5-6af7a56aa23e
📒 Files selected for processing (1)
crates/aggregator/src/actors/publickey_aggregator.rs
this will make N != H committee size work
Summary by CodeRabbit
Bug Fixes
Tests
Chores