Skip to content

[Bug]: A2A-Version validation ignores minor versions and the query parameter #1204

Description

@lkk7

What happened?

The specification says:

“Agents MUST process requests using the semantics of the requested A2A-Version (matching Major.Minor).”

and

“Clients MAY provide the A2A-Version as a request parameter instead of a header.”

The implementation seems to miss both points.

  1. The code compares only major:
return actual_v.major == expected_v.major
  1. The query parameter is ignored.
            actual_version = headers.get(
                constants.VERSION_HEADER
            ) or headers.get(constants.VERSION_HEADER.lower())

            if not actual_version:
                return constants.PROTOCOL_VERSION_0_3

            return str(actual_version)

A similar issue existed: #856 but it was not fully fixed.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

component: serverIssues related to frameworks for agent execution, HTTP/event handling, database persistence logic.status:awaiting response

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions