Skip to content

id: implement program update channels + update flow into worlds (from #6293) #8546

Open

Description

@dezren39

Implement: program update channels + update flow into worlds

Implementation next step from the Phase-14 Program ecosystem v2 step #6293 (gallery & updates); design of record: doc/2026-11-11T05-24-00Z_design_id_program_ecosystem_v2/ (Program ecosystem — v2 design: gallery & updates), refining core decision D4 from doc/2026-11-10T21-24-00Z_design_id_program_ecosystem/. The registry side of v2 is issue #8281; this issue is the update machinery the v1 design explicitly deferred ("v1 records the policy field but builds no channel machinery — that is v2", v1 record §3).

Scope

  • Channel machinery behind the install record's policy field (v1 record §3 step 5): a channel is one author's version line for one program name — the (author key, name) pair of the D1 identity. pinned (the default) never changes without a fresh install decision; tracking opts an install into update discovery for exactly that line. A fork is a different line: lineage is history, not a channel (v1 record §4) — no install ever tracks a parent or a fork.
  • Update discovery: a newer bundle for the tracked line, arriving by any path — a registry (id: implement gallery registry protocol + reference registry service (from #6278) #8281), pkarr, a self-hosted registry, or a local file — is an update candidate. Discovery is pull-based, at world-owner action; no background auto-fetch for any policy.
  • Update application: the candidate runs the v1 import verification pipeline first (hash, F12.17 signature, F12.7 ABI fit, provenance check). Then the D4 envelope decides: an update that keeps the ABI descriptor, widens no required capabilities, and migrates state under the F12.9 (id: F12.9 program upgrade with state migration and rollback #1066) rules may apply under a tracking policy the owner chose; anything outside that envelope requires explicit world-owner approval, presented with the from→to identities, the author's changelog (signed manifest data; its absence is shown as "no changelog provided", never filled in), the ABI/capability delta, and the migration outcome. Rollback per F12.9 is part of the same act, and a failed update leaves the prior install untouched. Quotas re-check at apply time (F12.10, id: F12.10 fair scheduling and per-account quotas #1067).
  • A bundle whose (author key, name) differs from the installed line is not an update — it is a new install through the ordinary v1 path.

Dependencies

Acceptance

  • A tracking install discovers and applies an in-envelope update end to end; the install record after the act names the new D1 identity and preserves the policy.
  • An out-of-envelope update (ABI widened, capabilities widened, or migration failure) does not apply without explicit owner approval; the refusal names the envelope term it breached.
  • A pinned install is never modified by update discovery — discovery reports availability only.
  • A failed or refused update leaves the previously installed version running, and rollback restores it byte-identically (F12.9 oracle).
  • The same update offered via a local file and via a registry produces identical outcomes (path-independence oracle).

Activity

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

    @developing-today
    Contributor
  3. added this to the ID platform program milestone on Nov 12, 2026
  4. added
    kind/featureNew feature or capability request
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Nov 17, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    • Agent: queue worker (repo-worker-code), lane any-h
    • Session / ID: task 18688
    • Found via: queue claim
    • Verdict: real and current. Labels decided: kind/feature, priority/normal, effort/l (added this triage; app/id, epic/id-program already present).
    • Sequencing check: the registry side (id: implement gallery registry protocol + reference registry service (from #6278) #8281) is OPEN and itself status/blocked — but it is a sibling, not a dependency of this issue's first slice: id: implement program update channels + update flow into worlds (from #6293) #8546's update discovery is source-agnostic by design (a registry, pkarr, a self-hosted registry, or a local file), and the channel machinery sits behind the install record's policy field, which exists from v1. No dep-block.
    • Routing: the first slice — channel machinery with pinned (default) / tracking semantics keyed by the (author key, name) line, including the fork-is-a-different-line rule — is enqueued as task 20169 (small_fix, repo-health-code-pilot). Later slices of this issue: pull-based update discovery and the update application flow through the v1 import verification pipeline.
    • Acceptance for the follow-on: pinned installs cannot change lines without a fresh install decision; tracking is scoped to exactly the install's own line; policy tests green alongside the existing pkgs/id program/install suites.
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — channel slice BLOCKED on #8280: the install record it extends does not exist yet (task 20169, lane any-j, 2026-11-17)

    The channel slice's acceptance presupposes the v1 install record ("install records carry the channel policy with 'pinned' as the default") and the D1 program identity types from the signed-bundle work. Fresh verification this shift:

    • id: implement signed program bundle format + sideload import (from #6278) #8280 is OPEN and unlanded. Its triage of record (task 18623, 2026-11-17T03:54Z) split it into slice 1 (bundle format contract — payload, manifest stating the D1 identity, F12.7 ABI descriptor, F12.17 signature, fork lineage; task 20110) and slice 2 (sideload import + verification; task 20112, scoped 2026-11-17T10:19Z). Neither slice's output is in the tree.
    • Code check (this shift, origin/main): no install-record type exists in pkgs/id/crates — no InstallRecord / ProgramInstall record, no update-policy or channel types; the only program-install surface is the ProgramInstalled world event (module hash) in id-worlds. The v1 record's policy field is a design statement (v1 design §3), not landed code.
    • Building the channel machinery now would mean inventing the install record and D1 identity types inside this slice — exactly the surface slices 20110/20112 are defining — and the two would collide or diverge.

    Action: task 20169 is blocked on #8280 (--blocked-by-issue developing-today/code#8280). Unblock condition: #8280 slice 2 (task 20112) lands the install record with its policy field and D1 identity; the channel slice then implements pinned-default immutability, tracking scoped to the (author key, name) line, and the fork-is-a-different-line rule against that record, with the packet's three tests. The rest of #8546 (discovery, D4-envelope application, rollback) remains beyond this slice regardless.

  7. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 17, 2026
  8. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Claimed task 20169 and wrote its first checkpoint with origin: openchamber-scheduled-lane. Fresh revalidation changes the previous dependency status: #8546 is OPEN; #8280 is CLOSED status:done; PR #11498 (bundle format/export/verify/fork) and PR #11499 (sideload import/provenance) are MERGED. Current main contains ProgramInstallRecord and the D1 identity/provenance types, so the prior #8280 blocker is cleared. No open PR for this slice was found. I am resuming the pinned/tracking channel policy against the landed record, keeping the scope to this slice.

  9. removed their assignment
    on Nov 20, 2026
  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Merged work, still open. Every pull request that references this issue has merged (#8547, #11725) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.

    status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").

    By: Claude, 2026-11-22 flow review.


    Generated by Claude Code

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/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)queue/claimedQueue worker lifecycle statestatus/in-progressQueue worker lifecycle statework/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions