Skip to main content
A2A Gateway

Keep control when
agents hand off work.

The DVARA A2A Gateway is a component of DVARA, the AI gateway for model, tool and agent calls. Set rules for agent-to-agent calls, check sensitive data, and ask for approval before selected handoffs proceed.

Calling agentRequests a task
DVARAA2A Gateway
PolicyApprovalsData checks
Configured request & response checks
FlightdeckActivity & evidence
Registered peerHandles the task
DVARA governs the handoff; your framework controls the workflow.

How do I govern AI agents that delegate tasks to other agents (A2A)?​

Route every agent-to-agent delegation through the Enterprise DVARA A2A Gateway. Each hop is authenticated, checked against workspace rules for the caller, peer, and skill, then subject to configured PII, approval, and loop controls. Keep the delegation guard, on by default since 1.8.3, active to refuse cycles and chains beyond depth eight. A denied hop returns a2a_policy_denied; every governed hop records intent plus result or denial evidence joined by trace information.

  1. Register the peer in the caller's workspace. Workspace-facing A2A operations require a valid workspace API key; use a2a:send for messages and task-changing operations.
  2. Route the hop through DVARA. Address the registered target agent through the A2A Gateway instead of calling the peer directly.
  3. Apply explicit workspace rules. Match the source agent, target agent, and requested skill. Configure PII enforcement and approval only where required; PII defaults to LOG and approvals require matching agent or skill rules.
  4. Carry one session ID. Use the same X-Session-Id across related calls so the Enterprise A2A loop detector can judge the session and an auto-kill can stop its later calls.
  5. Keep the delegation guard active. On by default from 1.8.3 in enforce mode with the agent-skill rule and maximum depth 8, it refuses with 409 a hop that repeats the same agent and skill in its chain (a2a_delegation_cycle) or would make the chain longer than 8 (a2a_delegation_depth_exceeded).
  6. Trace the decision. A policy denial does not call the peer. The client receives a2a_policy_denied, while the audit trail records hop intent and result or denial evidence with trace information.

An A2A 1.0 policy denial uses this documented JSON-RPC error shape:

{
  "jsonrpc": "2.0",
  "id": "1",
  "error": {
    "code": -32000,
    "message": "Hop denied by A2A policy",
    "data": [{
      "@type": "type.googleapis.com/google.rpc.ErrorInfo",
      "reason": "A2A_POLICY_DENIED",
      "domain": "dvarahq.com",
      "metadata": {
        "code": "a2a_policy_denied",
        "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
      }
    }]
  }
}

Availability: The A2A plane is Enterprise-only. Since 1.8.2 it runs without a licence in the Development posture for non-production use, within 3 workspaces and 100,000 governed calls a month. A signed licence removes those limits and adds production rights and support.

Limits and conditions: DVARA governs one routed hop at a time and does not orchestrate the wider workflow. Direct peer calls bypass these controls. Authentication failures and unknown peers occur before a governed-hop record is written. The guard signs each delegation chain and needs a signing secret of at least 32 bytes that is not a published placeholder. Without a valid secret, a development profile (dev, test, ci, local, or default) runs the guard as off with a warning; a production profile refuses to start unless the guard mode is off.

Read the A2A Gateway API guide →

Decide which handoffs are allowed​

A support agent needs help from a billing agent. Register the billing agent in the workspace, then define which calls should proceed, be denied, or wait for a person.

Set access rules

A2A policies match the source agent, target agent, and requested skill. No matching rule means allow; the first matching ALLOW or DENY rule decides. With several policies, a DENY in any of them wins.

Pause selected calls

Configure target agents or skill patterns that need approval. A matching call waits before reaching the peer. By default, no decision within 300 seconds means deny.

Use registered peers

Calls resolve to active peers in the caller’s workspace. Choose stored credentials or let the caller provide its own delegated token.

A call that does not name its skill is treated as matching every skill-scoped DENY rule and approval rule, so it cannot slip past them. A skill-scoped ALLOW rule matches only when the caller sends the skill. Test both allowed and denied handoffs before relying on those rules.

Configure A2A access and approvals →

Check what agents send and return​

PII detection is on by default with LOG, which leaves content unchanged. Configure BLOCK to reject detected sensitive data in outgoing message text, or REDACT to remove it.

Successful replies are checked too. BLOCK withholds a reply containing detected PII; REDACT and TOKENIZE remove newly detected response values irreversibly. These checks do not undo an action the peer has already taken.

Choose your PII settings →

Follow the handoff in Flightdeck​

With A2A persistence configured, inspect recorded calls by source, target, skill, workspace, session, status, and latency. Use the separate A2A audit view for recorded governance events.

Flightdeck A2A Traffic showing sample source and target agents, skills, workspaces, sessions, HTTP status, latency, and PII indicators.Flightdeck A2A Traffic showing sample source and target agents, skills, workspaces, sessions, HTTP status, latency, and PII indicators.
A2A Traffic with demo data, not the audit-chain viewer.

The hop audit starts after authentication and peer resolution. Invalid credentials and unknown peers do not create a governed-hop record. Audit and traffic writes are best-effort, so a storage failure can leave gaps.

Explore A2A activity in Flightdeck → · Meet Flightdeck

Start with one agent handoff​

The A2A Gateway runs inside the Enterprise Gateway. It is not included in DVARA Open Source. See Pricing for production rights and support.

Register one peer, configure its credentials, then send an allowed call and a denied call through DVARA. Review the response and recorded activity before adding more agents.

Follow the A2A setup guide →

Before you connect your agents

How do I govern AI agents that delegate tasks to other agents (A2A)?

Route every agent-to-agent delegation through the Enterprise DVARA A2A Gateway. Each hop is authenticated, checked against workspace rules for the caller, peer, and skill, then subject to configured PII, approval, and loop controls. Keep the delegation guard, on by default since 1.8.3, active to refuse cycles and chains beyond depth eight. A denied hop returns a2a_policy_denied; every governed hop records intent plus result or denial evidence joined by trace information.

Does DVARA decide which agent runs next?

No. Your application or agent framework chooses the next agent. The DVARA A2A Gateway checks the handoff sent through it; it does not orchestrate the workflow.

Are agent calls denied until I add a policy?

No. A2A policy allows a call when no rule matches. The first matching ALLOW or DENY rule decides. With several policies, a DENY in any of them wins. Add explicit deny rules where needed and test them before sending production traffic. A call that does not name its skill is treated as matching every skill-scoped DENY rule and approval rule, so it cannot slip past them. A skill-scoped ALLOW rule matches only when the caller sends the skill.

How do peer credentials work?

In stored mode, DVARA resolves the registered peer’s configured credential. In delegated mode, the caller supplies its upstream token. Delegated mode forwards that token; it does not perform an OAuth consent or token-exchange flow.

Can I require signed Agent Cards?

Yes. Configure a trusted public key for the peer and enable a2a.discovery.require-signed-cards. This setting is off by default. A signature that fails verification against a pinned key is rejected even when the setting is off.

Can an agent bypass these checks?

A call made directly to a peer does not pass through DVARA. Use network restrictions and peer access controls when all handoffs must use the gateway. Response checks can withhold content, but cannot undo work the peer has already performed.

Make the next handoff
a governed one.​

Connect a peer, set a rule, and inspect the result.