Skip to content

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

Merged
rebuildup merged 1 commit into
release-0-6-0from
384
Nov 20, 2026
Merged

rebuildup merged 1 commit into
release-0-6-0from
384

Conversation

@rebuildup

Copy link
Copy Markdown
Contributor

概要

Issue #384。PR #379 の CodeRabbit Major findings 対応。live source のみ修正 — evidence/conformance/run-2026-11-21-ae2026-a8n-028/harness-*.mjs は immutable evidence のため変更しない(次回 evidence run から反映)。

1. conformance/real-run.mjs — timeout probe の exactly-one-send

従来は timeoutResult.outcome === "UNKNOWN" のみ検査しており、runner が request を2回 send しても検出できなかった。probe 前後(他の probe と並行しない区間)で session.transport.sendCount() を捕捉し、delta === 1 を要求するよう変更。evidence.timeoutProbe に sendsBefore/sendsAfter/sendDelta を記録。

判定ロジックは devtools-cli/real-run-kit.mjs の isCleanTimeoutProbe({outcome, sendDelta}) に集約。

2. conformance/mcp-real-run.mjs — shutdown exit code 検証

従来の cleanShutdown は child の exit/signal のみを見て exit code を検査せず、shutdown 中に exit 1 でも pass になり得た。server.stopped record に exitCode/signalCode を追加し、SIGTERM 正常終了パス(shutdown(143) → session.close() → process.exit(143))を要求する isCleanServerShutdown() を real-run-kit に追加。SIGKILL 救済・signal 死・異常 exit code は全て failure。fatal メッセージも実際の終了状態を区別して記録するよう修正。

テスト(fake/単体レベル、real AE 不要)

  • devtools-cli/tests/run.mjs に kit verdict helper の test を追加:
    • isCleanTimeoutProbe: UNKNOWN+delta1 のみ true(resend delta2 / no-send delta0 / COMPLETED は false)
    • isCleanServerShutdown: exit 143+signal なし+非 forcedKill のみ true(exit 0/1、signal 死、SIGKILL、未確認は全て false)

check-syntax 138 files pass、devtools-cli 51 tests green。

検証レベル

  • automated test(fake-level helper 単体)のみ。real AE conformance run は未実施 — 次回 evidence run で新判定が適用される。

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. 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: 1150fcec-173c-474f-8646-31ce77b47627

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:

  • Trigger review
  • 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

@rebuildup
rebuildup marked this pull request as ready for review November 20, 2026 20:51
@rebuildup
rebuildup merged commit 4fc672a into release-0-6-0 Nov 20, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant