Skip to content

fix(mcpx): spawn-attach timeout error carries the supervisor log tail - #16910

Merged
developing-today-fleet[bot] merged 3 commits into
mainfrom
felix/16797-restart-stderr
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 3 commits into
mainfrom
felix/16797-restart-stderr

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Refs #16797, Refs #16832.

What

When the spawn-attach wait in newSupervised exhausts, the error now appends the tail of the supervisor log (<socket>.log, where spawnSupervisorProcess sends the supervisor stdout/stderr):

supervised transport for demo: supervisor did not attach within 20s: dial unix ...: no such file or directory (supervisor log: <tail>)

A supervisor that dies before it listens (listen error, unspawnable child) leaves its only account of itself in that log; until now the caller got a bare missing-socket dial error and the log was discarded with the build tree. This is the diagnostic gap that made the #16797/#16832 cluster (supervisor socket never appears; three lanes, two platforms) undiagnosable from CI output.

Verification (all remote, fleet-command venue)

  • Failing-first, test-only branch felix/16797-oracle-only @ 9d79f94, run 46282565610: --- FAIL: TestNewSupervisedAttachTimeoutCarriesTheSupervisorLog (0.60s) — "the failure should carry the supervisor log tail, got: ... did not attach within 600ms: dial unix ... no such file or directory".
  • Fixed, this branch @ 3228040, run 46282588052: TestNewSupervisedAttachesToASlowStartingSupervisor PASS (6.06s), TestNewSupervisedStillFailsWhenNoSupervisorComesUp PASS (3.01s), TestNewSupervisedAttachTimeoutCarriesTheSupervisorLog PASS (0.60s).

What this does NOT close

Neither #16797 nor #16832: their acceptance is the e2e tests green in the nix build. Follow-up evidence gathered by lane 0640-B (full record on both issues): the failure reproduces in a plain container with a single test (run 46275192722, 114s), and with this fix applied the attach error still carries NO log tail (run 46282979536) — the supervisor log is empty: the spawned supervisor writes nothing and never listens, so it is stuck or dead before RunSupervisor reaches its listen step, before it can log anything. The manual mcpx supervise isolation probe is dispatched as run 46288289876 (queued at filing time).

{
  "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-29T17:34:32Z",
    "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": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 84f6f2ac-560c-488e-b06f-6ddcbcb269b1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants