Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

sep-2322 absent-resultType probe is an invalid stimulus on the 2026-07-28 wire it negotiates

オープン
#475 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 7 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api, testing-qa

調査の方向性

mrtr-client.ts の test_mrtr_no_result_type と、draft-result-fields.test.ts にあるその期待値から始め、次に server/discover と draft.schema.json を読んで、ネゴシエートされたリビジョンと必須フィールドを確認します。probe を sep-2322.yaml および issue にあるバージョン適用範囲の根拠と比較します。テスト刺激がネゴシエートされた wire 要件に一致し、関連する適合性チェックが適合するクライアントを拒否しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The test_mrtr_no_result_type probe in mrtr-client.ts deliberately omits resultType from its final result, and draft-result-fields.test.ts pins that omission as the check's stimulus. Problem is the referee only ever negotiates 2026-07-28 (server/discover returns supportedVersions: [DRAFT_PROTOCOL_VERSION]), and the released 2026-07-28 text scopes the absent-means-complete bridge to earlier revisions: "For backward compatibility with servers implementing earlier protocol versions, which do not include resultType, clients MUST treat an absent resultType as complete." The same spec says the result MUST include resultType, and the repo's own draft.schema.json has it in Result.required.

So the probe is an invalid stimulus on the very wire it negotiates, and a strict 2026-07-28 client fails sep-2322-default-result-type-complete for correctly rejecting a non-conformant reply. Downstream confirmation: cloudflare/agents baselines this scenario with the comment "Alpha.10 omits resultType after negotiating 2026-07-28. The final draft requires servers implementing that revision to include it; the absent-means-complete bridge applies only to earlier revisions."

Related: sep-2322.yaml still quotes the pre-final sentence without the version scoping ("If resultType is not specified, clients MUST assume a default value of complete for backwards compatibility"), which is probably where the check's shape came from. And the reason wire validation never flagged the probe is the inline-mock bypass from #418.

Following the #447 principle of running each revision's requirements at its own wire, I can see two fixes: gate the absent-resultType probe to runs where the referee negotiates a pre-2026-07-28 wire, or keep the 2026-07-28 wire and have the probe send resultType, retiring the default-check there. Since the omission is test-pinned as deliberate I did not want to just send a PR flipping it. Which way do you want this to go?

主要言語
TypeScript
スター
130
フォーク
107
平均マージ
8日 19時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/conformance のほかの issue

modelcontextprotocol/conformance の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。