A2A 1.0 · Ed25519 receipts · SOC 2 in progress
Build December 03, 2026Status
Protocol · A2A · v0 + 1.0

AgentDraft speaks the A2A protocol.

AgentDraft exposes the Agent2Agent (A2A) protocol at /.well-known/agent.json for the frozen 0.2.0 card and /.well-known/agent-card.json for the JCS-canonicalized, Ed25519-signed 1.0 card. Both use /v1/a2a/rpc for JSON-RPC dispatch. The skills — check availability, propose (HOLD), and commit — run on the same priority-ranked conflict engine that powers the REST protocol.

Updated


01

What is A2A?

A2A is an open protocol for agents to discover and call other agents. Each agent publishes an agent card describing its capabilities, skills, authentication, and endpoint. AgentDraft serves the frozen 0.2.0 card at /.well-known/agent.json and the signed 1.0 card at /.well-known/agent-card.json. Tasks are exchanged over JSON-RPC 2.0 with a message/parts structure that supports text, data, and file payloads. The wire format is intentionally narrow so any A2A client can call any A2A server without per-vendor adapters.

AgentDraft is an A2A server. We do not become a participant in another agent's reasoning loop — we offer scheduling skills that any A2A client can call.


02

How does discovery work?

Fetch either card from the root, no auth. Prefer the 1.0 card for new clients; the 0.2.0 card remains for compatibility.

# frozen 0.2.0 card
GET https://api.agentdraft.io/.well-known/agent.json

# signed A2A 1.0 card (JCS + Ed25519 JWS)
GET https://api.agentdraft.io/.well-known/agent-card.json

The 1.0 card declares the JSON-RPC URL (/v1/a2a/rpc), the three scheduling skills, the Bearer avs_live_* security scheme, and a detached JWS in signatures. Verify it offline against the public JWKS: the signed payload is the card without signatures, canonicalized with JCS (RFC 8785), and the JWS header carries a jku pointing at /.well-known/jwks.json. The 0.2.0 card keeps its original schemaVersion and tasks/send contract.

A Team+ owner can also publish a per-agent card at /v1/agents/{agent_id}/card.json. It uses the same 1.0 shape, but its name and description identify the individual agent and its reply mailbox. The endpoint returns 404 until the owner publishes it, and after revocation.

import base64
import json
import jwt
from jwt import PyJWKClient

card = requests.get(
    "https://api.agentdraft.io/.well-known/agent-card.json"
).json()
sig = card.pop("signatures")[0]

def b64url(raw: bytes) -> str:
    return base64.urlsafe_b64encode(raw).rstrip(b"=").decode()

# JCS-canonicalize the card (RFC 8785), then rebuild the compact JWS.
payload = b64url(json.dumps(card, sort_keys=True, separators=(",", ":")).encode())
token = f"{sig['protected']}.{payload}.{sig['signature']}"
jwks = PyJWKClient("https://api.agentdraft.io/.well-known/jwks.json")
jwt.decode(
    token,
    jwks.get_signing_key_from_jwt(token).key,
    algorithms=["EdDSA"],
    options={"verify_aud": False},
)

03

How does a client call a skill?

Skills are dispatched by sending a task whose message.parts include a data part with an operation field. The v0 contract is deliberately small — one data part, one operation, immediate completion.

POST /v1/a2a/rpc
Authorization: Bearer avs_live_…

{
  "jsonrpc": "2.0",
  "id": "rpc-1",
  "method": "tasks/send",
  "params": {
    "id": "task-001",
    "message": {
      "role": "agent",
      "parts": [{
        "type": "data",
        "data": {
          "operation": "commit",
          "start": "2026-05-26T14:00:00Z",
          "end":   "2026-05-26T14:30:00Z",
          "title": "Discovery call",
          "invitee": { "name": "Ada Lovelace", "email": "ada@example.com" }
        }
      }]
    }
  }
}

title and invitee ({ name, email, notes }) are optional, and record who the slot is for. Successful response: a task with status.state = "completed" and a single artifact carrying the booking id, status, expiry, audit-event id, and any title / invitee — the same fields POST /v1/bookings returns over REST.

The A2A 1.0 surface uses SendMessage and returns a 1.0 Task envelope. The operation still rides in a data part; contextId is echoed when supplied and generated otherwise; the task id is always server-generated.

POST /v1/a2a/rpc
Authorization: Bearer avs_live_…

{
  "jsonrpc": "2.0",
  "id": "rpc-2",
  "method": "SendMessage",
  "params": {
    "message": {
      "messageId": "msg-1",
      "role": "user",
      "parts": [{
        "data": {
          "operation": "commit",
          "start": "2026-05-26T14:00:00Z",
          "end":   "2026-05-26T14:30:00Z"
        }
      }]
    }
  }
}

GetTask reads the stored 1.0 task back for one hour. The booking and audit rows remain the durable record.

{"jsonrpc":"2.0","id":"rpc-3","method":"GetTask","params":{"id":"a2a_01J…"}}

If the owner's consent policy gates commits, SendMessage returns TASK_STATE_AUTH_REQUIRED instead of committing. The slot is parked as the agent's own HOLD and the task's metadata.agentdraft carries consent_request_id, hold_id, expires_at, and a consent_url. After the human decides, the agent retries the task. Legacy tasks/send returns failed with the same consent data so v0 clients keep a valid state.


04

What happens when an agent loses the race?

When a higher-priority agent already holds (or has recently committed) the same slot, the task fails. The failure carries the winner's identity so the calling agent can counter-propose a different slot in the same turn:

{
  "id": "task-001",
  "status": {
    "state": "failed",
    "message": { "role": "agent",
                 "parts": [{ "type": "text", "text": "outranked" }] },
    "data": {
      "winning_booking_id": "bk_01J…",
      "winning_agent_id":   "agt_higher",
      "winning_agent_priority": 1,
      "your_priority": 5,
      "audit_event_id": "aud_01J…"
    }
  }
}

This is the same 409 contract the REST protocol exposes, re-cast in A2A task-status form. The losing agent should either accept the outcome, retry with a different slot, or defer to the user — never blind-retry the same slot.


05

Which skills are available?

  • check_availability. Returns open slots for a date range. Inputs: range_start, range_end, duration_minutes, granularity_minutes, include_holds. Output: a slots[] array. Same response as GET /v1/availability.
  • propose. Creates a HOLD via the conflict engine. The hold expires by default in 30 seconds, or earlier if a higher-priority agent outranks it. Inputs: start, end, and optional buffer_before_min, buffer_after_min, title, invitee, metadata.
  • commit. Same inputs as propose; produces a COMMITTED booking. Atomic — succeeds entirely or returns the winner's identity (no double-writes).

06

What is still missing?

  • Streaming.tasks/sendSubscribe is not implemented — every operation completes synchronously.
  • v0 task history. v0 task ids are echoed for spec conformance but not indexed. The 1.0 GetTask surface stores a readback row for one hour; the durable record for any A2A operation is still the underlying booking (GET /v1/bookings/{id}) or audit event (GET /v1/audit).
  • tasks/cancel. Holds release automatically on TTL; commits cancel via DELETE /v1/bookings/{id}. A tasks/cancel wrapper is on the roadmap.
  • Multi-part counter-proposals. Today a losing agent retries by sending a new SendMessage (or v0 tasks/send) with a different slot. The richer "agent A counters with these three alternatives, agent B picks one" handshake is a future revision.

07

Why bother with A2A if you already have REST?

Three reasons. First, discoverability: an A2A client can find AgentDraft without per-vendor docs — point it at the agent card and it learns the surface. Second, composability: an orchestrator agent can chain a check-availability against AgentDraft with a confirm-email against another A2A server without rewriting both transports. Third, portability: when the broader A2A ecosystem matures, AgentDraft is already a participant — the switching cost of pointing N agents at AgentDraft compounds across both transports.


08

How is this versioned?

The v0 surface is frozen against the 2026-04 spec revision, and the 1.0 surface tracks A2A 1.0 with a signed card at /.well-known/agent-card.json. We will not break either card shape or the method contracts without a versioned URL bump (/v2/a2a/rpc). The 0.2.0 card's schemaVersion tracks its protocol revision, the 1.0 card's supportedInterfaces carries protocolVersion: "1.0", and the version field tracks AgentDraft's own release.


09

Where should I read next?