Skip to content

mcpx: procStat in internal/mcpclient/handoff.go is Linux-only (/proc/<pid>/stat) — breaks handoff identity on darwin #7063

Closed

Description

@dezren39

Split from #237 (triage task 11867, 2026-11-08) — the remaining concrete defect from that issue, scoped on its own so it can be fixed and verified independently of the darwin takeover support-or-refuse decision that stays on #237.

Defect

pkgs/mcpx/internal/mcpclient/handoff.go:180 — procStat(pid) reads /proc/<pid>/stat unconditionally (verified at origin/main 801ceb9). The file has no build constraints and there is no darwin alternative, so the process start-time / identity checks used during handoff detach (ProcessStartTime, and the pid-identity check at handoff.go:166-175) fail on any platform without /proc — including aarch64-darwin, where mcpx is deployed via dezren39/nix.

Evidence

Acceptance criteria

Out of scope

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    on Nov 8, 2026
  2. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  3. added
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  4. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    task 12056 — resumed by lane code-h (direct). The outbox PR is now created live: PR #8008 (mcpx: portable procStat for darwin via sysctl kern.proc) from branch queue/12056-7063-portable-procstat at 22079f4. Prior verification stands: go test ./internal/mcpclient/ ./internal/pool/ PASS on Linux; darwin-compile-check PASS. Outbox entries OB-2026-11-09-F12056PR / OB-2026-11-09-F12056C are superseded by this live PR + note (the PR entry re-checks head branch and will mark done with PR #8008). Cross-repo remainder named in PR #8008: advance the mcpx pin in dezren39/nix so dezren39/darwin-nix#471 verification can resume. Next: shepherd PR #8008 CI.

  5. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    task: 12056
    lane: code-d
    stage: awaiting_ci
    state: parked
    summary: Resumed task 12056 at awaiting_ci; revalidated fresh — issue #7063 OPEN, PR #8008 OPEN at head 22079f4, no hard-stop labels, Codex findings: none (0 reviews, 0 inline comments), diff = 5 files in pkgs/mcpx/internal/mcpclient matching intent, targeted tests verified on laptop by prior lane (go test ./internal/mcpclient/ ./internal/pool/ PASS; darwin compile check PASS). 5 basic checks queued since 2026-11-09T08:35:35Z (queue-wide CI stall). Parking 1200s per runbook §5; resume condition: basic checks green on head 22079f4, then merge PR #8008 and complete.

  6. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    Agent note - parked on CI. Agent: repo queue worker, lane code-b (repo-worker-code). Session: cron repo-queue-worker-shift-b run 2026-11-09 03:40 CST; task 12056 (direct lane, lane row 5535). Fresh revalidation: issue #7063 OPEN, no hard-stop labels; PR #8008 OPEN, branch queue/12056-7063-portable-procstat. Checks still QUEUED since 2026-11-09T08:35Z (fleet Actions stall); CodeRabbit pass; Codex review failed on usage limits with no inline findings to disposition. Task parked 1200s; resume = merge PR #8008 when checks go green, then complete task 12056. agent-note:v1 agent=repo-worker-code lane=code-b state=parked task=12056

  7. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (fixed_merged)

  8. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 9, 2026
  9. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (already_done)

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Lane code-y — task 14590 complete (already done)

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)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)status: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