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/id
    on Nov 11, 2026
  2. developing-today commented on Nov 11, 2026

    @developing-today
    Contributor
  3. added
    epic/id-program
    on Nov 12, 2026
  4. added this to the ID platform program milestone on Nov 12, 2026
  5. added
    kind/feature
    priority/normal
    effort/l
    on Nov 17, 2026
  6. 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.
  7. 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.

  8. added
    queue/blocked
    status/blocked
    work/assigned
    and removed
    status/blocked
    queue/blocked
    on Nov 17, 2026
  9. 5 remaining items

  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

  11. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Verify-and-route pass, lane oc-code-08, queue task 22900's sibling pass (2026-11-24, second pass, #14158).

    Verdict: issue stays OPEN. Partly landed: PR #11725 (merged) added pinned and tracking program update channels. Remaining: the update flow into worlds (the scope in the issue body). No open PR covers it.

    Route: a scoped follow-on is needed for the update flow. Sizing: effort/l, so it should be staged; it is not something to implement inside a verify packet. Left for a feature-slice run.

  12. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Verify-and-route pass, lane code-h, queue task 21917 (2026-11-24, second pass, #14158).

    Verdict: issue stays OPEN. Confirmed fresh: PR #11725 merged 2026-11-18 (pinned/tracking channels). #8280 is closed; #8281 (registry) is open. No open PR and no separate follow-on issue covers the update flow into worlds (discovery, in-envelope apply, owner-approval gate, rollback, apply-time quota check).

    Route: no new packet filed; this issue is the scoped tracker. Next step is a feature-slice run on the update-flow scope in the body, delivered as one vertical slice with a failing-first test. Registry-fed discovery stays blocked on #8281; file/local discovery does not.

  13. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Claimed by lane 2, 2026-11-26T07:52Z

    Taking the first slice of the update flow: a pure program_update module in id-worlds with:

    • discovery over offered records: verified, same line, newer;
    • the D4 envelope decision (ABI, capability widening, migration probe; pinned always needs approval);
    • the update_wrong_line and not-newer refusals;
    • the policy-preserving install record.

    Apply-time quota re-check, install-event write and update history stay for later slices.


    Generated by Claude Code

  14. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    First slice landed in #15580: a pure program_update module in id-worlds that checks an offered bundle is the same line and newer, names envelope breaches (abi_change, capability_widening, migration_failure), applies in-envelope updates for tracking installs and asks approval otherwise, and discovers verified candidates. Wiring it into install and registry flows is still open.


    Generated by Claude Code

  15. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Triage verdict — task 24805 (lane code-g, 2026-11-26)

    Active work in progress: no new task filed; issue stays open with its current holders.

    Fresh check:

    Next: done check against the acceptance criteria once wiring lands; close only when all four boxes pass. No follow-on filed — would duplicate the active lane-2 slice run.

  16. developing-today commented on Nov 27, 2026

    @developing-today
    Contributor

    Fresh collision check: the latest triage note on this issue (task 24805, lane code-g, 2026-11-26T23:37Z) says lane-2 work is actively wiring the update flow, and leaves the issue open until that wiring lands. No newer completion note or PR has superseded it. Per the task first-step rule, I am standing down without code or worktree edits and releasing this reconciliation claim.

  17. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Fresh triage — scheduled lane oc-code-08, queue task 25275 (2026-11-27).

    Verdict: issue stays OPEN; no small fix or duplicate follow-on filed. Fresh check against origin/main (dde2235): PR #15580 is merged and adds id-worlds::program_update for candidate discovery and envelope decisions, but it explicitly leaves the apply act to later work. The module is not wired into install/world update flows; acceptance items for end-to-end apply, install-event/history, rollback and path-independence are not satisfied. No open PR covers the remaining wiring.

    The latest issue note still records an active lane-2 slice taking the update-flow wiring. I am not creating a parallel task while that work is recorded in progress. #8281 is now CLOSED, but file-based/source-agnostic update paths mean it is not a blocker for remaining work. Recheck #8546 after the active slice reports or lands; keep it open until the full acceptance checklist passes.

  18. dezren39 commented on Nov 27, 2026

    @dezren39
    MemberAuthor

    Triage verdict — work-loop lane 2233-A-G, queue task 25808 (2026-11-26).

    Premise check (issue + all comments read): this reconciliation draw duplicates the standing disposition. #8546 is actively owned — lane 2 claimed the update-flow wiring slice 2026-11-26T07:52Z, slice 1 landed via PR #15580 (merged), and two lanes (oc-code-07, oc-code-08, tasks 25275) stood down within the last hours citing that active work. Remaining scope (wiring into install/registry flows, apply-time quota re-check, install-event write, update history) is effort/l feature work in progress, not a small fix.

    Verdict: issue stays OPEN under its recorded ownership; no parallel task or PR from this lane. Queue task 25808 completed with this verdict.

  19. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Triage verdict — task 26092 (lane oc-code-03, 2026-11-27)

    Issue stays OPEN under recorded ownership; no new task filed; no code from this lane.

    Fresh check (~05:15Z):

    Recommend: leave open; next reconciliation draw should re-check lane-2 wiring completion.

  20. removed
    queue/claimed
    on Nov 28, 2026
  21. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

    • STRENGTHS: Implementation issue with a named design of record (doc/2026-11-11T05-24-00Z_design_id_program_eco…, from Phase-14 step id(phase-14): Program ecosystem (share, fork, gallery) — v2 — outline: gallery & updates #6293) and a defined scope (program update channels + update flow into worlds, pkgs/id).
    • GAPS: None structural. status/in-progress is accurate and the thread carries the working state.
    • FIXES I APPLIED: None needed — priority/normal + kind/feature stand.
    • REMAINS: Nothing — implementation continues per the design of record; this closes when the update channels + flow land with their tests.
  22. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: none material.

    Strengths: detailed body with context a picker-up can start from; linked to its epic/programme via epic/* labels; ## Acceptance section present (in-substance equivalent).

    Blocker: dependencies section in the body: registry-fed discovery rides #8281; file/registry-free discovery must not wait for it.

    Actions taken: Verified complete — no changes needed.

    Priority: priority/normal retained — matches the work's urgency as evidenced on the issue; no band change.

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/ideffort/lepic/id-programkind/featurepriority/normalstatus/in-progresswork/assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions