Repository navigation
id-store: complete signed metadata sidecar snapshots (A9114-sidecar-snapshot, #10242) - #12880
Merged
Merged
Conversation
…napshot, #10242) New module pkgs/id/crates/id-store/src/sidecar_snapshot.rs implementing design A-9114.1-A-9114.3 (statements S3.11-S3.14, S3.18): SidecarBodyV1 commits subject, namespace, tenant scope, generation, parent snapshot, payload id/length/profile, signer/key/suite in canonical CBOR with unknown-critical-field rejection; SidecarEnvelopeV1 carries the complete metadata view as its payload; SnapshotId is the EnvelopeId over the complete signed envelope, never embedded in bytes it hashes. SidecarHeadV1 advances by CAS on (generation, snapshot_id): generation increments exactly once, parent equals prior head, scope may not change mid-chain. Storage names are digest-derived (hash.metadata.<digest>, mutable head hash.metadata). Model-oracle test pkgs/id/crates/id-store/tests/sidecar_snapshot.rs: generated operations against a complete-scope reference model compare every resulting state and error class; fixed tests cover genesis shape, stale CAS, non-recursion, omitted-parent encoding and file naming. cargo test -p id-store --test sidecar_snapshot: 6 passed, 0 failed. Crate-root export stays with slice 9110-02 per the issue ownership split; the test includes the module by path, as in #10226.
|
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 6 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. |
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. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements slice A9114-sidecar-snapshot for #10242 (parent #9114), per design
doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-addressing/versioned-design.md§9114 (A-9114.1–A-9114.3, S3.11–S3.14, S3.18).Preflight (queue task 17082): native blockers #9083, #10160, #10226 all verified closed/completed fresh on 2026-11-23 before implementing.
Changed files (2, both new, owned by this slice)
pkgs/id/crates/id-store/src/sidecar_snapshot.rs—SidecarBodyV1(subject, namespace, tenant scope consumed from the design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083 contract, generation, parent snapshot, advisory created_at, domain, signer/key/suite, payload profile/id/length) in canonical CBOR with unknown-critical-field rejection and absent-parent omission;SidecarEnvelopeV1carrying the complete metadata view as payload;SnapshotId = EnvelopeIdover the complete signed envelope (never embedded in bytes it hashes — no recursive self-ID);SidecarHeadV1advancing by CAS on(generation, snapshot_id)with generation +1 exactly, parent = prior head, scope immutable mid-chain; digest-derived storage names (hash.metadata.<digest>, headhash.metadata).pkgs/id/crates/id-store/tests/sidecar_snapshot.rs— model-oracle test: generated operations against a complete-scope reference model (digest derivation via id-core only), comparing every resulting state and error class; fixed tests for genesis shape, stale CAS, scope break, parent break, tamper classes, non-recursion, omitted-parent encoding, file naming.Crate-root export stays with slice 9110-02 per the issue's ownership split; the test includes the module by path (the #10226 pattern).
Evidence
cargo test -p id-store --test sidecar_snapshot(nix develop, pkgs/id, laptop):rustfmt clean on both files; clippy clean for both files.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.