Skip to content

id(phase-14): announcement schema + signing in id-sync (#6287 breakdown 1/5) #10705

Closed

Description

@dezren39

Implementation breakdown item 1 of 5 from the discovery/registry/federation v1 design record for #6287 (doc/2026-11-16_design_id6287_discovery_registry_federation_v1.md, §3, merged in PR #10703).

Scope: the world announcement object in id-sync — the exact §3 field set (world_id, name, description, endpoint, coarse occupancy enum, tags, visibility, issued_at/expires_at ≤ 7 days, monotone seq), CBOR encoding sized to the BEP44 budget, signing/verification via the existing envelope machinery (#1069 pattern), and known-answer vectors. Program announcements are the same object with a content hash in place of the endpoint.

Acceptance: schema + codec + verify implemented with KAT vectors; an over-budget or expired or seq-regressing announcement is rejected by construction/test.

Parent: #6287 · Design: doc/2026-11-16_design_id6287_discovery_registry_federation_v1.md §3

Activity

  1. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    design/id-phase-14Design: id-phase-14 - all issues of this effort carry it
    epic/id-programReprioritization program epic (2026-11-12)
    on Nov 16, 2026
  2. developing-today commented on Nov 16, 2026

    @developing-today
    Contributor
  3. 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
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged
    task: 19350 (repo-health-code-pilot, lane code-d)
    issue: #10705 — id(phase-14): announcement schema + signing in id-sync (#6287 breakdown 1/5)

    Inline triage (fresh-verified 2026-11-17; issue OPEN, no hard stops, parent #6287 CLOSED with its design merged in PR #10703):

    • Work kind: task/small-fix (bounded implementation slice from a settled design). Kind: kind/enhancement. Priority: priority/high — priorities-brief line 2, the ID program's design tracks carry Drew's standing fleet-weight order and this is a phase-14 implementation slice of it. Effort: effort/m. All four labels applied (app/id, design/id-phase-14, epic/id-program already present).
    • First concrete step: implement the section-3 announcement object in id-sync (field set + validation: expiry at most 7 days, monotone seq), then the BEP44-budget CBOR codec, then envelope sign/verify per the id: F12.17 trust and provenance — module signatures against an admin trust list #1069 pattern, with KAT vectors including the program-announcement variant.
    • Acceptance: schema + codec + verify with KAT vectors; over-budget, expired, and seq-regressing announcements rejected by construction/test (the issue's own acceptance).
    • Follow-on: fix packet enqueued as task 20693 (repo-health-code-pilot, kind small_fix, priority 20; packet preserved at hidden_files/19350-fix-packet-10705.json in the goal workspace). Queue was scanned first — no other live task for id(phase-14): announcement schema + signing in id-sync (#6287 breakdown 1/5) #10705. The implementation is a separate packet because it is a full crate-level build with crypto/wire-format care, outside this triage claim's scope.

    Disposition: task 19350 completes as triaged with follow-on task 20693 named. Issue #10705 stays OPEN for the fix.

  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — lane any-y, task 20693

    • event: parked (build capacity) — implementation complete, test run queued
    • task: task 20693 (small_fix, issue id(phase-14): announcement schema + signing in id-sync (#6287 breakdown 1/5) #10705 — id-sync announcement schema + CBOR codec + envelope signing, id(phase-14): Discovery, registry & federation — v1 — first-iteration design #6287 breakdown 1/5)
    • implemented: pkgs/id/crates/id-sync/src/announcement.rs (new, wired as pub mod announcement): the exact design section-3 field set on the id-core canonical CBOR profile; ed25519 sign/verify via the envelope pattern (signer must be the world key, refused at sign time otherwise); the BEP44 1,000-byte budget enforced at encode, sign, and decode; field caps (name 64 / description 200 / 8 tags); lifetime at most 7 days; expiry rejected at verify_at; seq regression rejected by check_seq_after; the program variant carries a content hash in place of the endpoint. Tests cover KAT vectors (world body + signature + packet, program body), roundtrips, over-budget, expired, over-lifetime, seq regression, field caps, tamper, wrong-key, and unknown/missing-field rejection.
    • committed: branch queue/20693-10705-id-sync-announcement, commit ddb7b18, pushed. Worktree on the laptop: ~/git/fleet/queue-20693-10705-id-sync-announcement.
    • remaining step (exact): run cargo test -p id-sync announcement (via ~/tools/fleet-build-lock, from pkgs/id). The four __KAT_* hex placeholders in the module tests must be pinned from the first run's assertion output; then re-run to green, open the PR, and merge under the standing criteria. A detached run of that test command is already queued on the laptop under fleet-build-lock and writes /tmp/test-20693.log — read it first; if it is absent or stale, re-run the command.
    • why parked: the test build waited ~50 minutes for a fleet build slot (two slots; holders are other lanes' long builds; laptop load average ~80). Parking with the resume condition above rather than holding the claim idle.
  6. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 17, 2026
  7. 13 remaining items

  8. removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 17, 2026
  9. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    state: resumed
    task: 20693
    lane: code-b
    worker: repo-worker-code

    Resumed by lane code-b (task 20693) from the parked state. Verified fresh: branch queue/20693-10705-announcement (commit a391aee) carries the announcement schema + CBOR codec + envelope signing implementation in pkgs/id/crates/id-sync/src/announcement.rs, and the detached print_vectors run in /tmp/ann-test.log passed with all six vectors printed.

    This pass: pinned the six KAT constants (WORLD_BODY/SIGNATURE/PACKET, PROGRAM_BODY/SIGNATURE/PACKET) from that verified run into the test module; the KAT tests assert them exactly, so any staleness would fail the run. Running cargo test -p id-sync now; on green, the branch is finalized and the PR opened.

  10. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · in-progress (resumed)

  11. removed
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 17, 2026
  12. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Closed: implemented and merged in PR #11305 (merge commit 313302d). Section-3 announcement schema, BEP44-budget CBOR codec, envelope signing/verification, and pinned KAT vectors (world + program variants), with rejection tests for over-budget, expired, seq-regressing, tampered, and foreign-key packets. Targeted cargo test -p id-sync green on the laptop build host (announcement module 10/10).

  13. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

    • Agent: repo-worker-code (lane code-j, OpenChamber scheduled lane)
    • Session / ID: ses_e5e164397d1ffe3H9iKMdCtOvZ, run 2026-11-17 07:40 CST (origin: openchamber-scheduled-lane)
    • Found via: claimed queue task 20693 fresh this run (unscoped one-queue claim, filter repo=code); resumed from the WIP branch the prior muse-lane claim opened and left parked.
    • Task: breakdown 1/5 of the id(phase-14): Discovery, registry & federation — v1 — first-iteration design #6287 discovery/registry/federation design — section-3 announcement schema + CBOR codec + envelope signing in id-sync. Complete.
    • Test evidence: branch merged up to current main (0e5f… check: clean, 98 commits), then cargo test -p id-sync under the fleet build lock on the laptop: full crate suite green (all unit/integration/doc suites ok), and the announcement module specifically 10/10 passed — kat_world_announcement_vectors, kat_program_announcement_vectors, packet_round_trips_through_bytes, a_tampered_announcement_does_not_verify, signing_with_a_foreign_key_is_refused, an_expired_announcement_is_void, seq_must_advance_per_world, over_budget_packets_are_rejected, construction_caps_are_enforced, print_vectors. Per .github/ci-policy.md (2026-11-13 ruling) no PR-level CI is a merge gate; the targeted local run is the verification venue.
    • Links: PR #11305 merged as 313302dbf1e03f919adb5a072c5f94c2d74a916d; pkgs/id/crates/id-sync/src/announcement.rs verified present on origin/main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)design/id-phase-14Design: id-phase-14 - all issues of this effort carry iteffort/mMedium: expected under 1 day of workepic/id-programReprioritization program epic (2026-11-12)kind/enhancementpriority/highImportant and time-sensitivestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions