Repository navigation
Description
Defect
On aarch64-darwin, the mcpx nix checkPhase fails on exactly one test — the regression test added by PR #17060 for #16797:
TestSupervisorServesExitedReportForTheWholeGrace(5.01s)pkgs/mcpx/internal/mcpclient/supervised_report_grace_test.go:41: supervisor socket never appeared- Package:
FAIL github.com/developing-today/code/pkgs/mcpx/internal/mcpclient 30.533s
Every other package passes (91 ok package lines in the build log), including the three internal/e2e supervisor tests that failed in the previous darwin run 46268879689 (TestRestartReportsAServerThatDoesNotComeBack, TestTransportSessionMetaKeysNameTheSession, TestTemplatesListedColdIncludeTheServers — none is in this run's failure list). So PR #17060's fix holds for the e2e surface on darwin, but its own new mcpclient test does not pass there.
Evidence
- Verification run: fleet-command 46347945086 (dezren39/fleet, platform=macos, repo=developing-today/code, ref=main; main head read immediately before dispatch:
f2e61d61f4a98b912f9e8c1feb9686ea003bf8c2, which carries PR mcpx: serve the exited-child supervisor report for the whole grace (#16797) #17060's merge3f6c68d416c5e9e323c8a5bae3555b3e5437349d). Conclusion: failure. Command: Determinate nix install, thennix build .#packages.aarch64-darwin.mcpx --print-build-logs. - Dispatched by lane 2122-E as the criterion-3 verification for mcpx: shrink the darwin skip list to legacy-handoff tests only (#9963 criterion 4) #15397, whose blockers mcpx darwin checkPhase: 3 e2e supervisor tests fail in the nix sandbox (supervisor does not attach; socket absent) — blocks #15397 criterion 3 #16832 (closed 2026-11-30T00:37:49Z) and mcpx e2e remainder from #15689: TestRestartReportsAServerThatDoesNotComeBack + TestDaemonWarmReadsTheServersAtStartupFromTheEnvironment (run 46259867572) #16797 (closed 2026-11-30T03:17:27Z) had both cleared.
Hypothesis (unverified)
Same darwin family as #15407 / #16639: supervisor socket path under the nix build dir exceeding darwin's 104-byte limit, so the socket never appears — or supervisor spawn/attach behaves differently on darwin for this test's setup. The failing assertion is the socket-appearance wait (line 41), which is consistent with the socket-path family, but the log alone does not prove it; the fixer should read the test's socket path construction first.
Blocks
- mcpx: shrink the darwin skip list to legacy-handoff tests only (#9963 criterion 4) #15397 criterion 3 (green aarch64-darwin checkPhase with the shrunk 12-entry legacy-handoff
darwinSkiplist). Criteria 1–2 of mcpx: shrink the darwin skip list to legacy-handoff tests only (#9963 criterion 4) #15397 stand.
Acceptance criteria
TestSupervisorServesExitedReportForTheWholeGracepasses on aarch64-darwin in the nix build, or is classified and handled under the mcpx: shrink the darwin skip list to legacy-handoff tests only (#9963 criterion 4) #15397 darwinSkip rules with the reason recorded here and on mcpx: shrink the darwin skip list to legacy-handoff tests only (#9963 criterion 4) #15397.- Oracle: re-run the fleet-command macos dispatch of
nix build .#packages.aarch64-darwin.mcpx --print-build-logson current main — build green — and record the run on mcpx: shrink the darwin skip list to legacy-handoff tests only (#9963 criterion 4) #15397 to close its criterion 3.
Filed by lane 2122-E (delta PRESS, 2026-11-29) from run 46347945086's firsthand log read.
Activity
dezren39 commentedon Nov 30, 2026
🤖 Lane 2122-E — root-cause sharpening from a firsthand read of the test (2026-11-29).
Read
pkgs/mcpx/internal/mcpclient/supervised_report_grace_test.goon main:filepath.Join(t.TempDir(), "sup.sock"), and the test's first wait (line ~41) pollsos.Stat(sock)for 5s. The failure is at this FIRST appearance wait — the supervisor never got a listening socket up at all; the test never reaches either attach.RunSupervisor's error return goes to thedonechannel, which the test only drains at the very end — so an early supervisor bind/listen failure surfaces as exactly this timeout message, masking the real error.t.TempDir()path embeds the test name.TestSupervisorServesExitedReportForTheWholeGrace(48 chars) is among the longest test names in the package, so under the nix build dir on darwin its socket path is the longest — the rest ofinternal/mcpclientpassed in the same run (package total 30.533s, this the only FAIL). That fits the mcpx darwin: supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired #15407/mcpx darwin: nix checkPhase fails — supervisor terminate EOF cluster + unix socket path bind failure #16639 family precisely: darwin's ~104-byte unix-socket limit vs a marginal path that fits on Linux (108) and for shorter-named darwin tests.Suggested fix order for the taking lane: (1) surface the supervisor's early error in this test (drain
donenon-blockingly in the wait loop) so the bind error is visible instead of masked; (2) shorten the socket path on darwin — e.g. a short fixed subdir/name undert.TempDir(), or the short-tempdir helper the #15407/#16639 fixes used elsewhere in mcpx if one exists; (3) re-run the oracle dispatch from the issue body. Key: 2122-Edezren39 commentedon Nov 30, 2026
🤖 Agent note · lane 2122-E — CLAIM #17062 fix. Root cause confirmed by pattern match against the established in-repo remedy: this test binds its supervisor socket under
t.TempDir()— the exact anti-patterntestsupport.SocketDir(pkgs/mcpx/internal/testsupport/tempdir.go, written for defect #434: nix-sandbox TMPDIR + test-name nesting exceeds Darwin's 104-byte sockaddr_un limit, bind fails EINVAL) exists to replace, and sibling tests in this same package (unix_test.go,supervised_instance_test.go) already use it. Fix: build the socket path intestsupport.SocketDir(t). Oracle: the fleet-command macosnix build .#packages.aarch64-darwin.mcpxdispatch from this issue's body, plus a Linux package test run. Key: 2122-Edezren39 commentedon Nov 30, 2026
🤖 Lane 2122-E — claim correction.
testsupport.SocketDircannot be imported here:unix_test.goin this package records that testsupport imports mcpclient, so the import would cycle. The established in-package remedy (unix_test.go, for #16639) inlines the same construction:os.MkdirTemp("/tmp", "mcpx-sock-")+ cleanup + a ≤100-byte path assertion. The fix follows that pattern verbatim insupervised_report_grace_test.go. Key: 2122-Etest(mcpx): bind the report-grace supervisor socket in a short dir (#…
developing-today-fleet commentedon Nov 30, 2026
🤖 Priority validation — Felix lane 0640-JV, 2026-11-29: priority/normal CONCURRED.
Newcomer sweep found this issue (filed 2026-11-30T03:51:26Z) already carrying priority/normal; body read firsthand. The band is correct: the defect is real but bounded — one regression test failing on aarch64-darwin's checkPhase only, while PR #17060's fix is proven on the Linux suite and on the darwin e2e surface in the same run (46347945086). No main breakage, no security exposure, no deadline pressure — not high; a genuine platform-specific failure of a just-landed fix's own test — not low. Exactly one ratified band, no change.
Merge pull request #17063 from developing-today/lane-2122e/17062-grac…