feat(core): add A2A agent card, delegation endpoint, and MCP server card #266
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.44) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 231 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.326
Real PR Conversation Timeline
1 comments
"Review active on #266"
general
weight: 0.35
myselfkunal
Description
Adds A2A discovery and delegation, plus the MCP Server Card, per the scope agreed in #183.
| Route | Auth |
|---|---|
|
GET /.well-known/agent-card.json: A2A Agent Card | public ||
POST /a2a: JSON-RPCmessage/senddelegation | bearer / JWT ||
GET /mcp/server-card: MCP Server Card (SEP-2127) | public ||
GET /.well-known/mcp-server-card: same card | public |Key points
/a2atakes a structured{tool, arguments}payload in aDataPart. There's no natural-language parsing./a2agets the same filtered, audit-wrapped tools as MCP, so tools outside the persona return-32004.fine_tunereturns a preview unlessconfirmed: trueis set.null, scalars, bad parts) returns-32600/-32602, never a 500.server.jsonand excludes tools, as SEP-2127 requires.For review: SEP-2127's body and its current draft name different paths, so the server card is served at both. Happy to drop one.
Also fixes the stale
/.well-known/mcp.jsonreferences in ROADMAP and ARCHITECTURE.Related Issue
Closes #183
Checklist
make test-python)make verify)Testing
-
readonlyis refusedfine_tuneover/a2a-
data-scientistgets the preview, and the call shows up in the audit log