Lab · Proof of concept · Agent2Agent (A2A)

Agents that work
with colleagues.

The Srini Pay referral agent no longer works alone. Here it finds two specialist agents, risk check and compliance, hands each one a task, and keeps a person in the loop where the rules say a person must decide. The messages are real A2A protocol traffic between endpoints on this site.

MCP

gives an agent hands.

Tools and data: look up a merchant, query a graph, read a file. The agent stays in charge.

A2A

gives agents colleagues.

Other agents with their own identity, skills and rules. You delegate a task, track its state and get an answer back, without a screen in between.

  1. 01

    Discover

    Srini Pay reads each agent's Agent Card: who it is, its skills, and who it accepts work from.

  2. 02

    Delegate

    It sends each agent a task over A2A and receives streamed status updates.

  3. 03

    Pause for a person

    Compliance never clears a near-match by itself. It asks for input, and a person decides.

  4. 04

    Audit

    Every hop is logged: who asked, which agent identity answered, what was decided and why.

Pick a referral

Replay: no AI calls and no cost. Real A2A messages, with recorded explanations. Live mode is off on this site for now.

Risk check agent

not discovered yet

  1. Submitted
  2. Working
  3. Input required
  4. Completed

Compliance agent

not discovered yet

  1. Submitted
  2. Working
  3. Input required
  4. Completed

Messages

Srini Pay
Risk check
Compliance
Reviewer (person)

Pick a referral and press “Run the agents”.

    Raw A2A message

    Tap any arrow to see the JSON on the wire.

    { }

    Audit log · every hop

    Each hop is recorded here: who asked, which agent identity answered, what was decided and why.

    What I learned

    The protocol is the easy part. The hard questions are the old ones: which agent is allowed to ask, what each agent is allowed to decide, what it may see, and whether you can show afterwards who decided what and why. Here the identity check, the data each agent receives and the human approval step are in code, and the audit log records every hop.

    Under the hood

    • Agent Cards at /a2a/risk-check/.well-known/agent-card.json and /a2a/compliance/.well-known/agent-card.json.
    • JSON-RPC 2.0 with SendStreamingMessage, streamed over Server-Sent Events (A2A v1.0).
    • Stateless agents in Next.js route handlers, so any server instance can continue a paused task.
    • Decisions come from rules in code. In live mode, Claude only writes the explanation, never the decision.
    • Each agent gets only the fields its skill needs: compliance never sees the payment amount.

    A lab proof of concept, not a production system. Srini Pay, its agents, merchants, people and sanctions list are all invented. Caller identity is a value in the message here; a real deployment would verify it with OAuth or mutual TLS.

    Contact

    Let's talk.

    I'm based in London, UK. If you'd like to talk about engineering, architecture or AI on regulated data and payments platforms, I'd be glad to hear from you.

    srini.vankee@gmail.com
    ↑