Skip to content

feat(id-store): add signed sidecar snapshots (#10242) - #12878

Open
dezren39 wants to merge 1 commit into
mainfrom
codex/agent-next-05-17082-sidecar-snapshot
Open

dezren39 wants to merge 1 commit into
mainfrom
codex/agent-next-05-17082-sidecar-snapshot

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add complete scoped signed sidecar snapshot bodies and envelopes
  • sign canonical deterministic-CBOR bodies and derive SnapshotId from the complete envelope
  • validate generation/parent links, payload identity, scope fields, and detached signatures
  • add the model-oracle integration test and register its suite

Closes #10242

Evidence

Merge Danger

The sidecar module is intentionally not exported from id-store crate root; issue #10242 assigns that export to the separate 9110-02 slice. The integration test includes the module by path until that export lands.


Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 04:20
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T04:23:23.536500Z 998b709 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 08ee9568-c353-4283-8e19-044fe0c6ade2
Commits

Reviewing files that changed from the base of the PR and between 4c01d04 and 998b709.

Files selected for processing: 3

  • .github/test-suite-registry.json
  • pkgs/id/crates/id-store/src/sidecar_snapshot.rs
  • pkgs/id/crates/id-store/tests/sidecar_snapshot.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +10 to +11
#[path = "../src/sidecar_snapshot.rs"]
mod sidecar_snapshot;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +74 to +76
#[test]
fn complete_scope_round_trips_and_verifies() {
let original = snapshot(1, br#"{"key":"value"}"#, 0, None, 1_700_000_000);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@dezren39
dezren39 removed the request for review from a team November 23, 2026 05:55

This branch has not been deployed

No deployments
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.

Encode complete signed metadata snapshot records

1 participant