Skip to content

feat: A2A Agent Card schema and skill definitions (Phase 1)#21

Open
Copilot wants to merge 3 commits into
mainfrom
copilot/make-darwin-agentic-cloud-discoverable
Open

feat: A2A Agent Card schema and skill definitions (Phase 1)#21
Copilot wants to merge 3 commits into
mainfrom
copilot/make-darwin-agentic-cloud-discoverable

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 25, 2026

Adds A2A (Agent-to-Agent) protocol discoverability to Darwin Agentic Cloud — Phase 1: Agent Card schema and skill definitions.

Changes

  • darwin/agenticcloud/a2a/agent_card.py — Pydantic models matching A2A v0.3.0+ Agent Card spec: AgentCard, AgentProvider, AgentCapabilities, AgentSkill
  • darwin/agenticcloud/a2a/skills.py — Three core skill definitions (darwin.run, darwin.verify, darwin.identity) with full metadata, I/O modes, tags, and example request/response pairs. Includes get_agent_card() builder that reads version dynamically from darwin.agenticcloud.__version__
  • tests/test_a2a_agent_card.py — 30 tests: schema compliance, field types, round-trip serialization, skill validation, no extra fields outside spec

Usage

from darwin.agenticcloud.a2a import get_agent_card

card = get_agent_card(url="https://darwin-agentic-cloud.fly.dev")
print(card.model_dump_json(indent=2))
# → valid /.well-known/agent-card.json content

Phase 2 (well-known URI endpoint on the FastAPI server) builds on this directly.

Copilot AI linked an issue May 25, 2026 that may be closed by this pull request
23 tasks
Add darwin/agenticcloud/a2a/ module with:
- agent_card.py: Pydantic model matching A2A v0.3.0+ Agent Card schema
- skills.py: Three skill definitions (darwin.run, darwin.verify, darwin.identity)
- tests/test_a2a_agent_card.py: 30 tests validating schema compliance

Each skill declares id, name, description, supported I/O modes (JSON),
tags, and example requests/responses per the A2A specification.

Agent-Logs-Url: https://github.com/vje013/darwin-agentic-cloud/sessions/6cde9585-8ed4-4af8-a104-21a2c4101082

Co-authored-by: vje013 <135543245+vje013@users.noreply.github.com>
Copilot AI changed the title [WIP] Make Darwin Agentic Cloud A2A-discoverable feat: A2A Agent Card schema and skill definitions (Phase 1) May 25, 2026
Copilot AI requested a review from vje013 May 25, 2026 19:50
Copilot finished work on behalf of vje013 May 25, 2026 19:50
@vje013 vje013 force-pushed the copilot/make-darwin-agentic-cloud-discoverable branch from 845f12d to e9bfede Compare May 30, 2026 00:13
@vje013
Copy link
Copy Markdown
Owner

vje013 commented May 30, 2026

@copilot can you find the fix to the Lint test that I wrote into your memory? If so, can you apply next cycle?

Fixes CI 'ruff format --check' failure.
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 30, 2026

@copilot can you find the fix to the Lint test that I wrote into your memory? If so, can you apply next cycle?

I don't have a stored memory about this specific fix, but I identified the issue from the CI logs: ruff format --check was failing on tests/test_a2a_agent_card.py. Applied ruff format to fix it in commit 8441b33.

Copilot finished work on behalf of vje013 May 30, 2026 00:25
Copy link
Copy Markdown
Owner

@vje013 vje013 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vje013 vje013 marked this pull request as ready for review May 31, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AGENT TASK: Make Darwin Agentic Cloud A2A-discoverable

2 participants