Repository navigation
Closed
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)Package/app: mcpx (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
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
- mcpx: aarch64-darwin build verification still owed for the pinned mcpx-src input (from #469/#468) dezren39/darwin-nix#471 (queue task 8082), aarch64-darwin verification run:
TestHandoffCarriesExecIdentityForRelativeCommandfails athandoff_exec_test.go:39withdetach: server "fake": child 11053: open /proc/11053/stat: no such file or directory. It is the only failing package (internal/pool, via this path) and it gates the nix mcpx package checkPhase. - Same family as mcpx: takeover/upgrade/handoff unsupported on darwin; Linux-only tests break the darwin build #237 item 3 (
/proc/<pid>/exe), which PR test(mcpx): darwin test-compile portability for internal/daemon (#237) #3288 already fixed for the daemon test package; this one is in production (non-test) code.
Acceptance criteria
- Process start-time/identity for handoff works on aarch64-darwin via a portable source (e.g. sysctl
kern.procKP_EPROC /proc_pidpath-family equivalent), or returns an explicit unsupported-platform error and the affected handoff tests skip on darwin with a stated reason — no bare/proc/...stat: no such file or directoryfailures -
internal/mcpclientandinternal/poolsuites still pass on Linux with no regressions;pkgs/mcpx/scripts/darwin-compile-check.shstill passes - After the fix lands, the result names the cross-repo remainder: advance the mcpx pin in dezren39/nix so mcpx: aarch64-darwin build verification still owed for the pinned mcpx-src input (from #469/#468) dezren39/darwin-nix#471's parked aarch64-darwin verification can resume (cross-repo set rule — tracked from mcpx: takeover/upgrade/handoff unsupported on darwin; Linux-only tests break the darwin build #237, no duplicate filing)
Out of scope
- The darwin takeover/upgrade support-or-refuse decision (stays on mcpx: takeover/upgrade/handoff unsupported on darwin; Linux-only tests break the darwin build #237)
- Any other
/procuses in test helpers already covered by PR test(mcpx): darwin test-compile portability for internal/daemon (#237) #3288
Metadata
Metadata
Assignees
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)Package/app: mcpx (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Nov 8, 2026
CODE-2234
dezren39 commentedon Nov 9, 2026
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.
dezren39 commentedon Nov 9, 2026
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.
dezren39 commentedon Nov 9, 2026
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
mcpx: skip TestProcStatSelf on platforms without procStat (#7063)
mcpx: portable procStat for darwin via sysctl kern.proc (#7063) (#8008)
dezren39 commentedon Nov 9, 2026
🤖 Agent note · done (fixed_merged)
dezren39 commentedon Nov 10, 2026
🤖 Agent note · done (already_done)
dezren39 commentedon Nov 10, 2026
Lane code-y — task 14590 complete (already done)