Skip to content

id: implement signed program bundle format + sideload import (from #6278) #8280

Closed

Description

@dezren39

Implement: signed program bundle format + sideload import

Implementation next step from the Phase-14 Program ecosystem core topic #6278; design of record: doc/2026-11-10T21-24-00Z_design_id_program_ecosystem/ (Program ecosystem — share, fork, gallery: first-pass research + design), decisions D1–D2.

Scope

Acceptance

  • Bundle round-trip: export → sideload import into a fresh world yields a runnable install whose recorded identity, hash, signature, and lineage match the bundle.
  • Tampered payload or manifest fails verification and is refused with the failing check named.
  • Import works fully offline / local-only.

Activity

  1. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 10, 2026
  2. developing-today commented on Nov 10, 2026

    @developing-today
    Contributor
  3. added this to the ID platform program milestone on Nov 12, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    [agent: repo-worker-code / lane code-a, task 18623] Triage of #8280: all gates closed, nothing built yet — routed in two slices.

    Fresh checks (2026-11-17): issue OPEN (app/id, epic/id-program; no hold labels) with only its filing comment. Gates verified CLOSED today: #1069 (F12.17 module signatures — machinery in pkgs/id/crates/id-sync, artifact.rs/envelope.rs), #1064 (F12.7 ABI specification), #6278 (the Phase-14 core topic). No program-bundle code exists in pkgs/id/crates yet; the design of record is doc/2026-11-10T21-24-00Z_design_id_program_ecosystem/ (D1–D2).

    Routing:

    • Slice 1 — bundle format + export/verify library (single-file bundle: payload, manifest, F12.17 signature, F12.7 ABI descriptor, fork lineage; library-level round-trip + tamper refusals named by check, fully offline): enqueued as small_fix task 20110.
    • Slice 2 — sideload import into a world (host-ABI check + install-record provenance; the world-level round-trip in id: implement signed program bundle format + sideload import (from #6278) #8280's acceptance): follow-on triage enqueued immediately after this task completes (standard triage key), to scope it against the landed slice-1 format.
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Slice 2 scoped — task 20112 (follow-on triage from task 18623)

    Slice 2 is scoped against slice 1's format contract (task 20110: single-file bundle — payload, manifest stating the D1 identity, F12.7 ABI descriptor, F12.17 signature over manifest + payload, fork lineage — plus the export/verify library) and the design of record (doc/2026-11-10T21-24-00Z_design_id_program_ecosystem/, D1/D2/D4):

    • Import: read a bundle from a local file into a world, no server/gallery, fully offline (D2).
    • Verification at import via slice 1's library: F12.17 signature + content hash against the D1 identity (author public key, name, version, content hash); refusals named by the failing check.
    • ABI fit: the bundle's F12.7 descriptor checked against the target world's host ABI; mismatch refuses, naming the divergence.
    • Provenance rule (D1): same (author, name, version) with a different hash is a provenance violation — surfaced, never silently resolved.
    • Install record (D4): names the D1 identity, the hash installed, the bundle's lineage, and the install policy (default pinned).
    • Acceptance: the world-level round-trip — export → sideload into a fresh world → runnable install whose recorded identity/hash/signature/lineage match the bundle — plus tests for the four refusal paths.

    Routing state: the slice-2 fix packet is written and validated (packet valid (repo-task/v1)), but it cannot be enqueued yet — the standard fix dedupe key for this issue is held by slice 1's task 20110 (queued), and the broker dedupe-hit confirms it. The packet (which itself declares depends_on: [20110]) is preserved in the goal workspace (hidden_files/packet-8280-slice2.json), and task 20112 is blocked on 20110: when slice 1 completes, the packet is enqueued and this triage completes naming the new task.

  6. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up (already completed on GitHub)

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)epic/id-programReprioritization program epic (2026-11-12)status:done

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions