GeezerVison is showing github.com — id: implement signed-object export/import for hosted ID stores (from #2046/#2852 slice 4) · Issue #3810 · developing-today/code
id: implement signed-object export/import for hosted ID stores (from #2046/#2852 slice 4) #3810DescriptionChild implementation packet of #2852, gated by the settled synthesis in #2046. Implement #2258 spec §6 as an independently mergeable slice.
Scope: export the user's signed objects plus binding record/manifest; import into a self-hosted node or another host with signature, manifest, hash and binding verification; preserve identity and report refused entries without silent loss. Treat encrypted payloads as opaque and preserve the CSE choice without selecting its default.
Gate: depends on the settled object/binding contract from slice 1 and the hosted store from slice 3. Do not decide whether CSE is default-on; follow the accepted #2046 decision.
Acceptance: round-trip tests cover signed events, blobs, binding record, malformed/tampered payloads, and the spec's unkeyed-export path; export/import result is identical by canonical object/hash set; PR references this issue and #2852. Activitydeveloping-today commented on Nov 1, 2026 dezren39 commented on Nov 1, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 2, 2026 dezren39 commented on Nov 23, 2026
Decided: The stale block on #3810 no longer holds; proceeding with the next slice instead of parking.
Why: The last substantive block (task 13550, 2026-11-09) was packet_defect on unmerged prerequisites — since then #3808 closed (PR #4854) and #3811 closed 2026-11-22 (PRs #5286/#10129/#10132, done-check on the issue). The older owner-park (CSE default) was resolved by the #2046 ruling (default ON, 2026-11-03) and is already implemented, not re-decided here. No user/escalated label is present.
Undo: A later PR or triage can re-add status/blocked with fresh evidence if a prerequisite regresses.
By: oc-code-05 dezren39 commented on Nov 23, 2026
Slice landed as PR — Lane oc-code-05 (oc-code-05), 2026-11-23. PR #13196 (branch lane-oc-code-05-3810-export-refusals) closes the signing-model remainder of #3810 slice 4.
What changed (pkgs/id, Rust only):
- Chain-aware verify_key_signature: ceremony key superseded into history is now admitted (rebind chain still enforced via attestation + rebind records, not raw holder match).
- Full refusal-path coverage for build_export / import_export: NicknameMismatch, BindingMissing, KeyUnbound, KeySuperseded(-Confirmed), BindingRevoked, ManifestMismatch, BindingKeySignatureInvalid + canonical-order and JSON wire round-trips for RefusedEntry.
Evidence: cargo test -p id --lib 540 passed / 0 failed (hosted_export 22/22); cargo check -p id --all-targets clean; fmt clean. Clippy could not run in this env (rustc 1.99.1 vs 1.99.0 E0514); nightly CI clippy is venue of record.
Not in this PR (named follow-on, no new issue filed): wiring DO enumeration + R2 fetch into build_export, and ingest-side step-4 sequencing — the live DO /v1/export still serves kv + blob metadata only.
Next: merge #13196, then take the wiring slice. dezren39 commented on Nov 23, 2026
Slice 4b production landed for #13157: PR #13212, merged as b5332dcd8c563f79d82636d128d4ad0ee113dc40. #13157 is closed by the merge.
With the ingest half (#13158, PR merged earlier today) also on main, both follow-on halves of this tracker are now landed: a verified export can be produced from a live per-user DO (GET /v1/bridge/export → build_export) and ingested at a target node under normal admission rules (hosted_ingest). The §6.3 object-model mapping is recorded in the spec doc.
One cross-slice fix rode along in #13212: HostedBindingService::verify_key_signature could never verify a post-rebind binding record; it now accepts the ceremony key as the current or a history key (current shape still covered by the service attestation). dezren39 commented on Nov 23, 2026
Claim — Lane WB (archer), 2026-11-23. Taking the remaining slice of #3810 served by the queue: reconcile PR #13196 against current main.
Premise check (fresh, this pass):
Plan: verify on current main what of #13196 is already landed, rebase the still-missing test coverage onto main in a Lane WB branch (dropping the duplicate fix), run the id test suite, open a PR referencing #3810 and #2852, and record the disposition of #13196. If the test coverage is also already on main, this becomes a verify-and-close pass on #13196 and #3810 instead. dezren39 commented on Nov 23, 2026
Progress — Lane WB (archer), 2026-11-23. PR #13312 open: the §6.2 refusal + rebound-binding test coverage from PR #13196, rebased onto current main.
On merge, #3810's acceptance is fully covered and this tracker closes; PR #13196 can be closed as superseded. dezren39 commented on Nov 23, 2026
Slice landed as PR — Lane oc-code-02, 2026-11-23. PR #13313 (branch lane-oc-code-02-3810-cse-parity) closes the CSE-choice remainder of #3810 slice 4.
What changed (pkgs/id, Rust only): verify_import step 1 returns new typed refusal ExportError::CseChoiceMismatch when the manifest's §7 flag disagrees with the binding record's (spec §7: the flag changes only by re-encrypting via export/import, so disagreeing halves do not name one stored data set); unsigned flag flips still fail as ManifestSignatureInvalid. ingest_import's verification-token gate pins the CSE choice and refuses before any write.
Tests (4 new, failing-first): manifest_cse_choice_mismatching_the_binding_is_refused (both directions) failed on origin/main as Ok/verified; plus the unsigned-flip characterization and the mismatched-token pre-write refusal. cargo test -p id --lib -- hosted_export:: hosted_ingest:: hosted_binding::: 60 passed, 0 failed (laptop, post-merge).
Not done here: the remaining slice-4b refusal/rebind coverage in open #13196 (lane oc-code-05, adjacent hunks, no semantic overlap). #3810 stays open until that merges. dezren39 commented on Nov 23, 2026
Done — Lane WB (archer), 2026-11-23. #3810 is complete; closing as completed.
Final slice landed: PR #13312, merged as 57743078f35481eb12dd4dc315b0a3cc888d79f5 (head SHA-guarded at 60ea57f9309).
What it carries: the test half of PR #13196, rebased onto current main — key_signature_verifies_for_a_rebound_binding (hosted_binding) + 13 hosted_export tests covering the delayed/fast-path history round-trips and every remaining §6.2 refusal (HistoryUnbacked, RebindRecordMismatch, tampered rebind record, ManifestBindingMismatch, BindingKeySignatureInvalid, BindingAttestationInvalid, CountMismatch, ObjectsDigestMismatch, DuplicateObject, MissingBlob), plus canonical-order and JSON wire round-trip asserting the identical object/hash set. Tests only (+424 lines); #13196's production fix had already landed via PR #13212, and PR #13196 is now closed as superseded.
Acceptance mapping, all on main now:
Evidence (laptop route; the dispatch container cannot run nix develop — #13159): cargo test -p id --lib → 552 passed / 0 failed / 1 ignored; hosted_ filter → 75 passed / 0 failed. A cargo check -p id --all-targets run was still in progress with zero errors at merge time; the change is confined to #[cfg(test)] modules, and main-branch CI is the venue of record for the rest. dezren39 commented on Nov 23, 2026 Correction to the done record above — Lane WB (archer), 2026-11-23.
The cargo check -p id --all-targets run mentioned there has since finished as EXIT=101 — but not on code: every error is a missing-file failure inside third-party dependency crates (ed25519-dalek, cbor-core, phc, …) because I removed the lane worktree while the check was still running, deleting its target/ directory mid-build. No error names the changed code. The verification of record stands as stated: cargo test -p id --lib → 552 passed / 0 failed (that run compiles the lib and lib-test targets of the changed modules).
For completeness, the all-targets check is re-running cleanly in a detached worktree at the merge commit 57743078f35; its result will be posted here when it finishes. dezren39 commented on Nov 23, 2026 agent-note:v1 — lane felix verification record, 2026-11-23
Lane felix verification: #3810 is fully delivered on main, no reimplementation from this lane.
- Slice 4a core: PR feat(id): hosted export/import core — spec §6 format + verification (#2852 slice 4a) #9396 (45c5ed3),
pkgs/id/src/hosted_export.rs (§6.1 format, §6.2 steps 1–3, unkeyed-export path).
- Slice 4b ingest: PR feat(id): hosted import ingest — apply a verified export under normal admission rules (#13158) #13201 (0785bdb, closes id: import ingest — apply a verified export under normal admission rules with a per-entry report (§6.2 step 4; slice 4b of #2852, from #3810) #13158),
pkgs/id/src/hosted_ingest.rs.
- Slice 4b export production: PR id: hosted export production — DO enumeration and R2 blobs into build_export (slice 4b of #2852) #13212 (b7cdcf8, closes id: hosted export production — enumerate a per-user DO's objects and R2 blobs into build_export (slice 4b of #2852, from #3810) #13157),
pkgs/id/hosted-worker/src/export.ts.
- Tests on main: hosted_export 13, hosted_ingest 5, export.test.ts 5.
A fresh dispatch of cargo test --lib hosted at 7fecf88 was queued as fp_843920f9253daf3776695ef25bad9625 with no runner surface available (see #13159); it was still queued at the 07:11 CST check.
Concurrency note from this retry run (2026-11-23 ~07:30 CST): while this deferred record was waiting out the GitHub rate limit, lane WB (archer) landed the final §6.2 test-coverage slice as PR #13312 (merged 2026-11-23T13:28:02Z) and closed #3810 as completed at 2026-11-23T13:28:04Z. That closure matches this verification — #3810's acceptance is met in full; it remained only as the #2852 slice-4 tracker. No separate close action is needed from this lane. dezren39 commented on Nov 23, 2026 Confirmation: the detached cargo check -p id --all-targets at the PR #13312 merge commit (5774307) finished clean (EXIT=0, Finished in 3m 12s, no errors) — closing out the correction thread; the earlier EXIT=101 was the worktree-removal artefact, and the first detached re-run was SIGTERM'd while stalled on sccache (EXIT=143, no verdict), so this sccache-disabled re-run in the same worktree is the verdict of record.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|