GeezerVison is showing github.com — Add legacy metadata read bridge and immutable snapshot migration · Issue #10270 · developing-today/code
Add legacy metadata read bridge and immutable snapshot migration #10270DescriptionProblem and goal
Read old metadata forms and create signed snapshots without modifying content bytes or claiming a consistent source snapshot without evidence.
Version and design basis
Version: V2. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-addressing/versioned-design.md#9114--complete-metadata-sidecars-and-mutable-head (section: #9114 — Complete metadata sidecars and mutable head).
Tier: recommended.
Statement IDs: S3.11, S3.12, S3.13, S3.14, S3.15, S3.16, S3.17, S3.18, S3.19, S3.20, S3.21, S3.22
Enables: Incremental adoption of signed sidecar format.
Scope and ownership
Parent: #9114 (native component/meta parent).
pkgs/id/crates/id-store/src/sidecar_migration.rs (new; owner: A9114-snapshot-migration)
pkgs/id/crates/id-store/tests/sidecar_migration.rs (new; owner: A9114-snapshot-migration)
Hard dependencies (native blockers): A9114-sidecar-snapshot — Requires complete scoped signed sidecar snapshot record with payload/envelope IDs, parent and generation from A9114-sidecar-snapshot.; A9114-cas-head — Requires generation-and-parent compare-and-swap head update with stale/ABA conflict result from A9114-cas-head.; 9110-02 — Adds this consumer module to the crate root and owns Cargo manifest/export changes; this slice owns only its distinct module and tests.
Soft sequencing (not blockers): none
Test / evidence first
Create or validate pkgs/id/crates/id-store/tests/sidecar_migration.rs first. Proposed command: cargo test -p id-store --test sidecar_migration
Oracle: model — expected Before/after data-model comparison plus fixed signed snapshot vector; only consistent source views may advance head.; verifier: Generate the listed operations against the specified state/reference model and compare every resulting state and error..
Done and rollback
Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Disable new snapshot/head writes and keep the previous head readable; preserve immutable snapshots and legacy metadata readers. Rebuild the head only from verified signed parent chains.
Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 14, 2026
Agent note — task 17109 preflight outcome: BLOCKED on native blockers (lane code-a, 2026-11-14)
Mandatory triage/preflight for slice A9114-snapshot-migration, performed per the task spec — no implementation attempted, no production rollout authorized or started.
Native blockers read from this issue's GitHub blocked-by graph at 2026-11-14T18:40Z — all OPEN:
All blockers remain open, so task 17109 has self-blocked exactly as prescribed (fleet queue block 17109 --reason-class blocked with --blocked-by-issue naming all three, blocker: "waiting on native issue blockers"). Work stays paused until every blocker closes; the block re-serves the preflight when they clear. dezren39 commented on Nov 17, 2026
🤖 Agent note · already done — task 19203 (lane code-b)
- Already routed (verified fresh this shift): the A9114-snapshot-migration work packet for this issue is queue task 17109, standing dep-blocked on its native blockers (A9114-sidecar-snapshot record, A9114-cas-head CAS update, 9110-02 crate-root output). No new packet; another would duplicate task 17109.
- Priority: normal, Effort: m — set on the issue now (the issue carried no labels; one new id-store module
sidecar_migration.rs plus its tests).
dezren39 commented on Nov 17, 2026 agent-note:v1
kind: blocked
worker: repo-worker-code (openchamber scheduled lane code-f)
task: 17109 (repo-health-code-pilot)
at: 2026-11-17T18:02Z
summary: Native-blocker preflight for A9114-snapshot-migration. #10160 CLOSED, #10242 OPEN, #10254 OPEN. No implementation performed; task blocked with blocked-by #10242 and #10254. Resume when both close. dezren39 commented on Nov 18, 2026
Triage — queue task 20544, openchamber scheduled lane (oc-code-03), 2026-11-18.
Fresh GitHub state (08:48 UTC): #10270 OPEN, labels status/blocked, queue/blocked. Native blocked-by graph: #10242 OPEN, #10254 OPEN; #10160 CLOSED.
Verdict: triaged, dependency-blocked. Existing disposition stands: work stays with task 17109 (A9114-snapshot-migration), which resumes when #10242 and #10254 close. No duplicate follow-on packet enqueued. dezren39 commented on Nov 23, 2026
Agent note — claim + adoption of orphaned work (lane LX, sandbox fix lane), queue task 21143
Native-blocker preflight (fresh gh REST, 2026-11-23T08:05Z): all three blockers CLOSED — #10160, #10242, #10254. Issue #10270 is OPEN with labels already corrected to queue/queued by the blocker sweep.
Ownership check: the earlier preflight task 17109 is complete (2026-11-23T06:56Z). This delivery task (21143) was claimed once at 07:10Z; that attempt wrote both in-scope files in worktree ~/wt-lane-fz-10270 and reached the oracle stage, then its lease expired at 08:00:33Z with the files uncommitted and no PR opened. No live claim covers this slice now; my claim on task 21143 (08:01:30Z) is the live one.
Plan: adopt the orphaned files, verify them against current main (the orphaned worktree sits 223 commits behind), run the stated oracle cargo test -p id-store --test sidecar_migration in pkgs/id, and land via PR if green. Scope stays exactly the two approved files:
pkgs/id/crates/id-store/src/sidecar_migration.rs (new)
pkgs/id/crates/id-store/tests/sidecar_migration.rs (new)
No production rollout. dezren39 commented on Nov 23, 2026
Agent note — done (lane LX), queue task 21143: slice A9114-snapshot-migration delivered
- Preflight: native blockers Define versioned capability-oriented port contracts #10160, Encode complete signed metadata snapshot records #10242, Implement compare-and-swap metadata head and ABA protection #10254 re-verified CLOSED fresh via gh REST (2026-11-23T08:05Z).
- Adoption: task 21143's first attempt (claimed 07:10Z) wrote both files in
~/wt-lane-fz-10270 and reached the oracle stage, then its lease expired at 08:00:33Z with the work uncommitted and no PR. I adopted the files, copied them onto a fresh worktree at current main (the orphaned base was 223 commits behind), and re-verified there.
- Landed: PR #13110 merged, merge commit
3e353294a52c, head-SHA guarded at 049348386f89. Both files verified present on main post-merge. This issue auto-closed as completed on the merge.
- Oracle:
cargo test -p id-store --test sidecar_migration in pkgs/id (nix develop) — 7 passed, 0 failed: 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.
- Remainder: none for this slice. The crate-root export of the new module stays with slice 9110-02, as scoped. The orphaned worktree
~/wt-lane-fz-10270 still holds its uncommitted copies of the same two files (now identical to main); left in place for its lane's owner to retire. No production rollout was performed or authorized.
dezren39 commented on Nov 23, 2026
Claim — Lane OM (archer), 2026-11-23. Taking the #10270 closure reconciliation: PR #13110 merged (08:16:52Z) and auto-closed this issue; developing-today[bot] reopened it 35 s later (08:17:30Z) with no comment — Lane LX's broker completion for task 21143 could not be recorded at the time (verify-disposition was GitHub-rate-limited), so the deliberate verified close never landed. This pass re-runs the declared oracle fresh at current main and, if green, closes deliberately with the evidence on record. dezren39 commented on Nov 23, 2026
HOLD — Lane OM (archer), 2026-11-23: platform execution-risk flag on the verification worktree.
What this pass established (all read-only, via gh REST + the aggregator):
- PR id-store: legacy metadata read bridge and immutable snapshot migration (A9114-snapshot-migration, #10270) #13110 merged 2026-11-23T08:16:52Z (merge
3e353294a52c); the merge auto-closed this issue at 08:16:55Z.
developing-today[bot] reopened it at 08:17:30Z with no comment. Lane LX's done record (08:17:16Z) reports the declared oracle green at merge time (7 passed / 0 failed) and both files verified on main; LX also recorded that queue task 21143's broker completion could not be recorded because fleet queue verify-disposition was GitHub-rate-limited — the likely reason the deliberate verified close never stuck.
- So the only remaining step is a fresh oracle re-run at current main plus a deliberate close.
What stopped it: creating the fresh verification worktree ~/wt-lane-om-10270 (branch lane-om-10270, at current main 3a941eff430e) returned a result that failed a platform execution-risk check on the checkout's content. Per the standing rule for this flag class, no git/build/test operations were run inside it afterward; the worktree sits untouched at the base SHA.
Gated on Drew's item-specific go-ahead for executing in ~/wt-lane-om-10270: run the declared oracle (cargo test -p id-store --test sidecar_migration in the pkgs/id dev shell), and if green, close #10270 as completed with the fresh evidence. Minutes of work once approved. dezren39 commented on Nov 23, 2026 Preflight update (oc-code-04, 2026-11-23): native blockers #10160, #10242, and #10254 are all CLOSED on fresh GitHub reads. The approved slice is already present as commit 049348386f89420c8e1d4f2ffe1523fedd7e4971 (A9114-snapshot-migration, #10270); the owned source and test files are in the checkout, so no duplicate implementation was made. Exact oracle cargo test -p id-store --test sidecar_migration from pkgs/id passed: 7 passed, 0 failed (including generated operations/reference model, fixed signed vector, inconsistent-source rejection, and idempotency). No production rollout performed. dezren39 commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026
Takeover claim — Lane YM (archer), 2026-11-23. Adopting Lane OM's closure-reconciliation claim (comment 7095929066) under Drew's batch approval of the flag holds (2026-11-23 07:35 CST), which discharges the execution-risk hold OM recorded (comment 7095938271) on executing in worktree ~/wt-lane-om-10270. OM has been silent since the hold; the claim is orphaned. Plan unchanged from OM's: re-run the declared oracle fresh at current main (cargo test -p id-store --test sidecar_migration in pkgs/id), record the verbatim outcome here, and close #10270 deliberately with the evidence if green. No production rollout. dezren39 commented on Nov 23, 2026
Done — Lane YM (archer), 2026-11-23: fresh oracle re-run GREEN at current main; closing deliberately.
Fresh oracle verdict (this pass, first-hand): in ~/wt-lane-om-10270 fast-forwarded to current main 0d9192378b08749ef4d96612799b245b054a1e98, run from pkgs/id under nix develop (laptop route; sccache disabled to avoid the shared-cache stall):
cargo test -p id-store --test sidecar_migration
running 7 tests
test inconsistent_sources_cannot_publish ... ok
test subject_absent_rejects ... ok
test malformed_legacy_rejects ... ok
test legacy_read_is_stable_and_never_rewrites_source ... ok
test fixed_signed_snapshot_vector ... ok
test migration_is_idempotent_and_advances_by_exactly_one ... ok
test generated_operations_match_reference_model ... ok
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.10s
Zero error lines in the run log. This matches the issue's declared oracle and its model (before/after data-model comparison plus fixed signed snapshot vector; only consistent source views advance head).
Close criteria (issue body): "Done when the declared oracle passes and test/evidence output plus changed-file summary is attached." Both hold:
- Changed-file summary: PR id-store: legacy metadata read bridge and immutable snapshot migration (A9114-snapshot-migration, #10270) #13110 (merged 2026-11-23T08:16:52Z, merge
3e353294a52c) added exactly the two scoped files — pkgs/id/crates/id-store/src/sidecar_migration.rs and pkgs/id/crates/id-store/tests/sidecar_migration.rs — both verified present at current main above. Crate-root export stays with slice 9110-02, as scoped.
- Oracle evidence: Lane LX's green run at merge time (comment 7095268162), oc-code-04's green preflight re-run (comment 7096403795), and the fresh run above.
Why this issue was open: the #13110 merge auto-closed it at 08:16:55Z; developing-today[bot] reopened it 35 s later with no comment, and Lane LX's broker completion for queue task 21143 could not be recorded at the time (GitHub rate limit on verify-disposition), so the deliberate verified close never landed. Lane OM's reconciliation pass then stopped on a platform execution-risk flag (comment 7095938271); Drew's batch approval of the flag holds (2026-11-23 07:35 CST) discharged that hold, and this pass executed the approved step in OM's worktree.
Duplicate PR disposition: PR #13320 (opened by the laptop opencode lane off the same queue task 21143) implements the same two files against a pre-#13110 base. It is superseded by the merged PR #13110 and the green oracle on main's version; I am closing it as superseded with a pointer here, so no second implementation of this slice lands.
Remainder: none for this slice. No production rollout was performed or authorized. Closing #10270 as completed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|