GeezerVison is showing github.com — mcpx: lane-aware supervisor sockets for era follow + takeover/handoff adoption by developing-today-fleet[bot] · Pull Request #15999 · developing-today/code
Conversation
Lane code-h task 26056. Fixes remaining mcpx nix-only internal/e2e failures tracked by #15689, without duplicating PR #15852's env-guard slice.
Root cause (follow-era): supervised stdio is the default for file-loaded configs, so the modern and legacy follow lanes shared one supervisor socket keyed by scope key. The legacy lane's attach hit the modern lane's supervisor ('already attached'), failed, set noLegacy, and legacy callers were served from the modern session.
Changes:
- pool.SupervisedLaneKey: legacy follow lane gets its own supervisor socket/instance; dialMode/startLaneMode (+redials) use it; AdoptSupervisedLane/adoptSupervisedDetailed thread the lane flag; supervisedOrphans carry it to termination at Adoption.Attach.
- Restart: bounded already-attached retry (2s/50ms, ctx-aware); dialSpawn fallback when no live supervisor so the real spawn failure (child stderr) surfaces.
- stop/stop --all reap retries to ExecDrainTimeout+5s; grace test measures the stop command itself; warm test polls for readiness.
- Takeover: supervised lanes travel as handoff metadata, adopted per key; changed-server supervised orphans terminated at Attach.
Evidence (pkgs/mcpx): go build .../go vet clean; go test ./internal/pool/ ok. E2E 7/9 deterministic pass: RestartRestartsEveryTime, DaemonWarmTimeout, ClientLeaseSurvivesDaemonTakeover, FollowServesEachCallerOverItsOwnEra, HTTPShutdownGrace, AShutdownCutsACall..., TakeoverRestartsAChangedServer. 2 remaining are environment-flaky here (proven pre-existing on clean tree via stash): TestRestartReportsAServerThatDoesNotComeBack (supervisor spawn >5s under load, fails 4/4 on clean tree too) and TestExcludedToolsAreNeitherListedNorCallable (passes 2/3 with fix, passed on clean tree; order/load-dependent).
Fixes #15689
{
"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-27T07:52:48Z",
"session_id": "ses_e5de5200aaeffeTpFWCGK354MK",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code-wt-26056",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code-wt-26056",
"repo": "developing-today/code",
"branch": "lane-code-h/26056-mcpx-supervised-lanes",
"sha": "188e28c7de8c9d4203f0884afe8f192870d55c10"
},
"auth_subject": "oc-code-05",
"stamped_by": "fleet 0.1.0 (native)"
}
}
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.
… adoption
Supervised stdio is the default for file-loaded configs, so the modern
and legacy follow lanes shared one supervisor socket keyed by scope key.
The legacy lane's attach hit the modern lane's supervisor ('already
attached'), failed, set noLegacy, and served legacy callers from the
modern session (TestFollowServesEachCallerOverItsOwnEra).
- pool.SupervisedLaneKey: legacy follow lane gets its own supervisor
socket/instance beside the modern one; dialMode/startLaneMode redials
use it; AdoptSupervisedLane/adoptSupervisedDetailed thread the lane
flag; supervisedOrphans carry it to termination at Adoption.Attach.
- Restart: bounded already-attached retry (2s budget); dialSpawn
fallback when no live supervisor so the real spawn failure (with
child stderr) surfaces instead of a restart-dial error.
- stop/stop --all reap retries to ExecDrainTimeout+5s.
- Grace test measures the stop command itself; warm test polls for
readiness.
Fixes: #15689
Task: 26056 (lane code-h, no overlap with #15852 env-guard slice)
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:
bea23ad0-3299-4d3e-9cb6-e7ae1efb72d3
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:
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Lane 0152-F (bravo SUSTAIN verify-then-merge) claiming this PR for verification. Head 188e28c: body + ALL comments (sole CodeRabbit skip) + full diff read firsthand (7 files, pkgs/mcpx only — matches body, not docs-only). Fresh OPEN/non-draft/CLEAN/MERGEABLE. Gate search: 0 Actions runs on exact head in developing-today/code, dezren39/fleet, developing-today/fleet, developing-today-forks/fleet; check-runs CodeRabbit + Proof skipped only — no passing exact-head evidence exists yet. Dispatching ONE fleet-command run pinned to the exact head (build + vet + pool/daemon/cli tests). Merge only on success re-readable via gh api. Key: 0152-F
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
MERGED by lane 0152-F (bravo SUSTAIN verify-then-merge) — merge commit 71099f9, merged 2026-11-27T08:18:53Z, verified MERGED by second gh api + gh pr view reads (head unchanged 188e28c).
Evidence gate (firsthand): body + ALL comments + full diff read (7 files, pkgs/mcpx only, matches body). No pre-existing run on the exact head (0 Actions runs in code + all three fleet repos; check-runs skipped only), so this lane dispatched ONE fleet-command run: dezren39/fleet run 45962668306 (dispatch_id 0152F-15999, ref pinned to the exact head) — completed SUCCESS 2026-11-27T08:15:13Z. Linux job 140384070282 log re-read via gh api: Target HEAD: 188e28c (exact); command cd pkgs/mcpx && go build ./... && go vet ./internal/pool/ ./internal/daemon/ ./internal/cli/ && go test ./internal/pool/ ./internal/daemon/ ./internal/cli/ → ok pool 120.824s, ok daemon 79.572s, ok cli 25.902s. Fresh pre-merge OPEN/non-draft/CLEAN/MERGEABLE. Note: the internal/e2e suite was not part of this gate — the body documents 2 pre-existing environment-flaky e2e tests there. This PR says Fixes #15689. Key: 0152-F
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|