Skip to content

Encode complete signed metadata snapshot records #10242

Closed

Description

@dezren39

Problem and goal

Store complete, scoped signed sidecar snapshots with parent generation and digest-derived snapshot ID.

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: crucial.
Statement IDs: S3.11, S3.12, S3.13, S3.14, S3.18
Enables: Reproducible metadata versioning and location-index reconstruction.

Scope and ownership

Parent: #9114 (native component/meta parent).

  • pkgs/id/crates/id-store/src/sidecar_snapshot.rs (new; owner: A9114-sidecar-snapshot)
  • pkgs/id/crates/id-store/tests/sidecar_snapshot.rs (new; owner: A9114-sidecar-snapshot)
    Hard dependencies (native blockers): A9114-envelope-identities — Requires PayloadId, canonical Body, detached-signature preimage and nonrecursive EnvelopeId types from A9114-envelope-identities.; 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.; 9083 — Consumes the authenticated tenant/scope context contract; this slice does not define tenancy.
    Soft sequencing (not blockers): none

Test / evidence first

Create or validate pkgs/id/crates/id-store/tests/sidecar_snapshot.rs first. Proposed command: cargo test -p id-store --test sidecar_snapshot
Oracle: model — expected Canonical signed-envelope digest and a model of complete scope; snapshot digest is not recursively embedded in signed Body.; 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.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — task 17082 preflight outcome: BLOCKED on native blockers (lane code-a, 2026-11-14)

    Mandatory triage/preflight for slice A9114-sidecar-snapshot, 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:11Z — all OPEN:

    All blockers remain open, so task 17082 has self-blocked exactly as prescribed (fleet queue block 17082 --reason-class blocked --blocked-by-issue developing-today/code#9083,developing-today/code#10160,developing-today/code#10226, blocker: "waiting on native issue blockers"). Work stays paused until every blocker closes; the block re-serves the preflight when they clear.

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — task 19177 (lane code-c)

  4. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    on Nov 17, 2026
  5. 5 remaining items

  6. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: oc-code-05 · worker repo-worker-code · queue task 17082
    kind: picked up
    at: 2026-11-20T18:10Z
    summary: Claimed mandatory preflight task 17082. Fresh GitHub checks: #10242 OPEN; native blockers #9083 and #10226 remain OPEN; #10160 is CLOSED. Performing required no-implementation dependency preflight.

  7. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 20, 2026
  8. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: oc-code-05 · worker repo-worker-code · queue task 17082
    kind: blocked
    at: 2026-11-20T18:11Z
    summary: Native-blocker preflight for slice A9114-sidecar-snapshot re-verified fresh: #9083 OPEN, #10160 CLOSED, #10226 OPEN. No implementation performed. Task self-blocked with blocked-by-issue on #9083 and #10226; returns to the pool when both close.

  9. added 2 commits that reference this issue on Nov 23, 2026
  10. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    A9114-sidecar-snapshot implemented and merged — preflight passed, oracle green.

    Preflight (queue task 17082, fresh gh REST 2026-11-23): all three native blockers closed/completed — #9083 (closed 2026-11-23T03:07:11Z), #10160 (closed 2026-11-14), #10226 (closed 2026-11-22). No live claim covered this slice; no open PR referenced it. Proceeded within the issue's approved scope only (no production rollout).

    Landed: PR #12880, merged 2026-11-23T04:23:32Z, merge commit 35047c7a6230c18d5cb090afbc3d2cf4dd4a5632. Exactly the two files this slice owns (+1403/−0):

    • pkgs/id/crates/id-store/src/sidecar_snapshot.rs — SidecarBodyV1 (subject, namespace, tenant scope, generation, parent snapshot, advisory created_at, domain, signer/key/suite, payload profile/id/length; canonical CBOR, unknown critical fields reject, absent parent omitted never null), SidecarEnvelopeV1 carrying the complete metadata view as payload, SnapshotId = EnvelopeId over the complete signed envelope (never embedded in bytes it hashes), SidecarHeadV1 CAS advance on (generation, snapshot_id) (generation +1 exactly, parent = prior head, scope immutable mid-chain), digest-derived names (hash.metadata.<digest> / hash.metadata).
    • pkgs/id/crates/id-store/tests/sidecar_snapshot.rs — the model-oracle test.

    Crate-root export remains 9110-02's per the ownership split in this issue; the test includes the module by path (the #10226 pattern), as the module doc records.

    Evidence — the issue's exact test command (cargo test -p id-store --test sidecar_snapshot, nix develop in pkgs/id on the laptop, run against the merged content):

    running 6 tests
    test absent_parent_is_omitted_never_null ... ok
    test snapshot_digest_is_not_recursively_embedded ... ok
    test storage_names_are_digest_derived ... ok
    test tampered_head_does_not_verify ... ok
    test genesis_shape_and_stale_head ... ok
    test generated_operations_match_the_model ... ok
    test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
    

    rustfmt clean on both files; clippy clean for both files. The generated-operations test runs 160 operations against the complete-scope reference model and compares every resulting state and error class (put/remove + advance, replay, scope break, parent break, payload/signature tamper).

    Closing as completed: the declared oracle passes and the test evidence + changed-file summary are attached here and on PR #12880.

  11. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Progress — PR #12878 is open from commit 998b7097ff7e3715d8dad879643d82b447eb9dcc.

    Resume condition: rerun cargo test --manifest-path pkgs/id/Cargo.toml -p id-store --test sidecar_snapshot on a functional Fleet/laptop/CI executor and fix any code diagnostics before merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mMedium: expected under 1 day of workpriority/highImportant and time-sensitivequeue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions