Skip to content

Preserve signed-artifact bytes while resolving codec mismatch #10211

Done

Description

@dezren39

Problem and goal

Reconcile documented Ed25519 preimage with code SHA256(serde_json::to_vec(SignedBody)); add compatibility vectors without silently changing legacy signature bytes.

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-c/versioned-design.md#9135-store-placement-adapter-s27s29 (section: #9135 store placement adapter (S2.7–S2.9)).
Tier: crucial.
Statement IDs: S2.7, S2.8, S2.9
Enables: safe store/metadata migration

Scope and ownership

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

  • pkgs/id/crates/id-sync/tests/part_c_profile_compat.rs (new; owner: C9135-02)
    Hard dependencies (native blockers): 9110-11 — legacy/new signed artifact profile table and compatibility vectors, no re-sign/re-hash; 9113 — typed ContentId/PayloadId/EnvelopeId identity profile contract
    Soft sequencing (not blockers): C9135-01 —

Test / evidence first

Create or validate pkgs/id/crates/id-sync/tests/part_c_profile_compat.rs first. Proposed command: cargo test --manifest-path pkgs/id/Cargo.toml -p id-sync --test part_c_profile_compat
Oracle: golden — expected ID-sync consumer accepts the exact legacy artifact profile and new versioned profile without changing legacy wire bytes or adding EnvelopeId to signed preimage.; verifier: Golden vectors and independent verifier owned by crosscut slice 9110-11; this is a consumer integration assertion, not a second canonical codec design..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Revert only the consumer test/adapter; preserve all legacy artifacts and signature bytes.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Acceptance criteria

  • Signed-artifact bytes are preserved while the codec mismatch is resolved per the settled design section cited in the body (parent research(atlas): tenant store placement — in-D1 vs SQLite files synced to S3/R2 #9135): byte-for-byte preservation is demonstrated, not just asserted.
  • Evidence for the result (test run, live check, or the delivered artifact) is linked on this issue.
  • Follow-on work, if any remains, is filed as its own issue and linked here.

Activity

  1. developing-today commented on Nov 14, 2026

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

    @dezren39
    MemberAuthor

    agent-note:v1
    state: blocked
    task: 17055
    lane: any-c
    worker: repo-worker-code

    Preflight for C9135-02 (#10211, Preserve signed-artifact bytes while resolving codec mismatch): verified fresh on 2026-11-14 that both native blockers remain OPEN — #9113 and #10176 (Preserve legacy artifact preimages and define new canonical profile). No held / user/owned / do-not-merge / do-not-auto-edit labels on #10211, #9113, or #10176.

    Per the task packet's mandatory preflight, no implementation was performed. Task 17055 is dep-blocked on #9113 and #10176 (broker-watched, TTL 3 days); it will return to the pool automatically when both blockers close.

  3. added
    queue/blocked
    status/blocked
    work/assigned
    on Nov 14, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Triage — task 19150, lane any-i, 2026-11-16: duplicate bulk-intake triage; existing gated disposition stands.

    Fresh verification (gh, 2026-11-17T07:05Z):

    Verdict: triaged (existing disposition stands). No duplicate follow-on enqueued; work proceeds via task 17055 when #9113 and #10176 close. Issue labels left as task 17055's blocked state.

  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

  6. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged — existing gated disposition stands
    lane: oc-code-03, worker: repo-worker-code, queue task 20514 (triage)

    Fresh check 2026-11-18: native blockers #9113 and #10176 are both still OPEN. Work stays with task 17055, dep-blocked until both close. No duplicate follow-on packet.

  7. removed their assignment
    on Nov 20, 2026
  8. added
    queue/claimed
    and removed
    status/blocked
    on Nov 20, 2026
  9. 23 remaining items

  10. added
    status/triaged
    on Nov 29, 2026
  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue — details, labels, blockers, priority (rechecked from scratch; prior detail did not exempt it).

    STRENGTHS:

    • substantive body (1930 chars)
    • acceptance structure present (0 checklist items, 0 checked)
    • names concrete file/module pointers: com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/versioned-design.md, pkgs/id/Cargo.toml, pkgs/id/crates/id-sync/tests/part_c_profile_compat.rs
    • 10 prior comments of triage/work history on record
    • priority already set (priority/high)

    GAPS FOUND:

    • no kind label (kind not unambiguous from title/body — left for the picking-up lane to set)

    FIXES I APPLIED:

    • status/needs-triage -> status/triaged (this census is the triage; see the agent note below)

    REMAINS: nothing — ready for pickup

  12. added
    app/atlas
    effort/m
    on Nov 29, 2026
  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 residual pass. A parallel census note (Census 2026-11-29 (Felix)) already covers this issue today, and wave 1 of this census audited the head of this group; their verdicts are not duplicated here. This note records only the residual fixes applied after re-verifying the live state (state, body, labels, recent comments) immediately before editing.

    Residual gaps found: no kind/* label (a parallel census note today left it for the picking-up lane; set here from the title/body); no app/*/area/* label although the owning project is clear from the title/body; no effort/* label; no acceptance-criteria section.

    Actions taken: labels added: kind/enhancement, app/atlas, effort/m; appended ## Acceptance criteria (original body text unchanged above it).

    Priority: priority/high retained — matches the work's urgency as evidenced on the issue; no band change in this pass.

  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Felix lane 0640-FE CLAIM (2026-11-29): taking #10211 as scoped: create pkgs/id/crates/id-sync/tests/part_c_profile_compat.rs asserting the golden oracle — the id-sync consumer accepts the exact legacy artifact profile and the new versioned profile without changing legacy wire bytes and without adding EnvelopeId to the signed preimage. Premise check firsthand: both native blockers (#9113, #10176) are CLOSED; no lane claim on this issue today (latest notes are census passes). Verification: remote fleet-command run of cargo test --manifest-path pkgs/id/Cargo.toml -p id-sync --test part_c_profile_compat with executed counts read from the job log. Priority validation: priority/high stands (tier crucial per the settled design; exactly one band, no change).

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Felix lane 0640-FE — PR open: #17024 (branch felix/10211-part-c-compat, one new file pkgs/id/crates/id-sync/tests/part_c_profile_compat.rs, no production changes, no new dependencies). Four tests: legacy profile classified + accepted byte-for-byte against the pinned #10176 vector; envelope profile classified + decode/verify; EnvelopeId outside the signed preimage (preimage reconstructed byte-for-byte; signature flip changes the ID, not the body/payload ID/preimage); unknown bytes reported via ProfileError. Verification run dispatched: fleet-command run 46325468443 (developing-today/fleet) against the PR branch — verdict with executed counts follows here before merge.

  16. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Felix lane 0640-FE — verdict: GREEN. PR #17024 is ready for Felix to merge; it carries Closes #10211.

    Executed evidence (job log read firsthand): fleet-command run 46326067059 (developing-today/fleet, target developing-today/code @ felix/10211-part-c-compat 29154e7) — cargo test -p id-sync --test part_c_profile_compat from pkgs/id: 4 passed / 0 failed, each named ok: legacy_profile_record_is_classified_and_accepted_byte_for_byte, envelope_profile_record_is_classified_and_accepted, envelope_id_is_outside_the_signed_preimage, unknown_record_bytes_are_reported_not_guessed; marker FE-10211-MARKER present. (First dispatch 46325468443 failed at compile on a borrow error in my test — E0716, fixed in 29154e7; not a product signal.)

    Acceptance mapping: (1) byte-for-byte preservation demonstrated by the test itself — the production writer reproduces the pinned #10176 hash/signature and the wire form equals the pinned preimage form; (2) this run is the linked evidence; (3) no follow-on remains — the consumer assertion was the whole scoped slice (the sibling bevy trait break EU noted on #17019 is a separate issue, not this ones remainder). Priority/high confirmed — exactly one band, no change. Claim released to Felix for merge.

  17. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Claim — Felix lane 0640-FY (worker felix), 2026-11-29. Collecting the on-main proof for PR #17024 (merged df2b281; #10211 closed via its Closes keyword at 00:05:05Z). 0640-FE's gate (run 46326067059, 4/4) executed at the PR branch head; no run has executed part_c_profile_compat on main yet. Dispatching a fleet-command run against current main: cargo test -p id-sync --test part_c_profile_compat from pkgs/id. Verdict will be posted here from the job log read firsthand.

  18. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Run of record: fleet-command run 46329075946 (developing-today/fleet), dispatched against code main. Verdict follows when the job log finalizes.

  19. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    On-main proof — Felix lane 0640-FY, 2026-11-29: GREEN. Fleet-command run 46329075946 (developing-today/fleet), dispatched against code main after PR #17024 merged (df2b281); job log read firsthand. cargo test -p id-sync --test part_c_profile_compat from pkgs/id: 4 passed / 0 failed, all four named ok — legacy_profile_record_is_classified_and_accepted_byte_for_byte, envelope_profile_record_is_classified_and_accepted, envelope_id_is_outside_the_signed_preimage, unknown_record_bytes_are_reported_not_guessed — marker FY-10211-DONE present. PR #17024's fix is now proven at both gates (branch head by 0640-FE, run 46326067059; main by this run). #10211's closure (2026-11-30T00:05:05Z, via the PR's Closes) is fully backed. Priority/high concurred — no change.

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

    app/atlaseffort/mepic/atlas-programkind/enhancementprimary-parent/atlas-programpriority/highqueue/queuedstatus/triagedstray-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions