Skip to content

id: implement Programs as websites in id serve (design #2146) #5537

Closed

Description

@dezren39

Implementation of an ID design that has not landed yet (partial implementation as of the 2026-11-04 inventory).

Design issue: #2146
Design doc: doc/2026-11-01_design_id2146.md (in developing-today/code)

Acceptance, in brief: programs served as websites in id serve per the design's model.
Current state: app serving exists; the full programs-as-websites model is incomplete.

The design documents govern. If implementation shows the design is wrong or incomplete, file a design amendment rather than silently diverging.

Scope: pkgs/id and its tests. Filed 2026-11-04 under Drew's order to begin work on all not-implemented ID designs. Inventory: workspace/goals/keep-the-four-repos-healthy/files/id-design-implementation-inventory-2026-11-04.md (in the fleet workspace).

Activity

  1. developing-today commented on Nov 4, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: picked up
    task: 9604 (small_fix; queue repo-health-code-pilot; worker repo-worker-code; lane 9aca43b4-5439-4939-9f71-323f5d32521b — OpenChamber scheduled lane; attempt 1)
    by: repo-worker-code

    Fresh verification: issue #5537 is OPEN with no hard-stop labels or assignee. Design issue #2146 is CLOSED, and no open PR titled “Programs as websites” or matching #5537 was found. The task is scoped to pkgs/id and tests, following doc/2026-11-01_design_id2146.md; no design amendment is indicated yet.
    next: inspect the settled design, existing id serve implementation, and task-specific worktree state; implement only the documented gap and run targeted tests.

  3. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  4. added
    queue/needs-reviewQueue task finished and is awaiting review
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 4, 2026
  5. added a commit that references this issue on Nov 4, 2026
  6. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  7. 228 remaining items

  8. added a commit that references this issue on Nov 17, 2026
  9. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — phase 4 landed: PR #11284 MERGED (merge 6c20bab), queue task 19857 complete as fixed_merged

    • Agent: repo-worker-code (Muse lane code-a)
    • Session / ID: queue task 19857
    • State: done

    What landed (PR #11284, 3 files, +360/−21): segment-boundary dispatch already existed (publication_mount_layer resolves via PublicationMounts::lookup(), longest whole-segment prefix, program-only router scoped under the prefix) — the missing phase-4 layer was validation/conflict handling, now in:

    • id-web: canonicalize_mount_path() — rejects relative paths, empty/./.. segments, trailing slash except root, whitespace/control/?/#/\.
    • id-web: reserved Explorer-route shadow refusal at mount time (RESERVED_EXPLORER_ROUTES, either-direction segment-boundary relation). The acknowledged override remains the id(serve): dynamic publish/unpublish — bind and unbind programs and pages to ports, interfaces, and paths at runtime #2147 publication operation only — not implemented here, per packet scope.
    • id-web: PublicationMounts::mount() returns Result<()> — a path mounted to a different world is refused (table unchanged on error); same-world re-mount idempotent; nested mounts legal.
    • id-cli: ServeMountSink propagates the result (publication manager already reverts its persisted entry on sink error).

    Tests: cargo test -p id-web 704 passed / 0 failed; cargo test -p id-cli 686+7+7 passed / 0 failed (verified at base c91a8ba; the three touched files are byte-identical on current main). New tests cover the canonical accept/reject matrices, the reserved-route matrix, different-world remount refusal, and sibling-mount segment isolation. Codex review was quota-blocked (two attempts, zero findings produced); CodeRabbit rate-limited with no findings.

    Residuals, routed not dropped:

    Issue #5537 stays open as the program tracker; phases 1–4 of design #2146 are now landed.

  10. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — lane any-l · task 19857 · state: stood down (task completed by the owning session)

    I claimed task 19857 at 12:05Z after lane any-n's capacity park, resumed from the shared worktree (preserved and committed the sub-session's phase-4 work), and was mid-verification when the owning session (the 11:20Z claim lineage) completed the task at 12:35Z: PR #11284 merged (6c20bab1de4bf5d7431f182447a477e20f3b22be), with cargo test -p id-web (704 passed) and -p id-cli (686+7+7 passed) recorded in the completion. My next heartbeat returned the verdict "not claimed by repo-worker-code" and I stopped work on the task per protocol. My duplicate local commit of the same implementation was not pushed.

    One acceptance item from the task packet was not in PR #11284: the unauthorized/authorized session round-trip under a mount test (and router-level sibling-mount isolation). I had both written against the merged tree (diff vs origin/main: +121/−0, tests only), so they land as a small follow-on PR from branch queue/5537-mount-session-tests rather than being dropped. The WebSocket-under-mount residual is already owned by issue #11290 / task 20759.

  11. added a commit that references this issue on Nov 17, 2026
  12. removed their assignment
    on Nov 20, 2026
  13. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Merged work, still open. Every pull request that references this issue has merged (#5590, #5606, #6809, #11284, #11300) 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

  14. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Done check against current main: the #2146 design criteria for #5537 are covered by merged PRs #5590, #5606, #6809 (phases 1–3), #11284 and #11300 (phase 4 mounts, validation/conflicts, authorized session round-trip and sibling isolation). The remaining mounted WebSocket round-trip was completed by #11482; its merged test and documented verification are on #11290. Runtime publication integration (design phase 5) belongs to companion #2147, which is closed with the live publish/unpublish acceptance walk recorded there. No #5537 acceptance work remains, so closing this tracker per the Nov 22 done-check note.

  15. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    state: closed (done-check close-out)
    lane: archer, worker: muse (Lane HG)

    The done check recorded on this issue at 2026-11-23T05:59:10Z concluded "No #5537 acceptance work remains, so closing this tracker" — but the issue state never flipped. I re-verified the verdict first-hand just now and am completing the close:

    Closing as completed.

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

    effort/lLarge: multi-day or open-ended; expect staged check-insepic/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