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
fix(server): register /.well-known/agent.json alias route in create_a2a_server (#613)
* fix(server): register /.well-known/agent.json alias route in create_a2a_server
The 0.3 discovery alias was exempted from auth (auth.py _A2A_DISCOVERY_PATHS)
but never registered as a Starlette route, causing buyer SDKs that probe the
alias (including @adcp/sdk CLI auto-detection) to receive 404/503.
Adds a second create_agent_card_routes call with card_url="/.well-known/agent.json"
so both paths serve identical agent-card JSON without a redirect round-trip.
Also tightens three tests that masked the bug by accepting 404 as valid, fixes
the misleading auth comment, adds an inverse coverage check asserting all
_A2A_DISCOVERY_PATHS entries are registered routes, and corrects the docs path.
Closes#612https://claude.ai/code/session_01JHq6DLPhFf2kQQpUkPtfZe
* fix(server): address pre-PR review findings on alias route fix
- Remove brand name from inline comment (use generic "A2A 0.3 buyer SDKs")
- Expand A2ABearerAuthMiddleware docstring to mention 0.3 alias path
- Add comment to inverse-drift-guard test noting it's structural-only
https://claude.ai/code/session_01JHq6DLPhFf2kQQpUkPtfZe
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments