You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: A2A-Version validation ignores minor versions and the query parameter #1204
Hi @lkk7 , Thank you for reporting this. This is a bug and diverges from the formal A2A protocol specification.
The spec requires agents to match on both Major and Minor versions. The current check in a2a.utils.version_validator.validate_version only evaluates actual_v.major == expected_v.major, which incorrectly permits minor version mismatches .
Query Parameter Fallback : The spec allows A2A-Version to be passed as a request query parameter. Currently, _get_actual_version only inspects HTTP request headers before falling back to DEFAULT_A2A_VERSION, ignoring URL query parameters.
If you would like to contribute open a PR with the fix and test coverage for both cases, we would gladly review it. The fix should update validate_version to enforce (actual_v.major == expected_v.major and actual_v.minor == expected_v.minor).
Update request extraction middleware to check headers first, then URL query parameters, before applying the fallback default.
Activity
rohityan commentedon Aug 28, 2026
Hi @lkk7 , Thank you for reporting this. This is a bug and diverges from the formal A2A protocol specification.
The spec requires agents to match on both
MajorandMinorversions. The current check ina2a.utils.version_validator.validate_versiononly evaluatesactual_v.major == expected_v.major, which incorrectly permits minor version mismatches .Query Parameter Fallback : The spec allows
A2A-Versionto be passed as a request query parameter. Currently,_get_actual_versiononly inspects HTTP request headers before falling back toDEFAULT_A2A_VERSION, ignoring URL query parameters.If you would like to contribute open a PR with the fix and test coverage for both cases, we would gladly review it. The fix should update
validate_versionto enforce (actual_v.major == expected_v.major and actual_v.minor == expected_v.minor).Update request extraction middleware to check headers first, then URL query parameters, before applying the fallback default.
github-actions commentedon Sep 11, 2026
Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.
github-actions commentedon Sep 24, 2026
This issue was closed because it has been inactive for 27 days. Please post a new issue if you need further assistance. Thanks!
A2A-Versionsent as a request parameter is ignored (spec §3.6.1), so a v1.0 request is treated as 0.3 #1344 as a duplicate of this issue