Repository navigation
id-store: legacy metadata read bridge and immutable snapshot migration (A9114-snapshot-migration, #10270) - #13110
Merged
Merged
Conversation
…n (A9114-snapshot-migration, #10270) New sidecar_migration module: parse_legacy reads the legacy .meta JSON form without modifying the source bytes; LegacySourceView gates migration on consistency evidence (byte-identical double read or an attested digest) so a single unaccompanied read can never publish; migrate converts one subject's complete legacy view deterministically (entries ordered by canonical CBOR bytes, duplicates collapsed) into a signed SidecarEnvelopeV1 and advances the scope head through the snapshot CAS, reporting AlreadyMigrated when the head already carries exactly this view. Integration tests include the module by path (crate-root export stays with slice 9110-02): fixed signed snapshot vector, read stability, inconsistent-source refusal, malformed/subject-absent rejection, idempotence with exactly-one generation advance, and a generated-operations comparison against a reference model. Oracle: cargo test -p id-store --test sidecar_migration — 7 passed on current main. Work adopted from the orphaned worktree of queue task 21143's expired first attempt (files written in ~/wt-lane-fz-10270, uncommitted at lease expiry); verified and landed by lane LX.
|
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 42 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. |
dezren39
pushed a commit
that referenced
this pull request
Nov 23, 2026
) The broker rejects repo-health:v1:triage:<repo>:pr:<n>; triage keys must use issue:<n> even for PR items. Proven live: the corrected key enqueued task 21305 for merged PR #13110.
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.
Delivers slice A9114-snapshot-migration for #10270: the legacy metadata read bridge and immutable snapshot migration in
pkgs/id/crates/id-store.Files (the approved scope, nothing else):
crates/id-store/src/sidecar_migration.rs(new) —parse_legacyread bridge over the legacy.metaJSON form (source bytes never modified);LegacySourceViewrequires consistency evidence (byte-identical double read, or one read matching an attested digest) before any migration;migrateconverts a subject's complete view deterministically and publishes a signedSidecarEnvelopeV1, advancing the head through the snapshot compare-and-swap; repeat migration of the same view reportsAlreadyMigratedand does not advance.crates/id-store/tests/sidecar_migration.rs(new) — includes the module by path per the sidecar pattern (crate-root export stays with slice 9110-02).Oracle (the packet's stated test):
cargo test -p id-store --test sidecar_migrationinpkgs/id— 7 passed, 0 failed on current main:fixed_signed_snapshot_vector,legacy_read_is_stable_and_never_rewrites_source,inconsistent_sources_cannot_publish,malformed_legacy_rejects,subject_absent_rejects,migration_is_idempotent_and_advances_by_exactly_one,generated_operations_match_reference_model.cargo fmt --checkclean on both files.Provenance: the two files were written by queue task 21143's first attempt in worktree
~/wt-lane-fz-10270and left uncommitted when its lease expired (08:00:33Z); lane LX adopted them, re-verified against current main (223 commits ahead of the orphaned base), and lands them here. Native-blocker preflight for #10270 re-verified fresh: #10160, #10242, #10254 all CLOSED. No production rollout.Closes #10270
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.