Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 998b7097ff
ℹ️ 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".
| #[path = "../src/sidecar_snapshot.rs"] | ||
| mod sidecar_snapshot; |
There was a problem hiding this comment.
Declare the sidecar module in the crate root
The #[path] inclusion compiles only a private integration-test copy: id-store/src/lib.rs never declares sidecar_snapshot, so downstream crates cannot use the new implementation. Deferring the declaration also violates the repository's explicit same-change module requirement; the scoped module-reach check reports sidecar_snapshot.rs as UNREACHED and exits 1. Declare the module in the crate root in this change rather than leaving its availability to another slice.
AGENTS.md reference: pkgs/id/AGENTS.md:L150-L150
Useful? React with 👍 / 👎.
| #[test] | ||
| fn complete_scope_round_trips_and_verifies() { | ||
| let original = snapshot(1, br#"{"key":"value"}"#, 0, None, 1_700_000_000); |
There was a problem hiding this comment.
Cover snapshot invariants with generated tests
All five added tests use fixed examples, although this new serializer and signed ID format have round-trip, payload-binding, and signed-scope invariants. The repository's testing doctrine specifically requires property-based coverage for such invariants; describing these examples as “model-oracle” tests does not exercise generated states or mutations. Add proptest coverage for valid bodies and payloads plus tampered envelopes, checking canonical round trips and rejection of altered signed fields, payloads, and signatures.
AGENTS.md reference: AGENTS.md:L37-L39
Useful? React with 👍 / 👎.
Summary
Closes #10242
Evidence
rustfmt --edition 2024 pkgs/id/crates/id-store/src/sidecar_snapshot.rs pkgs/id/crates/id-store/tests/sidecar_snapshot.rsjq empty .github/test-suite-registry.jsongit diff --checkcargo test --manifest-path pkgs/id/Cargo.toml -p id-store --test sidecar_snapshot(queued for PR CI; local cargo execution is unavailable in this sandbox)Merge Danger
The sidecar module is intentionally not exported from
id-storecrate root; issue #10242 assigns that export to the separate 9110-02 slice. The integration test includes the module by path until that export lands.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.