Framework

The AI Agent Governance Framework for Enterprise Teams

A working framework for governing AI agents in regulated and enterprise environments. Risks to close, controls to put in place, the order to roll them out, and the metrics to prove it worked.

Rather talk it through first? Book a 30-minute call

1. What an AI agent governance framework is

An AI agent governance framework is the structured set of policies, controls, rollout sequence, and measurement that determines how autonomous AI agents behave inside an organisation. It is not a single product or a single policy document — it is the architectural pattern that links four moving parts:

  • What an agent can see (data access).
  • What an agent can do (tool and action permissions).
  • What an agent says (output controls, redaction, LLM checks).
  • What an agent leaves behind (audit logs, retention, evidence).

The framework is not the same as AI agent governance itself — the pillar concept — or the best-practices playbook. Concept tells you what it is. Best practices tells you what to do. The framework tells you what to build and in what order.

One line: The framework is the wiring diagram between the risks you are trying to close, the controls that close them, and the evidence you produce in the process.

2. Stakeholders the framework has to satisfy

A working framework needs four buy-ins, each with a different lens — and the framework has to produce evidence that each lens cares about.

RoleWhat they care aboutEvidence the framework should produce
CIO / AI leadTime-to-deploy, board-level risk, vendor strategyFleet-wide posture dashboard; agent inventory by status
Risk & ComplianceAuditability, regulatory mapping, policy enforcementQuery-able audit log mapped to GDPR / HIPAA / SOX / ISO 42001 control IDs
SecurityIdentity, tool permissions, data exfiltration pathsPer-agent identity; default-deny allowlists; redaction proof at the boundary
Platform / CTOArchitecture, MCP, model independence, observabilityProvider-agnostic gateway; structured logs; latency budgets

There are role-specific pages for CIOs and compliance leaders and for CTOs and AI platform teams.

3. The four categories of risk

Most agent incidents fall into one of four buckets. Tag your incident log against these from day one — the framework is built to close all four.

  1. Data exposure. The agent saw something it should not have, or leaked it downstream into a vendor model, a tool payload, or a log.
  2. Unauthorised action. The agent used a tool, triggered a workflow, or wrote to a system it was not approved for.
  3. Hallucination on ungrounded data. The agent guessed because it lacked safe access to the truth, then acted on the guess.
  4. Audit failure. You cannot reconstruct what the agent did, why, or for whom — which is itself a regulatory breach in many jurisdictions.

4. The five controls that close them

Five controls, in roll-out order. Each closes one or more of the four risks.

  1. Identity per agent. Each agent has its own credential, separate from the human user. Closes audit failure and unauthorised action; makes revocation possible.
  2. Default-deny tool allowlists. Agents only get the tools they explicitly need. Most production agents need a handful, not dozens. Closes the bulk of unauthorised-action risk.
  3. Redaction at the boundary. PII never leaves the perimeter un-masked. Use entity-aware redactors, not regex. Closes data exposure into vendor models.
  4. LLM checks for fuzzy policy. Use a second model to validate intent, consent, data purpose, and minimisation rules at the boundary — catches the cases policy-as-code can't enumerate.
  5. Structured audit logs. Logs that are queryable, not free text. Map fields to control IDs. Closes audit failure permanently.
Where ContextGate fits: for the tool calls that go through it, ContextGate covers part of each control. It records the AI app and user behind every call, and its Agents page lists each AI app and API key using it (1). You can switch off any tool, which hides it from AI apps and refuses it if called (2). Personal data in tool results is redacted before the AI app sees it (3). Plain-English governance checks, judged by a model, block or warn (4). Every call is logged with its arguments, redacted result and policy outcome, and the log can be filtered (5). It does not map log fields to control IDs, and it doesn't see an AI app's built-in tools or the chat itself.

5. A 90-day rollout plan

A realistic sequence for a regulated enterprise:

Days 0–30

Inventory + baseline

List every agent in production today. Stand up a governance gateway in shadow mode that logs but does not block. Catalogue the actual tools, data sources, and providers in use.

Days 30–60

Enforce + redact

Flip from shadow to enforce on the top-3 highest-risk agents. Apply redaction rules for the entity types you actually saw in the baseline. Start producing the audit log your risk team will live in.

Days 60–90

Scale + audit

Roll the gateway across every agent. Wire continuous agent-to-agent audits. Map the audit log to your regulatory framework and validate with a friendly internal-audit pass.

6. Metrics worth measuring

  • ✓ Number of agents in production, per governance status (pass / fail).
  • ✓ Redactions applied per day, by entity type.
  • ✓ Policy blocks per day, by violation type.
  • ✓ Median + p95 latency added by the governance layer.
  • ✓ Audit log retention vs the strictest applicable regulation.
  • ✓ Time-to-remediate when policy drift is detected.

Posture dashboards live on top of these metrics — see best practices for what to alert on.

7. Anti-patterns to avoid

  • Governance as a one-time review. An agent that passed review on day one is not the agent running on day ninety. The framework has to live in the runtime.
  • Free-text audit logs. If the log is a stream of natural-language sentences, it cannot be queried, mapped to control IDs, or retained against regulatory schedules.
  • Per-user identity for agents. If an agent runs under the calling user's identity, you lose the ability to revoke just the agent — and you cannot answer "what did the agent do" separately from "what did the user do".
  • Redaction after the model call. Once the prompt has left the perimeter, the PII is out, regardless of what you redact downstream.
  • One governance gateway per LLM vendor. If switching models means rewriting policy, you do not have a framework — you have a vendor lock-in.

8. Where to go next

FAQ

AI Agent Governance, Answered

The questions people ask before they connect their AI apps.

What is ContextGate?
ContextGate is one connection you add to Claude, ChatGPT, Cursor or any MCP app. Every tool call through it is checked against your policies, blocked or redacted when it shouldn't happen, and logged.
Which AI apps does it work with?
Claude on the web, the desktop app and Cowork, ChatGPT, Claude Code, Cursor, GitHub Copilot in VS Code, Codex, Gemini CLI and any other app that supports remote MCP servers. The Works with page has the steps for each, including Microsoft Copilot Studio.
Is ContextGate free?
Yes. ContextGate is free, and you do not need a card to sign up.
How does ContextGate control what agents can do?
Every tool call your AI apps make through ContextGate is checked against your workspace policies, before the tool runs and again before the AI app sees the result. A policy can block or warn on a call, redact personal data, or stop a call that carries a secret. You can also switch individual tools off.
How does ContextGate protect sensitive data?
Personal data in tool results is replaced with placeholders before the AI app sees it: 40 built-in types, from emails and phone numbers to UK sort codes and National Insurance numbers, plus your own patterns. When the AI app sends a placeholder back in a later call, the tool gets the real value. The activity log stores arguments as sent and results redacted. Calls whose arguments contain an API key or other secret are blocked, and the secret is kept out of the log. See the privacy policy for how we handle data.
Which rules does ContextGate help with?
It keeps the record and applies your policies, which helps you become compliant; you still make the judgements and file the reports. The rules page covers UK GDPR, the EU AI Act, customer security reviews and ISO 42001, and for UK financial services the FCA's incident and third-party reporting, SM&CR and Consumer Duty. Policy templates such as GDPR Strict, EU AI Act, UK FCA Consumer Duty, UK AML / KYC and PCI DSS Cardholder Data give you a starting point.
Does ContextGate support MCP and tool access?
Yes. ContextGate is an MCP server. Your AI app connects to it once, and it brokers every tool call to your connections (apps such as Gmail, GitHub, Salesforce and Slack, or any remote MCP server) with policy checks, redaction and logging.
What does ContextGate not see?
ContextGate sees only the tool calls your AI apps route through it. It does not see an app's built-in tools, your chat with the AI app, or the model's answers.
What is AI agent governance?
AI agent governance is the layer of controls, permissions, and audit logging that determines what an AI agent is allowed to see, which tools it can use, what actions it can take, and how every decision is recorded. It is distinct from model governance (which controls the LLM) and data governance (which controls the underlying data stores).
How is agent governance different from model governance?
Model governance controls the LLM — choice of provider, prompt filters, model-level safety. Agent governance controls what an agent built on top of that model is allowed to do — its tools, its data access, its actions, and its audit trail. ContextGate works at this layer, on the tool calls an agent makes.

Ready to see what your AI agents do?

Create a free workspace and add ContextGate to your AI apps in minutes. No card required.

Get started free

We'll email you a sign-in link to set up your workspace.

Rather talk it through first? Book a 30-minute call