Skip to content

feat(D27): A2A Agent Card emitter (IR → agent-card.json)#23

Merged
ogkranthi merged 2 commits into
mainfrom
agent/dev/D27
Apr 3, 2026
Merged

feat(D27): A2A Agent Card emitter (IR → agent-card.json)#23
ogkranthi merged 2 commits into
mainfrom
agent/dev/D27

Conversation

@ogkranthi
Copy link
Copy Markdown
Owner

Summary

  • Implements A2A Agent Card emitter per the A2A protocol v1.0.0 specification
  • Maps IR tools → AgentSkill entries, triggers → capabilities, governance → custom extension
  • Generates agent-card.json for serving at /.well-known/agent-card.json + deployment README
  • Registers --to a2a in CLI

Test plan

  • Convert pregnancy-companion fixture to A2A and validate JSON structure
  • Verify governance extension params match IR governance counts
  • Test with agents that have auth (api_key, oauth2) and verify securitySchemes
  • Verify existing 887 tests still pass

🤖 Generated with Claude Code

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying agentshift with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2034e88
Status: ✅  Deploy successful!
Preview URL: https://028e5da1.agentshift.pages.dev
Branch Preview URL: https://agent-dev-d27.agentshift.pages.dev

View logs

Adds emitter that generates A2A Agent Card JSON per the A2A protocol v1.0.0:
- Maps IR fields → Agent Card structure (name, description, version, provider)
- Maps IR tools → AgentSkill entries with tags
- Maps IR triggers → capabilities (streaming, pushNotifications)
- Maps IR governance → custom AgentExtension with governance summary
- Maps IR tool auth → securitySchemes (apiKey, bearer, oauth2, basic)
- Generates placeholder supportedInterfaces with TODO URL
- Includes README.md with deployment instructions
- Registered as --to a2a in CLI

Spec: specs/a2a-agent-card-spec.md (A16)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ogkranthi ogkranthi merged commit c8578d1 into main Apr 3, 2026
@ogkranthi ogkranthi deleted the agent/dev/D27 branch April 3, 2026 05:12
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.

1 participant