Skip to content

Create rulesets

This article shows how to create a ruleset on Agent Intelligence data, add rules, and publish it. For the concepts behind policies, rulesets, data sources, and modes, see How policies work.

Step 1: Create a ruleset

In the Admin Portal, go to Agentic Trust > Agent Governance > Policy Management. The list shows each ruleset, its data source, and its mode.

Add a ruleset, then give it a name and an optional description.

Step 2: Add a data source

Under Data sources, add a source and select the one your rules evaluate. For agent decisions, select Agent Intelligence. Its signals then become available to your rules.

Note

You cannot change the data source after the ruleset is published.

Step 3: Add rules

Each rule combines one or more conditions with a result. To add a rule:

  1. Add a condition and select a signal.
  2. Choose an operator, such as Is, and a value.
  3. To match on more than one signal, add conditions and combine them with And or Or. Not negates a group. Add a group for nested logic.
  4. Set the result to Allow, Challenge, or Deny.
  5. To add more rules, select Add rule. Rules are evaluated in order, and the first match wins.
Important

If none of the rules apply, the ruleset defaults to Allow. This is shown at the bottom of the ruleset. Write a rule for every case you want to challenge or deny. Anything that does not match a rule is allowed.

Agent Intelligence signals

A rule can match on any Agent Intelligence signal. The signals most useful for agent decisions are:

SignalWhat it describes
Current ActorWho is acting at the time of the call: HUMAN, AGENT, BOT, or UNKNOWN.
Classification StatusWhether the session's actors have been classified yet.
Session ActorsEvery actor seen in the session so far.
Current Platform IDThe agent platform acting now, when the current actor is an agent.
Current Platform FamilyThe family of the platform acting now.
Detected Platform IDsEvery agent platform seen in the session.
Detected Family IDsEvery agent family seen in the session.

Session, device, and network signals, such as Session Entry Page, Device ID, and IP Country, are also available for finer conditions.

Use a platform ID or family when you match on Current Platform ID, Current Platform Family, Detected Platform IDs, or Detected Family IDs. unknown is an agent or bot that is not named. none means no non-human actor is acting now. Use unknown when a rule should deny unidentified agents.

Agent platforms
Platform IDFamilyDisplay name
unknownunknownUnidentified agent or bot
nonenoneNo non-human actor
chatgpt_agentchatgptChatGPT Agent
chatgpt_atlaschatgptChatGPT Atlas
chatgpt_extensionchatgptChatGPT Extension
codex_agentcodexOpenAI Codex
claude_code_browserclaudeClaude Code (embedded browser)
claude_extensionclaudeClaude for Chrome
cometperplexityComet
perplexity_computerperplexityPerplexity Computer
cloudflare_browser_renderingcloudflareCloudflare Browser Rendering
cursor_browsercursorCursor (embedded browser)
devindevinDevin
manusmanusManus
genspark_browsergensparkGenspark Browser
genspark_extensiongensparkGenspark Extension
automa_extensionautomaAutoma Extension
harpa_extensionharpaHARPA AI Extension
kitesurf_agentkitesurfKitesurf Agent
muse_agentmuseMuse Agent
openclawopenclawOpenClaw
openworkopenworkOpenWork
skyvernskyvernSkyvern
cybaa_agentcybaaCybaa Agent
google_prometheus_botgoogle_prometheusGoogle Prometheus Bot

Step 4: Publish the ruleset

Save the ruleset, then publish it and choose the mode:

  • Monitor: Agent Governance evaluates the ruleset on your real data and logs the result, but does not perform any action. Use it to check the ruleset before it affects your application.
  • Enforce: Agent Governance evaluates the ruleset and returns the result for your backend to act on.
Note

Publishing locks the ruleset's data source. You can still edit the rules in the draft and publish again. You can promote a ruleset from Monitor to Enforce. You cannot move it from Enforce back to Monitor.

Example: deny every agent

For example, suppose you want to deny any session where an agent is acting, and let people through. The following ruleset has a single rule.

  1. Create a ruleset and name it, for example, Restrict agents.
  2. Add the Agent Intelligence data source.
  3. In the rule, set the condition Current Actor Is AGENT, and set the result to Deny. With no other rule, every session that is not an agent falls through to the default Allow.
A rule that denies the session when the current actor is an agent
Click to open the image in a dedicated tab.
  1. Publish the ruleset. Start in Monitor to confirm the result on your real traffic, then promote it to Enforce.
Publish dialog with Monitor and Enforce options
Click to open the image in a dedicated tab.

To call an enforced ruleset from your backend and act on the result, see Integrate Governance with Agent Intelligence.