Skip to content

fix: validate v0.3 JSON-RPC response IDs - #1334

Merged
kabir merged 1 commit into
a2aproject:mainfrom
Linux2010:codex/v03-jsonrpc-response-id
Nov 19, 2026
Merged

kabir merged 1 commit into
a2aproject:mainfrom
Linux2010:codex/v03-jsonrpc-response-id

Conversation

@Linux2010

Copy link
Copy Markdown
Contributor

Summary

The v0.3 JSON-RPC transport accepts a response ID unrelated to the request. A local HTTP server returning an unrelated ID was accepted as a successful task response.

Compare normal responses, SSE events and pre-stream JSON errors with the ID actually serialized after interceptors. Preserve null-ID error responses, and close the stream when an error or correlation failure terminates it. The existing two-argument listener constructor remains available. This addresses the v0.3 part of #1331; the v1 path is separate.

Validation

  • Confirmed a real HTTP mismatched-ID regression failed before the fix.
  • mvn -q -pl compat-0.3/client/transport/jsonrpc -am clean test (720 reactor tests passed).
  • Regressions cover matching, mismatched, missing, numeric and null IDs, interceptor replacement, SSE/preflight and terminal stream closure.
  • git diff --check.

@kabir
kabir merged commit cad3bb3 into a2aproject:main Nov 19, 2026
14 checks passed
@kabir

kabir commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Thanks @Linux2010 !

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.

2 participants