Repository navigation
fix(mcp): preserve transport ownership through cancellation and reload - #2062
KooshaPari wants to merge 6 commits into
Conversation
tx-agent: codex tx-validated: test,cargo-check tx-scope: mcp
Propagate Windows environment comparison failures before spawn and preserve case-insensitive Unicode ordering. Report cleanup failures, recover poisoned test observer locks, and keep remote test modules classified as tests. Validate Unicode child environment, inherited synthetic-secret filtering, explicit opt-in, and invalid keys with an isolated one-test subprocess. Use UTF-8 explicitly for the Python JSON protocol fixture. Validation: 79 distinct targeted tests passed across gates and focused retry; CLI check passed. Pool suite first ran21/22 with an initialization timeout; its focused retry passed1/1. Preserve both outcomes in local gate receipts. tx-agent: codex tx-validated: test tx-task: mcp-owned-lifecycle-20261103
Integrate upstream28ac5e6 without rewriting the published MCP history. Move two existing cloud handoff tests into a small nested module and qualify their commands helper path. Replace the impossible empty retry result panic with an error while retaining SSH deadlines, attempt counts and last-error host context on reachable paths. Keep ratchet budgets unchanged. Validation: both relocated TUI tests compiled, were discovered and passed (2/2;3362 filtered). Full formatting and all seven source/quality ratchets passed. Independent source review confirmed scope and SSH behavior. tx-agent: codex tx-validated: test tx-task: mcp-owned-lifecycle-20261103
* fix(server): retain sanitized lightweight pipe error context tx-agent: codex tx-validated: test * fix(server): preserve safe I/O details across reply paths tx-agent: codex tx-validated: test
Package a dedicated Job-contained fixture and separate observational probes. Keep accounting and process-handle completion claims distinct. tx-agent: codex tx-validated: test,build tx-task: mcp-pool-overlap-regression tx-parent: 47725bf
Closing this draft, with the measurement so it can be reopenedClosing rather than porting, by operator decision. Nothing here is deleted: the branch stays, and this comment is the map for reopening. Measured
Why closed rather than ported The change is architectural, not additive: it splits Meanwhile
Rebasing 911 commits across a 79-file module split whose whole point is to own those same identifiers is a rewrite, not a merge. The prior CI evidence in the body (run 41962409063, head at Real capability gap that remains (follow-up work, not lost) These are still absent from
Suggested shape if reopened: land the Windows Job ownership and Related: #1036. |
Shared MCP startup could hold a manager-wide handle lock during a slow handshake, preventing independent peers from publishing tools. Coordinate handshakes per server, retain admission through handle publication, roll back cancelled claims, and keep unconfirmed cleanup visible until a successful drain retry. Failed reloads reconcile the visible registry and hide closed or unconfirmed handles.
Split client, manager, pool, remote transport, and Windows ownership code into focused modules. Windows child environments retain ordinal case-insensitive ordering, preserve UTF-16 values, and return comparison errors before spawn. Inherited credentials require explicit per-server opt-in. The upstream merge preserves Windows dependency features; small test extraction and unreachable SSH panic removal satisfy existing quality ratchets without raising budgets.
Validation:
Windows natural-process fixtures require C:\Python314\python.exe. Production termination, installation/release, coverage acceptance, and the STOS-specific Linux reproduction remain separate acceptance gates. Reconnect/session persistence work is separate. This PR remains a draft.
Related: #1036 (registered tools versus live connection state and child cleanup).