Skip to Content
These docs describe donkey-kit v0.3.0. Release notes
GovernanceGateway policiesOverview

Offline-verified

Gateway policies

Policies run at the gateway, not in your agent. DDK does not evaluate them. It makes the outcome visible in code: a typed exception, a field on the response, a span attribute. Each surface has its own page, because the policies, the captured refusals and what your code sees differ.

Three things are called “policy” in these docs. Gateway policies are what the gateway enforces on each surface, covered by the pages in this section. Custom policies teach classify() the refusal shape your own gateway policy returns. The policy handshake is a planned, advisory read of the policies in force; the gateway always wins.

One page per surface

  • Models: policies on an LLM proxy instance, the typed exception or field each gives your code, and how to rehearse it offline.
  • MCP tools: policies on an MCP server instance, including what they do to the tool catalog.
  • A2A agents: policies on an A2A agent instance, per protocol version.

Policy families across surfaces

This matrix lines up the policy families the gateway enforces on each surface. A link goes to the section that documents that policy on the surface’s page; — means that surface’s policies page has no section for the family. The status badges live on the linked pages, so this table makes no status claims of its own.

Policy familyModelsMCP toolsA2A agents
Who may callClient ID enforcementGlobal access, attribute-based access—
Token and request limitsToken rate limiting, request rate limiting—Token rate limit
Personal dataPII detectionMCP PII detectorPII detector
Prompt injection and content safetyInjection protection, content safety—Azure content guardrails
Schema and tool poisoning—Schema validation and tool poisoningSchema validation
Approval and step-upOAuth2 OBO and CIBAApproval on invoke_toolChallenges and replay
Kill switchAgent kill switch——
Routing and cachingModel-based routing, semantic caching——
Tool discovery and payload size—Progressive disclosure, payload optimization—
Protocol version——Protocol versions
Last updated on