Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#475 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 7 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
api, testing-qa

Línea de trabajo

Comienza con test_mrtr_no_result_type en mrtr-client.ts y sus expectativas en draft-result-fields.test.ts; después, lee server/discover y draft.schema.json para confirmar la revisión negociada y los campos obligatorios. Compara la prueba con sep-2322.yaml y con la evidencia sobre el alcance de las versiones en el issue. Se considera terminado cuando el estímulo de prueba coincide con los requisitos de wire negociados y la comprobación de conformidad relacionada ya no rechaza a un cliente conforme.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
TypeScript
Estrellas
130
Forks
107
Merge medio
8 d 19 h
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de modelcontextprotocol/conformance

Todos los issues de modelcontextprotocol/conformance

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.