Skip to content

tasks/required-task-error: anchor -32003 checks to sep-2663.yaml rows#10

Merged
panyam merged 1 commit into
feat/tasks-mrtr-extensionfrom
chore/conformance-262-id-renames
Jun 9, 2026
Merged

tasks/required-task-error: anchor -32003 checks to sep-2663.yaml rows#10
panyam merged 1 commit into
feat/tasks-mrtr-extensionfrom
chore/conformance-262-id-renames

Conversation

@panyam

@panyam panyam commented Jun 9, 2026

Copy link
Copy Markdown
Owner

First in a series of small per-check ID-rename PRs against PR 262. Each PR promotes a tasks-* check ID to sep-2663-* (or sep-2243-* etc.) so the conformance traceability manifest can link the check to its anchoring RFC-2119 sentence 1:1.

This one covers the two required-task-error.ts checks that already had a clean YAML match.

Summary

Renames

  • tasks-required-task-error-codesep-2663-server-returns-32003-when-required
  • tasks-required-task-error-data-shapesep-2663-server-returns-32003-data-shape

YAML split

  • The existing sep-2663-server-returns-32003-when-required row's text was a single MUST sentence with a trailing colon ("...MUST return an error with the code -32003 (Missing Required Client Capability), indicating the required extension in the error response:"). The colon and the spec's example payload tell us the sentence carries two observable requirements: the JSON-RPC error code, and the data shape that names the missing extension.
  • Split into two YAML rows so each is verifiable independently:
    • sep-2663-server-returns-32003-when-required — the JSON-RPC code requirement
    • sep-2663-server-returns-32003-data-shape — the payload shape requirement

Comment cleanup

  • Drop tasks-required-task-error-code from the flow-gate comment block in sep-2663.yaml — it's no longer a flow-gate.

Reviewer's guide

What changed Where to look
Check 1 rename src/scenarios/server/tasks/required-task-error.ts:106-107
Check 2 rename src/scenarios/server/tasks/required-task-error.ts:173-174
YAML split + new entry src/seps/sep-2663.yaml Capability Negotiation section
Flow-gate comment cleanup src/seps/sep-2663.yaml line 154

Test plan

  • npm test — 270/270 pass
  • grep cross-check — every sep-2663-* code ID is now declared in sep-2663.yaml

The two checks in required-task-error.ts each verified a distinct
normative requirement that sep-2663.yaml already declared, but the
check IDs (tasks-required-task-error-code, tasks-required-task-error-data-shape)
used the tasks-* flow-gate prefix and went untracked by the traceability
manifest.

Promote both check IDs to sep-2663-*:
- tasks-required-task-error-code → sep-2663-server-returns-32003-when-required
- tasks-required-task-error-data-shape → sep-2663-server-returns-32003-data-shape

Split the existing YAML entry to mirror the split. The spec sentence
glues two observable requirements with a trailing colon (the JSON-RPC
code, and the data-shape payload that names the missing extension);
each gets its own row so each is verifiable independently.

Remove the now-stale tasks-required-task-error-code reference from the
sep-2663.yaml flow-gate comment block — that check is no longer a
flow-gate.

No behavior change. 270/270 vitest still pass.
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