Skip to Content
Clovie Docs

Concepts

Policies, monitor and enforce

Policies decide what your agents may do. Every policy starts in monitor mode and only blocks traffic after you promote it to enforce.

What it is

A policy is a rule the gateway applies to your agents' requests. For example: "Block requests that contain credit card numbers", "Only production agents may use this model" or "Hold requests to delete data for a person to approve". Every policy starts by only watching, and blocks traffic only after you promote it to enforce.

When to use it

  • Security teams stop personal data, secrets and prompt injection from reaching models, and limit which models and tools agents may use.
  • Platform teams keep test agents away from production and set different rules per team or environment.
  • Compliance teams turn written AI usage policies into rules that are applied and recorded on every request, and show auditors what was enforced and when.
  • Finance teams require cost tags or keep agents off expensive models.

How it works

Every request from an agent passes through the gateway, which applies the policies that cover that agent before anything reaches the model provider:

Your agentClovie gatewayProviderPolicy decision + auditlogrequestallowed
  1. Your agent to Clovie gateway: request
  2. Clovie gateway to Provider: allowed
  3. Clovie gateway to Policy decision + audit log

For each request it applies to, a policy returns one decision:

DecisionWhat happens in enforce mode
AllowThe request goes through.
DenyThe request is blocked and the agent receives an error that names the policy.
Require approvalThe request waits until a person approves or denies it.
RedactSensitive content is removed before the request reaches the model.

Monitor, enforce and off

Every policy has a mode:

  • Monitor: the policy runs on real traffic and records what it would have decided, but never changes a request. Every new policy starts here.
  • Enforce: the policy's decisions take effect. Denied requests are blocked and approvals are required.
  • Off: the policy does not run.

A policy moves through the same lifecycle every time:

MonitorSimulate 7 daysPromoteEnforcea change to what it checks
  1. Monitor to Simulate 7 days
  2. Simulate 7 days to Promote
  3. Promote to Enforce
  4. Enforce to Monitor: a change to what it checks

Monitor mode lets you see the effect of a rule on real traffic before it can affect anyone. A request that a monitored policy would have blocked is recorded as Would deny, and it still goes through. If someone later changes what an enforced policy checks or who it applies to, it goes back to monitor mode until it is simulated and promoted again.

Set it up

Where policies come from

  • Policy Hub has ready-made packs for common needs, such as data privacy, security baselines and industry rules. Packs install in monitor mode.
  • My Policies is where you create your own policies in the policy editor, test them against a sample request, and manage every policy you have.
  • Import from document turns a written policy, such as an AI usage policy, into a draft policy that installs in monitor mode for you to review.

Promoting a policy to enforce

Once you trust a policy, you promote it. Clovie asks for evidence first:

  1. Run a simulation: in AI Governance → Policies → My policies, select Simulate on the policy. Clovie replays the last 7 days of your traffic through it and shows how many requests it would have allowed, denied or sent for approval.
  2. Check the results: if the policy would block traffic you did not expect, edit it and simulate again.
  3. Promote: select Promote to enforce and confirm. The simulation must be for the current version of the policy and less than 24 hours old.

Only administrators and policy administrators can promote a policy.

Enforcing in an emergency

During an incident you may not be able to wait for 7 days of evidence. An organization administrator or a policy administrator can then enforce a policy straight away, without a simulation. They must write down why, the action is recorded in the audit log as its own event, and the policy is marked Enforced without simulation until it is simulated and promoted the normal way. An organization administrator can turn this option off for the whole organization.

Who a policy applies to

A policy's Scope decides which agents it covers:

  • Organization: every agent.
  • Specific teams: agents owned by the teams you choose.
  • Specific agents: only the agents you name.
  • Matching agents: agents that match conditions you set, such as their environment.

You can exclude individual agents from a wider policy. For a temporary exception, an agent owner can request an exemption, which a policy administrator other than the requester must approve, and which ends automatically on its expiry date.

What you'll see

  • Every decision, including what monitored policies would have done, is in AI Governance → Activity → Audit log.
  • Requests held for a person appear in AI Governance → Policies → Approvals. An approver sees the agent, the model, the policy and the request, and selects Approve or Deny. An approval allows that one request to be retried; it does not change the policy.
  • Each policy shows its mode, its scope and when it was last simulated.

Limits and good to know

  • You can't create or install a policy directly in enforce mode.
  • An enforced policy that blocks a request returns an error to the agent that names the policy, so agent owners can see why.
  • If the gateway can't evaluate your policies during an outage, your organization chooses whether requests are refused (the default) or allowed with an alert. Kill switches always apply.

On this page