GeezerVison is showing github.com — Specify canonical CBOR profile and byte-level vectors for new signed records · Issue #10181 · developing-today/code
Specify canonical CBOR profile and byte-level vectors for new signed records #10181DescriptionProblem and goal
Define deterministic CBOR profile, duplicate-key rejection, critical field behavior and cross-language canonical vectors.
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
Enables: Stable body signatures and envelope IDs across Rust and hosted TypeScript.
Scope and ownership
Parent: #9114 (native component/meta parent).
pkgs/id/crates/id-core/src/canonical_cbor.rs (new; owner: A9114-cbor-profile)
pkgs/id/crates/id-core/tests/canonical_cbor_vectors.rs (new; owner: A9114-cbor-profile)
pkgs/id/hosted-worker/src/canonical-cbor.ts (new; owner: A9114-cbor-profile)
pkgs/id/hosted-worker/test/canonical-cbor.test.ts (new; owner: A9114-cbor-profile)
Hard dependencies (native blockers): 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-core/tests/canonical_cbor_vectors.rs first. Proposed command: cargo test -p id-core --test canonical_cbor_vectors && cd pkgs/id/hosted-worker && bun test canonical-cbor.test.ts
Oracle: golden — expected Independent reference vectors and byte equality across Rust/TypeScript; decoder rejects any ambiguous signed encoding.; verifier: Compare output bytes and typed outcomes with the cited fixed golden vectors; fail on any difference..
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 17030 preflight recorded (lane any-a): A9114-cbor-profile native blocker #10160 OPEN — task self-blocked
Native-blocker preflight (fresh, 2026-11-14T17:21Z):
Result: the blocker gate is NOT clear. Per the packet's mandatory preflight instruction, no implementation was performed and task 17030 is self-blocked as a broker dependency block on #10160; the broker returns it to the pool automatically when #10160 closes, and the preflight then re-runs fresh. dezren39 commented on Nov 14, 2026 agent-note:v1
state: triaged
task: 17030
lane: code-b
summary: Preflight for slice A9114-cbor-profile (task 17030, lane code-b, 2026-11-14). This task was previously dep-blocked on its sole native blocker #10160; the broker auto-released it when #10160 CLOSED (2026-11-14T18:20:30Z), and the stale blocked labels were synced on this claim per runbook section 9. Fresh verification this claim: GET repos//issues/10181/dependencies/blocked_by returns #10160 in state closed — the native gate is CLEAR. The issue body names the same dependency (9110-02 adds this consumer module to the crate root and owns Cargo manifest/export changes), now satisfied. No hard-stop labels on #10181 (no held / user/owned / do-not-merge / do-not-auto-edit). No implementation was performed in this preflight packet (preflight-only; no production rollout is authorized). Implementation was split to a follow-on task (id in the task completion record), dedupe-checked against the queue (no existing fix task for #10181). Manifest binding on the issue: SHA-256 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
next: the follow-on task implements A9114-cbor-profile within the issue's approved scope and golden oracle (canonical_cbor_vectors test first). dezren39 commented on Nov 14, 2026
Agent note — task 17148 DONE: A9114-cbor-profile implemented and merged (lane code-a, 2026-11-14)
PR #10338 MERGED (merge commit 9366ecbfe9f91f7e6f0e68d47244fb6fdb828a00); this issue auto-closed via the PR's Closes line.
What landed: the deterministic CBOR profile for signed records, implemented identically in Rust (pkgs/id/crates/id-core/src/canonical_cbor.rs, wired into the id-core root) and TypeScript (pkgs/id/hosted-worker/src/canonical-cbor.ts) — shortest-form arguments, definite lengths, unique byte-sorted map keys, a closed value model (no floats/tags), strict typed rejection of every ambiguous encoding, and unknown-critical-field rejection via record specs.
Evidence (golden oracle — both suites assert the same fixed vector table):
cargo test -p id-core --test canonical_cbor_vectors — 3 passed / 0 failed.
bun test test/canonical-cbor.test.ts — 3 passed / 0 failed.
bunx tsc --noEmit in hosted-worker — clean.
Codex review on the PR produced zero findings (review capacity was usage-limited across today's PRs); merged on the test evidence above.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|