Skip to content

id-store: legacy metadata read bridge and immutable snapshot migration (A9114-snapshot-migration, #10270) - #13110

Merged
dezren39 merged 1 commit into
mainfrom
lane-lx-10270
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-lx-10270

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

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_legacy read bridge over the legacy .meta JSON form (source bytes never modified); LegacySourceView requires consistency evidence (byte-identical double read, or one read matching an attested digest) before any migration; migrate converts a subject's complete view deterministically and publishes a signed SidecarEnvelopeV1, advancing the head through the snapshot compare-and-swap; repeat migration of the same view reports AlreadyMigrated and 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_migration in pkgs/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 --check clean on both files.

Provenance: the two files were written by queue task 21143's first attempt in worktree ~/wt-lane-fz-10270 and 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


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

…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.
@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 42 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: 26589897-f28b-427a-a57d-3f6c204bd414
Commits

Reviewing files that changed from the base of the PR and between 9523ad4 and 0493483.

Files selected for processing: 2

  • pkgs/id/crates/id-store/src/sidecar_migration.rs
  • pkgs/id/crates/id-store/tests/sidecar_migration.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 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-23T08:17:55.734266Z 0493483 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.

@dezren39
dezren39 merged commit 3e35329 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-lx-10270 branch November 23, 2026 08:16
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.
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.

Add legacy metadata read bridge and immutable snapshot migration

1 participant