[Bug]: AgentCard REQUIRED fields are never validated
維護者通常 2 天內回覆
評估
這個 Issue 還沒有評估資料。
描述
What happened?
AgentCard marks 8 fields field_behavior = REQUIRED (https://github.com/a2aproject/A2A/blob/main/specification/a2a.proto#L362-L399): name, description, supported_interfaces, version, capabilities, default_input_modes, default_output_modes, skills.
Nothing in the SDK checks them. proto3 has no required keyword and the annotation is inert metadata, so an empty card is constructible and travels the whole pipeline unchallenged:
AgentCard() # -> served as HTTP 200 with body {}
None of the methods that accept a card validate it:
- create_agent_card_routes(agent_card=...)
- DefaultRequestHandler(agent_card=..., extended_agent_card=...) and on_get_extended_agent_card — validates the request, never the returned card
- agent_card_to_dict(card)
- signing
Correct fix: call the existing validate_proto_required_fields where the card is passed. This would introduce breaking changes for clients that rely on non-spec compliant agent card.
Suggested first step: log a warning when validation fails rather than raising, which is non-breaking and surfaces the problem to the user, with enforcement by default deferred to a major version.
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
- 主要語言
- Python
- 星號
- 2.2k
- 分支
- 532
- 平均合併
- 3 天 6 小時
- 30 天內合併 PR
- 42
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
a2aproject/a2a-python 的其他 Issue
-
[Bug]: `A2A-Version` validation ignores minor versions and the query parameter可能已有人在做 @rohityan 於 71 天前認領。 未關閉component: server status:awaiting response status:stale
難度 2/5 1-3 小時 新手友好度 75/100
a2aproject/a2a-python#1204 · 4 則留言 · 已指派 1 人 ·
維護者通常 2 天內回覆
-
[Bug]: REST task/request id sanitization可能已有人在做 @Linux2010 於 130 天前認領。 未關閉maintainers-only
難度 2/5 1-3 小時 新手友好度 65/100
a2aproject/a2a-python#805 · 1 則留言 ·
維護者通常 2 天內回覆
-
[Bug]: v0.3 REST client raises NotImplementedError for list_task_push_notification_configs可能已有人在做 @RaphaelFakhri 今天認領。 未關閉component: client status:awaiting response
a2aproject/a2a-python#1423 · 1 則留言 · 已指派 1 人 ·
維護者通常 2 天內回覆
-
[Bug]: ActiveTask.start() leaves the event queue dispatchers pending when setup fails可能已有人在做 @cchinchilla-dev 今天認領。 未關閉component: server status:awaiting response
a2aproject/a2a-python#1421 · 1 則留言 · 已指派 1 人 ·
維護者通常 2 天內回覆
-
Compat REST client drops security from the v0.3 extended agent card可能已有人在做 @ConnorMoss02 今天認領。 未關閉component: client status:awaiting response
a2aproject/a2a-python#1418 · 1 則留言 · 已指派 1 人 ·
維護者通常 2 天內回覆
查看 a2aproject/a2a-python 的全部 Issue
相似的 Issue
-
curriculum documentation quality
難度 2/5 1-3 小時 新手友好度 77/100
githubnext/gh-aw-workshop#5367 ·
維護者通常 3 天內回覆
-
Create Noise Latents ignores randomize_seed and produces the same noise every run可能已有人在做 @griptapeops 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
griptape-ai/griptape-nodes-library-diffusers#127 ·
維護者通常 1 天內回覆
-
Jenkins capacity report: metrics history is lost when archiving a month fails可能已有人在做 @RaphaelFakhri 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
adoptium/infrastructure#4568 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
huggingface/deep-rl-class#723 ·
-
premises-missing
難度 2/5 1-3 小時 新手友好度 78/100
WingedGuardian/GENesis-AGI#3928 ·
維護者通常 1 天內回覆