{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/agent-intelligence/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"redocly_category":"Guides","type":"markdown"},"seo":{"title":"How policies work","description":"Everything about Mosaic Journeys, SDKs, and APIs","siteUrl":"https://developer.transmitsecurity.com"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"how-policies-work","__idx":0},"children":["How policies work"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A policy is the governance principle for what your application allows. For example, a policy can state that only trusted agents may act, or that a sensitive action needs a stronger check. You create a policy by creating rulesets. A ruleset holds the rules Agent Governance evaluates when your backend asks for a decision, and it returns an outcome your application enforces."," This article explains how a policy, a ruleset, and its rules fit together, and how modes and publishing control when a ruleset takes effect."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"policies-and-rulesets","__idx":1},"children":["Policies and rulesets"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A policy is expressed as one or more rulesets. Each ruleset is an ordered list of rules. Each rule has:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["One or more conditions"]}," on signals, such as ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Current Actor"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Current Platform ID"]},". Conditions combine with ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["And"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Or"]},", and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Not"]}," negates a group."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["A result"]},": ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Allow"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Challenge"]},", or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Deny"]},"."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Agent Governance evaluates the rules in a ruleset in order and returns the result of the first rule that matches. If no rule matches, the ruleset defaults to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Allow"]},". You write rules for the cases you want to stop, challenge, or limit."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"data-sources","__idx":2},"children":["Data sources"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ruleset's signals come from a data source. For agent decisions, the data source is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Agent Intelligence"]},", which contributes session signals such as who is acting, which agent platform is involved, and how the session has behaved so far. For the full list of signals, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/governance/manage_policies#agent-intelligence-signals"},"children":["Manage policies"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ruleset's data source is fixed once you publish it. You choose the data source when you build the ruleset, and you cannot change it afterward."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"modes","__idx":3},"children":["Modes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ruleset has three modes:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Draft"]},": An unpublished working copy. Add and edit rules here. A draft is never evaluated, so it does not affect your application."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Monitor"]},": Agent Governance evaluates the ruleset on your real data and logs the result, but does not perform any action. Use Monitor to confirm a ruleset behaves as you expect before it affects your application."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enforce"]},": Agent Governance evaluates the ruleset and returns the result for your backend to act on."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The same ruleset can hold a different version in each mode at the same time, which works like versioning. For example, you can keep your tested rules in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enforce"]}," in production, run a set of rules you are still evaluating in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Monitor"]},", and work on new rules in a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Draft"]},"—all at once. Publishing a draft to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Monitor"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enforce"]}," replaces that mode's current version. You can promote a ruleset from ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Monitor"]}," to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enforce"]},". That replaces the enforced version. You cannot move a ruleset from ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enforce"]}," back to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Monitor"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"publishing","__idx":4},"children":["Publishing"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You edit rules in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Draft"]},", then publish to put a version into effect. When you publish, you choose the mode—",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Monitor"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enforce"]},". Publishing locks the ruleset's data source. You can keep editing in the draft and publish again. Promotion only goes from ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Monitor"]}," to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enforce"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next","__idx":5},"children":["Next"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To create a ruleset, add rules, and publish it, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/governance/manage_policies"},"children":["Manage policies"]},"."]}]},"headings":[{"value":"How policies work","id":"how-policies-work","depth":1},{"value":"Policies and rulesets","id":"policies-and-rulesets","depth":2},{"value":"Data sources","id":"data-sources","depth":2},{"value":"Modes","id":"modes","depth":2},{"value":"Publishing","id":"publishing","depth":2},{"value":"Next","id":"next","depth":2}],"frontmatter":{"title":"How policies work","markdown":{"toc":{"depth":2}},"seo":{"title":"How policies work"}},"lastModified":"2026-11-22T12:38:43.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/governance/how_policies_work","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}