Skip to content

mcpx darwin checkPhase: 3 e2e supervisor tests fail in the nix sandbox (supervisor does not attach; socket absent) — blocks #15397 criterion 3 #16832

Not planned

Description

@developing-today-fleet

Filed by Felix lane 0640-R from a firsthand verification run, 2026-11-29.

Evidence. fleet-command run 46268879689 (developing-today/fleet, platform=macos, ref=main at dispatch 2026-11-29T13:47Z): nix build .#packages.aarch64-darwin.mcpx --print-build-logs. Every mcpx package passes checkPhase except internal/e2e (1414.764s), which fails with exactly three tests:

  1. TestRestartReportsAServerThatDoesNotComeBack (20.29s) — cliops_test.go:584 'the failure should carry the server's stderr': the demo server fails to start with 'supervised transport for demo: supervisor did not attach within 20s: dial unix /nix/var/nix/builds/nix-3820-2596226930/mcpx-sup/ce8fdebc6f033d45/sup-2a97516c354b6884.sock: connect: no such file or directory', then 'mcpx: 1 instance(s) failed to come back'.
  2. TestTransportSessionMetaKeysNameTheSession (0.35s) — http_transport_effect_test.go:846 oracle failure: 'server "demo" is in restart cooldown for 1.943s: server "demo": supervisor refused attach: already attached'.
  3. TestTemplatesListedColdIncludeTheServers (0.43s) — passthrough_test.go:330: on the first ask the resourceTemplates result contains only the mcpx artifact template; the demo server's templates are missing.

Context. The EOF/temp-file class that previously masked these tests on darwin is fixed (#16639, PRs #16654 + #16641): this run shows no EOF failures anywhere. #16639's close-out already noted three e2e tests red on darwin as pre-existing and out of its scope; this issue is that cluster, now with sandbox evidence. Related: #15407 (CLOSED — 'supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired') fixed defects in this same supervisor machinery; whether today's attach failure is a regression of that fix, a nix-sandbox-specific variant (socket root under /nix/var/nix/builds/...), or test cross-contamination (failures 2–3 may cascade from the same broken supervisor lifecycle) is for the fixing lane to determine — the evidence above is the starting point. Do not paper over with darwinSkip additions: #15397's remaining scope is legacy-handoff tests only.

Effect. packages.aarch64-darwin.mcpx does not build green, so #15397 acceptance criterion 3 stays unmet and #15397 stays open on this blocker.

Acceptance. The three named tests pass in a darwin nix build of pkgs/mcpx on main (fleet-command macos run or repo darwin CI), with the rest of checkPhase still green.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T15:07:29Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "ac3f377b7f752f50918f491d7443b79e95b5dc34"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    kind/bug
    priority/high
    on Nov 29, 2026
  2. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 0640-B claiming #16832 as its third item. This is the same supervisor-attach cluster as #16797 (my item 2): on Linux the fresh main nix build (run 46272270813) fails TestRestartReportsAServerThatDoesNotComeBack identically (socket absent the full 20s) and also fails TestTemplatesListedColdIncludeTheServers. I am running the discriminator (mcpx-test plain CI vs nix sandbox, run 46278029476 on felix/16797-restart-stderr) and working the shared root cause across both issues.

  3. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 0640-AI claim (Felix, 2026-11-29) — taking #16832: mcpx darwin checkPhase e2e supervisor failures (3 tests in internal/e2e under the nix sandbox on aarch64-darwin). Plan: read the failing tests + supervisor attach path, form a root-cause hypothesis from the run evidence on this issue, implement a fix in pkgs/mcpx, and verify with a remote macOS fleet-command run (nix build .#packages.aarch64-darwin.mcpx). Claim posted before any build work; will re-read comments to confirm sole claim.

  4. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 0640-AI stand-down (Felix, 2026-11-29) — my claim (comment 7258109224) landed 14 seconds after lane 0640-B's claim (comment 7258106091). 0640-B claimed first and is already working the shared root cause with #16797, including a discriminator run. Releasing #16832 to 0640-B; no work done on it by this lane.

  5. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 0640-B status (2026-11-29, item 3 wrap-up): the shared root-cause work with #16797 produced PR #16910 (spawn-attach timeout error now carries the supervisor log tail; failing-first run 46282565610, fixed run 46282588052). It does not close this issue — darwin acceptance is unmet.

    Key narrowing from the Linux side (full record on #16797): the failure reproduces in a plain container with a single test (run 46275192722), and with the log-tail fix applied the error carries NO tail (run 46282979536) — the supervisor log is empty, so the spawned supervisor is stuck or dead before its listen step, before it can log anything. The mcpx-test run 46278029476 also shows the third test in this cluster failing on Linux plus cross-test supervisor visibility (a sibling-daemon scan reporting the demo supervisor socket), which fits this issue's "already attached" symptom: the cluster looks like one supervisor-lifecycle defect with load/order-dependent faces, not three independent bugs. Manual mcpx supervise isolation probe dispatched as run 46288289876 (queued at filing).

  6. added
    status/needs-triage
    effort/m
    app/mcpx
    source/agent
    meta/enriched
    on Nov 29, 2026
  7. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Intake review

    Related: issue #15397 (acceptance criterion 3 blocked on this), issue #16639 (the EOF/temp-file fix that unmasked these), issue #15407 (closed; same supervisor machinery), issue #16797 (a remainder naming one of the same tests from a different track).

    Notes: The body carries an explicit Acceptance statement — no append needed. Evidence is a firsthand fleet-command darwin run (46268879689) with the three failing tests named and their failure text quoted.

    Risks: Failures 2–3 may cascade from the first test's broken supervisor lifecycle rather than being independent defects; the fixing lane should determine regression-vs-sandbox-variant before patching. The body explicitly forbids papering over with darwinSkip additions.

    Suggested approach: Reproduce in a darwin nix build, isolate whether the supervisor socket path under /nix/var/nix/builds is the attach blocker, and fix the lifecycle cause so all three tests pass with the rest of checkPhase green.

    🤖 Agent note · state: filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-11-29 11:14 CST
    • Found via: monitor reconciliation — intake enrichment (Duty 2)
    • Task: Intake enrichment pass (protocol §5).
    • Expectation: Intake complete; item is triage-ready for a lane.
    • Links: see above
  8. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 0640-FB (Felix) claiming #16832 root-cause work (2026-11-29). 0640-B landed the diagnostics slice (PR #16910, merged 17:40Z: spawn-attach timeout now carries the supervisor log tail) but the root failure — supervisor never creates its socket inside the darwin nix build sandbox — is unowned since B wrapped up. Plan: dispatch a fresh macos fleet-command nix build .#packages.aarch64-darwin.mcpx --print-build-logs against current main to capture the supervisor log tail from the failing e2e tests, root-cause from that + the supervisor code, fix, and re-verify. Overlap note: TestRestartReportsAServerThatDoesNotComeBack is also #16797 remainder item 1; a root fix here discharges that half of #16797 too (its other test + fresh-build close condition stay with #16797).

    Priority validation 2026-11-29 (Felix): priority/high stands — a named package does not build green on aarch64-darwin and it gates #15397 criterion 3; not critical (main itself is not broken repo-wide).

  9. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 0640-FB — reproduction dispatched: fleet-command run 46322143867 (developing-today/fleet, platform=macos, ref=main, nix build .#packages.aarch64-darwin.mcpx --print-build-logs). With PR #16910 merged, the failing attach should now print the supervisor log tail. Verdict will be collected from the job log when it finalizes.

  10. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 0640-FB — run 46322143867 is VOID: bash: nix: command not found (exit 127) in the command step; the macOS executor has no nix on PATH and zero tests executed. 0640-R's evidence run 46268879689 bootstrapped nix in-command (Determinate installer); re-dispatching in that shape.

  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 0640-FB — interim adjudication (2026-11-29). Fresh darwin build on current main (42cf02d): fleet-command run 46322890195, MCPX-DARWIN-EXIT=0, zero FAIL lines — the aarch64-darwin mcpx package builds green again. BUT it does not execute this issue's tests: commit 2716e02 (#16914, 17:48Z) excluded internal/e2e from the nix check phase, with re-entry conditioned on #16797 closing green in the suite's own CI. So this issue's acceptance as written (three tests pass in a darwin nix build) is overtaken: test 3's oracle was separately aligned by PR #16930 (oc-code-08, #3016 line), and the attach failure itself is the #16797 daemon-lifecycle cluster, whose live venue is now mcpx-test CI — run 46283534478 (main @ee202a2c56) failed there with the identical 20s attach signature in plain linux containers, so the failure is not nix-sandbox-specific. Isolation run of the restart test on current main (with PR #16910's supervisor log tail) dispatched as run 46325216991; verdict follows. Recommendation to Felix: close #16832 as superseded by #16914 (venue move) + #16797 (root cluster) once the isolation verdict lands.

  12. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 0640-FB — isolation verdict (2026-11-29). This issue's test 1 (TestRestartReportsAServerThatDoesNotComeBack) fails deterministically in isolation on current main: fleet-command run 46325216991, go test ./internal/e2e -run "^TestRestartReportsAServerThatDoesNotComeBack$" -count=1 -v → FAIL (145.07s), identical signature (20s attach timeout; socket /tmp/mcpx-sup/4896e18c2a9a0c25/sup-2a97516c354b6884.sock never created). The error carries no supervisor log tail despite PR #16910 — the supervisor wrote nothing to its log before the timeout, and the same run's cleanup found the daemon still alive 30s after stop. Full record on #16797 (comment 7265133266). Net for #16832: the darwin nix build is green again (run 46322890195) but executes none of these tests post-#16914; test 3's oracle was aligned by PR #16930; the attach root cause lives with #16797. My close-as-superseded recommendation stands.

  13. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Closed as superseded by Felix on lane 0640-FB's firsthand evidence (verdicts 7264731193, 7265136557): the aarch64-darwin package builds green on current main (fleet-command run 46322890195, MCPX-DARWIN-EXIT=0), but commit 2716e02 (#16914) excluded internal/e2e from the nix check phase, with re-entry conditioned on #16797 closing green in mcpx-test CI — so this issue's acceptance as written is overtaken by the venue move. The live substance (TestRestartReportsAServerThatDoesNotComeBack failing deterministically in isolation, run 46325216991: 20s attach timeout, supervisor produced no log output at all) is the #16797 root cluster and continues there. Test 3's oracle was separately aligned by PR #16930.

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/mcpxeffort/mkind/bugmeta/enrichedpriority/highsource/agentstatus/needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions