Skip to content

test(conformance): timeout probe の exactly-one-send と MCP shutdown exit code の検証強化 #384

Open

Description

@rebuildup

PR #379 CodeRabbit Major findings(evidence 同梱の harness コピーへの指摘。evidence record は immutable のため、live source conformance/*.mjs を修正する)。

対象(live source)

  1. conformance/real-run.mjs timeout probe(:490 付近)— timeoutResult.outcome === "UNKNOWN" のみ検査しており、runner が request を2回 send しても検出できない。probe 前後で session.transport.sendCount() を捕捉し、delta === 1 を要求する(他 probe と並行しない区間)。
  2. conformance/mcp-real-run.mjs shutdown 判定(:210 付近)— cleanShutdown は child の exit/signal のみを見て exit code を検査しない。server が shutdown 中に exit 1 でも pass になり得る。server.stopped record に exitCode/signalCode を含め、SIGTERM 正常終了(exit 143)を要求する。異常 exit は failure。

検証

  • fake/単体レベルで send-count delta・exit-code 判定の test(real AE 不要な範囲)
  • evidence tree の harness-*.mjs は immutable — 本修正は次回 evidence run から反映される

Refs #177, #21, PR #379

Activity

  1. added a commit that references this issue on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions