Files
freemo 96a235ff0e fix(a2a): convert A2aOperationNotFoundError to JSON-RPC error response in dispatch()
A2aLocalFacade.dispatch() was re-raising A2aOperationNotFoundError instead
of converting it to a JSON-RPC 2.0 error response. Per JSON-RPC 2.0 spec,
the server MUST return an error response object when a method is not found
— it must never raise an exception to the caller.

Changes:
- facade.py: catch A2aOperationNotFoundError and return A2aResponse with
  error code -32601 (JSON-RPC 2.0 'Method not found') and log a warning
- a2a_jsonrpc_wire_format_steps.py: remove exception-catching workaround
  from step_wire_dispatch() that was masking the bug; add step definition
  for asserting error code value
- a2a_jsonrpc_wire_format.feature: add scenario asserting unknown method
  dispatch returns JSON-RPC 2.0 error code -32601

ISSUES CLOSED: #2859
2026-04-05 07:39:25 +00:00
..
2026-02-23 03:11:12 +00:00