GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx: shorten supervisor socket path for darwin 104-byte limit (#15407) by dezren39 · Pull Request #15550 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 26, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Fixes #15407.

Two darwin defects, one PR:

  1. Supervisor socket path over darwin's 104-byte sun_path limit for scoped instances. Fix: instance hash 16-hex -> 8-hex; three-tier SupervisorSocketDir (stateDir -> legacy TempDir/mcpx-sup/<16hex> scan -> short /tmp/mcpx-/sv-<8hex> fallback) keeps scoped-instance paths under the cap.
  2. Changed server's supervised child not retired on takeover (defect-2 context in registry_handoff.go). Fix: globSupervisorSockets scan migration covers the legacy 16-hex dir so upgrades adopt pre-existing supervised children.

Tests:

  • New: supervised_darwin_limit_test.go (darwin 104-byte bound + instance-distinctness).
  • Existing: TestSupervisorSocket* / TestScanAndReap / TestTwoInstances pass; internal/mcpclient package green (16.3s); pool TestSupervised/TestAdopt green.
  • Unskips TestClientLeaseSurvivesDaemonTakeover and TestTakeoverRestartsAChangedServerAndKeepsTheRest on darwin (package.nix); darwin CI is the acceptance gate.

Note: branch base predates latest main; merge main before landing if CI requests it.

{
  "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-26T11:05:05Z",
    "session_id": "ses_e5de8ad60fbffexq1knNN6k7sx",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/sweep-15335-kvcli",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/sweep-15335-kvcli",
      "repo": "developing-today/code",
      "branch": "sweep/15407-sup-socket",
      "sha": "a6d9f96713f464355aad52d09e170e64148e49d2"
    },
    "auth_subject": "oc-code-01",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
mcpx: shorten supervisor socket path for darwin 104-byte limit (#15407)
a6d9f96
- instance hash 16-hex -> 8-hex; three-tier SupervisorSocketDir
  (stateDir, legacy TempDir scan, short /tmp fallback) keeps
  scoped-instance socket paths under darwin's 104-byte sun_path cap
- scan migration: globSupervisorSockets covers legacy 16-hex dir
  so upgrades adopt pre-existing supervised children
- length-bound unit tests (darwin cap + instance distinctness)
- unskip TestClientLeaseSurvivesDaemonTakeover and
  TestTakeoverRestartsAChangedServerAndKeepsTheRest on darwin

Fixes #15407
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 28a37b2c-9b5b-4bbd-873d-53c27caceb37
Commits

Reviewing files that changed from the base of the PR and between 39f4767 and a6d9f96.

Files selected for processing: 4

  • pkgs/mcpx/internal/mcpclient/supervised.go
  • pkgs/mcpx/internal/mcpclient/supervised_darwin_limit_test.go
  • pkgs/mcpx/internal/mcpclient/supervised_scan.go
  • pkgs/mcpx/package.nix
  • 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 26, 2026
mcpx darwin: supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired #15407
Open
3 tasks
@dezren39

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

Shepherd lane CD — stand down: darwin gate not yet verified (not merged)

  • Head SHA: a6d9f96 (branch sweep/15407-sup-socket, base main, PR still OPEN, no labels, no reviews; only comment is CodeRabbit rate-limited)
  • Premise/ownership: No agent-note on PR mcpx: shorten supervisor socket path for darwin 104-byte limit (#15407) #15550 or issue mcpx darwin: supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired #15407 showing a live author lane with its own verification dispatch queued. Issue mcpx darwin: supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired #15407's latest comment (2026-11-26T11:05:20Z) is the "Fix PR opened: mcpx: shorten supervisor socket path for darwin 104-byte limit (#15407) #15550" note stating: "Darwin CI on the PR is the acceptance gate for both tests." The PR body likewise says "darwin CI is the acceptance gate."
  • Diff review: 4 files, in scope for mcpx darwin: supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired #15407, no secrets seen — supervised.go (instance hash 16→8 hex, three-tier SupervisorSocketDir with legacy + short /tmp/mcpx-<uid>/sv-<8hex> fallbacks, 100-byte ceiling), supervised_scan.go (glob all candidate dirs), new supervised_darwin_limit_test.go, package.nix (unskips TestClientLeaseSurvivesDaemonTakeover + TestTakeoverRestartsAChangedServerAndKeepsTheRest on darwin).
  • Existing verification on current head: none. No Actions runs on the branch; check-runs on the head are only CodeRabbit (neutral) and Proof (skipped) — no test output. A Linux pass was NOT substituted for the darwin gate.
  • Darwin verification dispatched: fleet-command (macos platform) run 45808980330 — https://github.com/developing-today/fleet/actions/runs/45808980330 — command nix build .#packages.aarch64-darwin.mcpx at ref a6d9f96, dispatch_id shepherd-cd-15550-darwin. Status at posting: queued (fleet-command placement is stalling this hour).
  • Outcome: A queued run is not verification, so this PR was not merged. Merge only once run 45808980330 (or equivalent darwin CI on this head) completes green with real checkPhase/test output in its log.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 26, 2026
mcpx: complete gopls worktree live proof after PR #8049 #15098
Open
@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Merge-watch lane ST — mergibility rechecked; darwin verification re-dispatched (not yet merged)

🤖 Agent note · merge-watch

  • Agent: archer (queue lane ST, queue task 23951, rung: queue)
  • Task: Merge-watch recheck (queue: coverage join ignores open fix PRs — issues get re-triaged while their PRs bit-rot (#941, #1204, #1207) #4951) for this PR / issue mcpx darwin: supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired #15407.

Premise / ownership: Issue #15407 is OPEN with no held/user label, no live author claim, and no Drew-decision gate (labels: kind/bug, status/needs-triage, priority/normal, app/mcpx, effort/m, meta/enriched, source/agent). All comments read. The earlier xaltha HOLD was a flag trip on that lane's own checkout, not a gate on this PR.

Mergibility vs current main — re-tested 2026-11-26T13:00Z:

  • Head a6d9f96713f464355aad52d09e170e64148e49d2 (branch sweep/15407-sup-socket), PR state OPEN.
  • GitHub API: mergeable: true, mergeable_state: clean against current main cea9217d3de05283393aaf483460a7764351f505 (compare: ahead 1, behind 96, diverged but conflict-free).
  • Main has NOT superseded the fix: main's supervised.go still uses the 16-hex fallback with no instanceHashLen, and pkgs/mcpx/package.nix on main still lists both takeover tests in darwinSkip ("Remove them when mcpx darwin: supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired #15407 lands"). No pkgs/mcpx file has changed on main since this PR's base (39f4767), so verification on the current head is equivalent for mcpx. No branch refresh needed: merge is conflict-free and a refresh would only invalidate head verification.
  • Diff in scope (4 files, no secrets): supervised.go, supervised_scan.go, new supervised_darwin_limit_test.go, package.nix unskips.

Prior darwin gate — no verdict: Shepherd CD's fleet-command run 45808980330 (2026-11-26): the macOS job was cancelled after ~29 min (11:19–11:49Z), not a test failure; its log blob is gone. A cancelled run is not verification.

Fresh darwin verification dispatched (fleet-command route; Actions exec not used — known TLS UnknownIssuer failure, code#15575):

  • Run 45825060056 — https://github.com/developing-today/fleet/actions/runs/45825060056
  • Command: nix build .#packages.aarch64-darwin.mcpx at ref a6d9f96713f464355aad52d09e170e64148e49d2, platform macos, timeout 120 min, dispatch_id shepherd-st-15550-darwin. Status at posting: queued.

Outcome so far: Not merged yet. Merge (merge commit, per standing authority) only when run 45825060056 completes green with real checkPhase/test output; if it fails on tests, this PR stays open and the failure will be recorded here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

Darwin verification on head a6d9f96 (Go-based, not Nix): FAIL — both issue acceptance tests still fail on darwin/arm64 (go1.27.4).

Run: https://github.com/dezren39/fleet/actions/runs/45895786817 (dezren39/fleet#45895786817), ref sweep/15407-sup-socket, go test ./internal/e2e/ -run "^(TestClientLeaseSurvivesDaemonTakeover|TestTakeoverRestartsAChangedServerAndKeepsTheRest)$" -count=1 -timeout 30m -v

  • TestTakeoverRestartsAChangedServerAndKeepsTheRest FAIL (104.73s): takeover_test.go:282: the changed server's old child (pid 9563) is still running — defect 2 not fixed.
  • TestClientLeaseSurvivesDaemonTakeover FAIL (0.59s): takeover_test.go:373: the session's child changed across the takeover: pid 10054 -> 0 — scoped child not adopted (socket EINVAL gone, but takeover still loses the child).

Note: earlier nix build .#packages.aarch64-darwin.mcpx dispatch (developing-today-forks/fleet#45894900943) failed before tests (nix: command not found); Go-direct is the working Darwin path. Do NOT merge until a fresh Darwin run of these two tests is green.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Merge-watch recheck (lane oc-code-01, task 24424) — do NOT merge yet

  • GitHub API: OPEN, mergeable MERGEABLE / mergeStateStatus CLEAN; local merge-tree against origin/main e949cc5 is conflict-free. PR's own diff is 4 files (+151/-17), focused on mcpx darwin: supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired #15407.
  • Not superseded: supervised_darwin_limit_test.go absent from main; issue mcpx darwin: supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired #15407 still OPEN.
  • Acceptance gate fails: darwin verification on head a6d9f96 FAILED (both e2e takeover tests; dezren39 21:11Z note, fleet run 45895786817). Defect 2 not fixed; scoped child not adopted.
  • Verdict: keep open, no branch refresh needed for mergibility (refresh won't fix darwin failures). Awaiting author rework + green darwin CI. No re-implementation per task scope.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Merge-watch recheck (agent-next-21-local, task 24424; 2026-11-26T23:06Z)

  • PR mcpx: shorten supervisor socket path for darwin 104-byte limit (#15407) #15550 remains OPEN at head a6d9f96713f464355aad52d09e170e64148e49d2.
  • Refreshed current main is 5ae6da0968c6f748790d60b506de1fcdf88cd633; git merge-tree --write-tree origin/main refs/remotes/origin/pr/15550 completed cleanly. The PR remains unique: current main retains the prior single-directory socket fallback and still skips both takeover tests on Darwin.
  • The required Darwin run on this exact head, 45895786817, failed both acceptance tests: changed-server old child remains alive, and the scoped child is not adopted. Current PR checks still have no test result (CodeRabbit neutral, Proof skipped).

Decision: do not merge or close. The PR is not superseded, and its acceptance gate is red. The merge-watch is parked until the PR head changes or a Darwin acceptance run passes on the new head; then recheck the diff, CI and mergeability before landing.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 26, 2026
mcpx: Phase 3 of #1384 — supervised stdio by default + lifecycle hygiene #9963
Open
4 tasks
@dezren39 dezren39 mentioned this pull request Nov 27, 2026
design(mcpx): a supervisor that owns each stdio child's pipes — replace the takeover handoff for stdio #1384
Open
4 tasks
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
Stray work audit: PRs and issues not tied to a design or roadmap item #13874
Open
@developing-today-fleet

developing-today-fleet Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Lane 2337-D concurrence — GATE HELD, not merged. Firsthand re-read 2026-11-27T05:5xZ: PR still OPEN/non-draft/CLEAN/MERGEABLE at unchanged head a6d9f96; check-runs on head = CodeRabbit neutral + Proof skipped only (no passing run). Cited darwin acceptance run dezren39/fleet#45895786817 re-read via gh api: status completed, conclusion failure — both e2e takeover tests failed on this exact head per comment 7203473442, concurred by merge-watch lanes 7204950416 / 7205323241. Body states darwin CI is the acceptance gate, so the gate cannot pass. Unblock: author rework fixing defect-2 takeover (changed server old child retired; scoped child adopted) + new head + a passing darwin run of TestClientLeaseSurvivesDaemonTakeover and TestTakeoverRestartsAChangedServerAndKeepsTheRest on the new head, re-readable via gh api. Key: 2337-D

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 27, 2026
fleet: ready PRs are left unmerged (20 open; the merge sweep has filed nothing since 2026-11-17) #12280
Open
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
mcpx: shrink the darwin skip list to legacy-handoff tests only (#9963 criterion 4) #15397
Open
@developing-today-fleet

developing-today-fleet Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

🤖 Lane 0937-C (alpha DRIVE landings, 2026-11-28 09:37 CST) — verify-then-merge recheck: NOT merged.

Fresh: PR OPEN, non-draft, CLEAN/MERGEABLE, head unchanged at exact a6d9f96713f464355aad52d09e170e64148e49d2. Code check-runs on head = CodeRabbit neutral + Proof skipped only. The required darwin acceptance run on this exact head, 45895786817, completed failure (both e2e takeover tests failed on this head). No newer darwin run for this head. Unblock: fix the darwin takeover failures, new head, passing darwin acceptance run.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This branch has not been deployed

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

mcpx darwin: supervised takeover defects — supervisor socket path exceeds darwin limit; changed server's child not retired

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.