Skip to content

mcpx: Phase 3 of #1384 — supervised stdio by default + lifecycle hygiene #9963

Open

Description

@dezren39

Phase 3 of epic #1384 — supervised by default + lifecycle hygiene

Parent design: #1384 (adopted by Drew 2026-10-27: per-instance mcpx supervisor replaces the stdio takeover handoff). Depends on Phase 2 (takeover becomes attach for supervised instances), filed alongside this issue from #1384.

Scope

  • Supervised stdio becomes the default; the legacy stdio handoff remains only as the fallback path.
  • Adopt-or-reap scan on daemon start: running supervisors for configured instances are adopted; orphaned supervisors are reaped with the reap logged.
  • mcpx restart operates through the supervisor (child PIDs survive a daemon restart by default).
  • Protocol-version refusal between daemon and supervisor is surfaced in status, not silently worked around.
  • Darwin build/test parity: shrink mcpx: takeover/upgrade/handoff unsupported on darwin; Linux-only tests break the darwin build #237's skip list to the legacy handoff only.

Acceptance criteria

Filed by fleet triage (task 15159, lane code-d, 2026-11-14) per #1384's acceptance item 2: implementation issues exist for each phase.

Activity

  1. added
    kind/featureNew feature or capability request
    priority/normalOrdinary priority (the default)
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    epic/mcpx-platformReprioritization program epic (2026-11-12)
    on Nov 14, 2026
  2. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage: valid phase issue, correctly gated on Phase 2

    • Agent: repo queue worker (repo-worker-code), lane code-a
    • Session / ID: task 16788

    Verified fresh (2026-11-14):

    Routing: no packet enqueued for Phase 3 — it unblocks when #9962 lands, and #9962 is already queued ahead of it (the queue's priority order will surface it first). Issue #9963 is labeled status/blocked + queue/blocked to record the gate; when #9962 closes, a triage pass can flip it back to queued and packet it against the landed attach semantics.

  4. added
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    and removed on Nov 14, 2026
  5. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — task 16880 blocked on dependency (lane any-b)

  6. 4 remaining items

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

    @dezren39
    MemberAuthor

    agent-note:v1
    state: picked_up
    task: 17484
    lane: any-d
    worker: repo-worker-code

    Picked up task 17484 (mcpx Phase 3, issue #9963) — lane assignment direct.
    Revalidated fresh: issue #9963 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels; gate issue #9962 CLOSED; no competing PR found.
    Next: inspect the Phase 2 supervisor code in pkgs/mcpx, implement supervised-by-default + adopt-or-reap + restart-through-supervisor + protocol-refusal-in-status + darwin skip-list shrink.

  9. added a commit that references this issue on Nov 16, 2026
  10. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    state: done (implementation) — task 17484, lane any-d, 2026-11-16

    PR #10767 merged (merge commit 41fecc2): Phase 3 landed.

    • Supervised stdio by default: Extras.Supervised is a *bool; parse materializes the default for stdio servers in file-loaded configs; "supervised": false is the opt-out into the legacy direct-spawn path. Aliases inherit only the supervised bit (per-view extras stay the alias's own).
    • Restart through the supervisor: new restart/terminate supervisor handshake actions; Pool.Restart restarts supervised children through their supervisor (new child PID, supervisor + socket survive).
    • Adopt-or-reap scan on daemon start (ScanSupervisorSockets + Registry.ReapOrphanedSupervisors): configured supervisors are adopted (Phase 2 path), orphans are reaped with the reap logged, refusals logged and left in place, stale sockets removed.
    • Protocol-version refusal during adoption is recorded as the pool's last error, so mcpx status names it.

    Acceptance: checkboxes 1–3 are covered by new tests (config default + opt-out, pool fresh-daemon acceptance, scan adopt/reap/stale, restart PID change, refusal in status). Suites green on the laptop: config, mcpclient, pool, daemon, buildcheck, testsupport; e2e supervised takeover test passes. Codex review produced no findings (its run failed on Codex usage limits; disposition recorded on PR #10767).

    Remaining: checkbox 4 (#237 darwin skip list). All four affected test packages cross-compile for darwin/arm64 (verified), but unskipping needs a darwin runtime run, which this linux lane cannot do. Enqueued as task 17495 (capability-routed: needs a darwin runner), dedupe repo-health:v1:fix:developing-today/code:issue:237. Issue #9963 stays open for that one item.

  11. removed their assignment
    on Nov 20, 2026
  12. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Merged work, still open. Every pull request that references this issue has merged (#10767, #11343) 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/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/mcpx-platformReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions