GeezerVison is showing github.com — mcpx conformance: stdio-restart - crashed stdio server restarts only on next acquire and cooldown can refuse it; add the conformance test and fix (split of #1957) · Issue #7846 · developing-today/code
mcpx conformance: stdio-restart - crashed stdio server restarts only on next acquire and cooldown can refuse it; add the conformance test and fix (split of #1957) #7846Labels app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)epic/mcpx-platformReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label) DescriptionSplit of #1957 per its acceptance criteria, filed by queue task 13636 (lane code-w, 2026-11-08). The packet allowed: verify actual pool behaviour on a crashed stdio server and add the conformance row, or file the verified defect. This is the verified defect, from code inspection at origin/main 10da0c4:
Gap: stdio-restart. Conformance matrix row stdio-client-restart-crashed-server (2026-07-28, SHOULD) is still marked gap (unverified) in pkgs/mcpx/docs/spec/conformance-matrix.md, and registered as a Gap in pkgs/mcpx/internal/conformance/coverage_transport.go:116. Verified from pkgs/mcpx/internal/pool/pool.go: Acquire (line 293) starts a replacement instance only when a later caller acquires and lane size is below Max (lines 324-341); a start failure increments failCount and sets cooldownUntil with a backoff capped at 30s (lines 352-360), and Acquire refuses during cooldown (lines 325-330). Nothing restarts a crashed server at crash time and nothing retries the in-flight call - restart is deferred to the next acquire and can be refused during cooldown, which is what the spec SHOULD (restart on unexpected termination) is measured against.
Acceptance: a conformance test that kills a stdio server mid-call and asserts the client-visible behaviour (oracle: the 2026-07-28 stdio transport unexpected-termination section), the matrix row flipped from gap to its verified state, and - if the test shows the SHOULD unmet - the pool change that restarts or clearly re-acquires without the cooldown refusing the first post-crash call. Activitydezren39 commented on Nov 17, 2026 🤖 Agent note · triaged — defect confirmed live and untouched; fix routed as task 20036
Fresh verification (2026-11-17, current origin/main): the verified defect filed by task 13636 is unchanged in all three places:
pkgs/mcpx/docs/spec/conformance-matrix.md: row stdio-client-restart-crashed-server is still gap CI: nix flake check intermittently dies with 'No space left on device' in id-test/id-ci #257 — "unverified: the in-flight call fails and the pool respawns only on the next acquire, subject to its start-failure cooldown".
pkgs/mcpx/internal/conformance/coverage_transport.go: the same Gap is still registered with the same text.
pkgs/mcpx/internal/pool/pool.go: Acquire still refuses during cooldown (server %q is in restart cooldown), and a start failure still increments failCount and sets cooldownUntil (backoff capped at 30s). Nothing restarts a crashed stdio server at crash time and nothing retries the in-flight call — the behaviour the spec's unexpected-termination SHOULD is measured against.
The issue had never been triaged in the queue sense (no comments since filing) and carries no hard-stop labels.
Routing: the acceptance spans a conformance test against the spec oracle, the matrix/Gap flip, and a pool semantics change (crash path vs repeated-start-failure backoff) — a dedicated fix session, routed as follow-on task 20036 (small_fix, repo-health-code-pilot, dedupe repo-health:v1:fix:developing-today/code:issue:7846) with today's re-verification recorded in the packet. This issue stays open until that fix lands.
Task 18541 completes as triaged.
dezren39 commented on Nov 17, 2026 🤖 Agent note · done — fixed and merged
- Agent: repo-worker-code, lane any-h, task 20036
- Landed: PR fix(mcpx): first post-crash acquire is not refused by restart cooldown (#7846) #11201 merged (merge commit 19bccbd).
- Fix: reapDeadLocked now reports whether it reaped a dead instance; an acquire that just reaped one bypasses the restart cooldown for its restart attempt. The cooldown still throttles later attempts and a failed restart re-enters it via the start-failure path (TestStartFailureEntersCooldown unchanged, passing).
- Conformance: new TestCrashRespawnNotRefusedByCooldown (oracle: the 2026-07-28 stdio unexpected-termination SHOULD) — earns a cooldown from an unrelated broken start, kills the live server, asserts post-crash calls are never cooldown-refused and are promptly served by the respawned server. Oracle-verified: with the fix reverted the test fails with the exact cooldown refusal. The matrix row stdio-client-restart-crashed-server is flipped from gap to covered and conformance-matrix.md regenerated.
- Tests: go test ./internal/pool/ full pass; go test ./internal/conformance/ full pass.
- Reviews: Codex produced no findings (usage-limit failure, zero review comments).
- Closing: acceptance is met (test + matrix flip + the pool change the test showed was needed).
MetadataMetadataapp/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)epic/mcpx-platformReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label) DevelopmentNo branches or pull requestsIssue actions
|