feat(a2a): Agent Card discovery endpoint #10935

Closed
HAL9000 wants to merge 2 commits from feat/agent-card-discovery into master

2 Commits

Author SHA1 Message Date
CleverAgents Bot 0bfb84f74f ci: stop master workflow on PR updates
CI / lint (pull_request) Has been cancelled
CI / typecheck (pull_request) Has been cancelled
CI / security (pull_request) Has been cancelled
CI / quality (pull_request) Has been cancelled
CI / unit_tests (pull_request) Has been cancelled
CI / integration_tests (pull_request) Has been cancelled
CI / e2e_tests (pull_request) Has been cancelled
CI / coverage (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / docker (pull_request) Has been cancelled
CI / helm (pull_request) Has been cancelled
CI / push-validation (pull_request) Has been cancelled
CI / status-check (pull_request) Has been cancelled
Remove the stale pull_request trigger from master.yml so PR branch commits do not launch the master workflow.

Maintenance patch for PR #10935.
2026-06-10 20:21:57 -04:00
HAL9000 704d8a9f40 feat(a2a): Agent Card discovery endpoint
CI / benchmark-publish (pull_request) Has been skipped
CI / push-validation (pull_request) Successful in 33s
CI / helm (pull_request) Successful in 45s
CI / lint (pull_request) Failing after 53s
CI / build (pull_request) Successful in 52s
CI / quality (pull_request) Successful in 1m22s
CI / typecheck (pull_request) Successful in 1m44s
CI / security (pull_request) Successful in 1m45s
CI / unit_tests (pull_request) Failing after 2m14s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / e2e_tests (pull_request) Failing after 3m53s
CI / integration_tests (pull_request) Successful in 4m26s
CI / status-check (pull_request) Failing after 4s
Implement the Agent Card service for A2A protocol discovery at
/.well-known/agent-card.json with a deprecated alias at
/.well-known/agent.json.

- cards.py (new): AgentCardService class with default card builder,
  6 skill definitions (plan-lifecycle, registry-crud, context-mgmt,
  health-diagnostics, entity-sync, namespace-mgmt), and singleton
  accessor (get_card_service / reset_card_service)
- asgi.py (modified): Add AGENT_CARD_WELL_KNOWN_PATH and
  PREV_AGENT_CARD_WELL_KNOWN_PATH constants, _extract_base_url()
  helper, and HTTP route handlers for both paths with deprecation
  warning on the old path
- __init__.py (modified): Export AgentCardService, get_card_service,
  and reset_card_service from the cleveragents.a2a package
- features/a2a_agent_card.feature (new): 28 BDD scenarios covering
  construction, validation, conformance, serialization, discovery
  endpoint, skill enumeration, caching, and singleton behaviour
- features/steps/a2a_agent_card_steps.py (new): Step definitions
- robot/agent_card.robot (new): 6 Robot Framework integration tests
- robot/helper_agent_card.py (new): Robot helper script

ISSUES CLOSED: #1123
2026-05-04 20:37:51 +00:00