Run, monitor & govern

Policies, budgets & guard rails

Set the rules every tool call is checked against, cap spend, trip circuit breakers on runaway runs, redact personal data, shield workers from prompt injection, and keep records for as long as you need.

Compliance & Governance is where you decide what your workers may do. Policy rules are checked before every tool call, for every Sequential Agent, Agentic Team and AI Employee in the workspace. Circuit breakers and budgets stop runs that cost too much or fail too often. Data Privacy and Prompt Shield clean what flows in and out of the model, and Retention decides how long the records are kept.

Set these up once per workspace, before you connect workers to systems that matter. Owners and admins make the changes, and every change is written to the audit chain with who made it. The workspace switcher at the top of the screen decides which workspace you are editing.

How a tool call is checked

Run startbudget · breaker
Tool callworker wants to act
Policy rulesdeny · approve · allow
Privacy & shieldredact · scan
Audit chainevery decision
A run is refused at the start if an enforced budget is used up or a red circuit breaker is open. Each tool call is then checked against the policy rules. Personal data is redacted and untrusted content is scanned before it reaches the model, and every decision is recorded.

Step by step

  1. Open Compliance and read the overview

    Click Compliance in the sidebar under Governance. The left panel lists the sections:Overview, Policies, Circuit Breakers,Approvals, Audit Trail, Data Privacy, Prompt Shield, Admin Activity, Retention and Budgets. The overview shows four cards: Active policies (with how many require approval and how many deny), Breaker events in the last 24 hours, Unresolved pause and critical events waiting for review, and PII protection status. Below are the recent circuit breaker events and recent policy evaluations. Tutorial at the top plays a short video of this screen.

    app.turtleaicoworker.com/compliance
    The Compliance and Governance overview with posture cards and recent events
    The Compliance overview: posture at a glance for the selected workspace.click to enlarge
  2. Review the policy rules

    Choose Policies. Each rule shows its name, its action, its description and chips for everything it matches: the functions it covers, the integration, and the surfaces it applies to (for example via all surfaces). Use the switch to turn a rule on or off, and the bin icon to delete it.

    app.turtleaicoworker.com/compliance
    The Policy Rules list with one rule that requires approval for search functions
    Policy Rules: each rule lists the functions and surfaces it covers, with an on and off switch.click to enlarge
  3. Create a policy rule

    Click Add Policy. In Create Policy Rule, give the rule aName and a Description, then pick the Action:

    • Deny: blocks the call. The worker is told a policy stopped it and carries on with the rest of its work.
    • Ask for approval: holds the call until a person approves it. The run pauses rather than failing. See Approvals.
    • Allow (exception): carves an exception out of a broader rule. It only wins where it is more specific than the rule it overrides.
    • Alert only: never blocks. Records the call and notifies.
    • Log only: never blocks. Records the call silently.

    Under Conditions, choose the Integration (or leave All integrations). Once you pick an integration, Functions lists every function it offers by a readable name, from the platform's function catalog. Tick the ones this rule covers, or tick none to cover every function. If you tick no functions, Operation lets you narrow the rule to Writes only or Reads only; this keeps covering functions the integration adds later.

    Where does this apply? scopes the rule to the surfaces a call came from:Internal chat, Website embed, Public link,Private link, Slack, API, Trigger andScheduled. Leave all off to apply everywhere. For example, block writes from the website embed while allowing them in internal chat.

    To stop data leaving for the wrong place, tick Also check the arguments (recipient domain, URL host) and set an Argument constraint (egress): the argument to check (for example to) and the allowed domains. The call is blocked when that argument targets a domain outside the list. Preview effect shows what the rule would decide before you save. ClickCreate. If the rule has no conditions at all, you are asked to confirm, because it would apply to every tool call in the workspace.

    The Create Policy Rule dialog with Name, Description, Action and Conditions
    Create Policy Rule. The rule is written to the audit chain when you save it.click to enlarge
  4. Test a call against your rules

    Click Test a call on the Policies page, pick an integration and a function, and clickTest. The result shows the verdict, which rule decides and why the other matching rules do not. Nothing runs and nothing is recorded.

  5. Set circuit breakers

    Choose Circuit Breakers. A configuration has three levels, each with a cost, a tool failure count and an error rate. The first threshold a run crosses decides what happens:

    • Yellow: alert only.
    • Orange: pause and wait for review.
    • Red: halt immediately. While a red event is unresolved the breaker stays open and new runs in that scope are refused.

    Max per run and Max per day are hard cost caps: crossing either counts as red. Error rates only count once a run has made at least ten tool calls, so one failed call in a tiny run cannot halt a workspace. Click the pencil to open Edit Circuit Breaker. UnderEvents, each trip shows its level and reason. Click Resolve once you have dealt with it, which also lets runs start again after a red halt.

    app.turtleaicoworker.com/compliance
    Circuit Breakers with Yellow, Orange and Red cost thresholds, per-run and per-day caps, and an unresolved event
    Circuit Breakers: graduated thresholds, hard caps, and the events they raised.click to enlarge
  6. Add a budget

    Choose Budgets and click Add budget. Pick the Period(Daily or Monthly), set a Hard cap (USD) at which runs are refused, and a Soft cap (USD) that sends an alert without blocking. Turn offEnforce hard cap if you want the hard cap to alert only. Click Save budget. A budget applies to all runs in the workspace. The monthly hard cap also appears in the Spend MTD cell on the Run screen.

    The New budget dialog with Period, Hard cap, Soft cap and Enforce hard cap
    New budget: cap spend for this workspace over a day or a month.click to enlarge
  7. Turn on Data Privacy

    Choose Data Privacy. Switch on PII Protection to detect and redact personal data in tool inputs and outputs before it reaches the model or a connected tool. UnderPII categories, choose what to detect: email addresses, phone numbers, social security and national identifiers, credit card numbers, physical addresses and personal names (names have a higher false-positive rate). Pick the Redaction mode and click Save changes.

    app.turtleaicoworker.com/compliance
    Data Privacy with PII Protection on, category switches and the redaction mode
    Data Privacy: choose which personal data to detect and how to handle it.click to enlarge
  8. Turn on Prompt Shield

    Text a worker reads from outside (a web page, an email, a document, a table row) can contain instructions written to hijack it. Choose Prompt Shield and switch it on. Pick aResponse mode: Flag only logs and alerts admins but passes the content through; Wrap (recommended) marks the content as untrusted data so the model does not follow instructions inside it; Block withholds the content from the model and notifies admins. Under Scanned sources, choose what to scan: tool and integration results, knowledge base results, table rows and webhook payloads. Add Custom patterns (regular expressions) for phrases you want treated as injection markers. Detections appear under Admin Activity.

    app.turtleaicoworker.com/compliance
    Prompt Shield active with the Wrap response mode and four scanned sources
    Prompt Shield: scan untrusted content before it reaches the model.click to enlarge
  9. Set retention and legal hold

    Choose Retention. Under Add retention, enter a Retention period (days) for audit and evaluation records in this workspace and click Save. Records older than that are purged. Switch on Legal Hold to preserve every audit and compliance record during a legal or audit matter. While the hold is on, purging stops for the workspace until you release it.

    app.turtleaicoworker.com/compliance
    Retention and Legal Hold with a retention period field and a Legal Hold switch
    Retention and Legal Hold: how long records are kept, and a hold that stops all purging.click to enlarge
  10. Word the AI disclosure for anonymous chats

    When someone chats with your worker without signing in (a team public link, private link or website embed, an interface's public page, or an AI employee's private link), they are told they are talking to an AI, as EU AI Act Article 50 requires. The wording is stored as the first message of every such conversation, so the transcript itself shows the disclosure was made. Owners and admins set it underSettings, on the organization page, in AI disclosure. The default names your organization and your owner's email as the contact. You can reword it, for example to use a shared support address, but you cannot leave it empty.

How rules decide when several match

Several rules can match one call. The engine settles it without you having to order them:

  • The stricter block wins. Deny beats Ask for approval, however narrowly the approval rule is drawn. A workspace with "block all deletes" and "approve calendar changes" still blocks a calendar delete.
  • An exception must be narrower. An Allow rule overrides blocks only when it is more specific than every block it would override. Naming a function is more specific than naming an integration, which is more specific than an operation type or surface. A tie never opens anything up.
  • Priority breaks remaining ties. Each rule has a priority number, and a lower number wins.
  • No match means the call runs. Alert only and Log only rules record the call but never decide it.

Reference

Policy rule

FieldTypeWhat it does
NametextWhat the rule is called in lists and on approval cards.
DescriptiontextWhat the rule does, in plain words.
ActionchoiceDeny, Ask for approval, Allow (exception), Alert only or Log only.
IntegrationselectThe connected tool the rule applies to, or All integrations.
Functionsmulti-selectSpecific functions from the function catalog. Empty means every function of the integration.
OperationchoiceAny operation, Writes only or Reads only. Shown when no functions are ticked.
Where does this apply?chipsInternal chat, Website embed, Public link, Private link, Slack, API, Trigger, Scheduled. None ticked means everywhere.
Argument constraint (egress)arg + domainsBlocks the call when the named argument targets a domain outside the allowlist.
PrioritynumberTiebreaker between equally specific rules. Lower wins.
ActiveswitchTurns the rule on or off without deleting it.

Circuit breaker

FieldTypeWhat it does
Yellowcost · failures · error %Alert. Defaults: $5, 5 failures, 20%.
Orangecost · failures · error %Pause and wait for review. Defaults: $20, 15 failures, 40%.
Redcost · failures · error %Halt. New runs are refused until the event is resolved. Defaults: $50, 30 failures, 60%.
Max per runUSDHalts a single run that costs this much.
Max per dayUSDHalts once the day's spend across runs reaches this.
ScopechoiceThe workspace, or a single team or AI employee. The most specific configuration applies.

Budget

FieldTypeWhat it does
PeriodchoiceDaily or Monthly.
Hard cap (USD)decimalNew runs are refused once spend in the period reaches this.
Soft cap (USD)decimalSends one alert per period at this level. Never blocks.
Enforce hard capswitchOn: block runs at the hard cap. Off: alert only.

Data Privacy, Prompt Shield and Retention

SettingTypeWhat it does
PII ProtectionswitchDetect and redact personal data in tool inputs and outputs.
PII categoriesswitchesEmail addresses, Phone numbers, Social security numbers, Credit card numbers, Physical addresses, Personal names.
Redaction modechoiceMask (replace with ****), Hash (one-way hash), Remove entirely, or Flag only (no redaction).
Prompt ShieldswitchScan untrusted content for injected instructions before it reaches the model.
Response modechoiceFlag only, Wrap (recommended) or Block.
Scanned sourcesswitchesTool and integration results, Knowledge base results, Table rows, Webhook payloads.
Custom patternsregex listExtra regular expressions treated as injection markers.
Retention period (days)numberHow long audit and evaluation records are kept before they are purged.
Legal HoldswitchStops all purging for the workspace until released.
AI disclosuretextIn Settings. The sentence shown to anonymous visitors in public chats. Can be reworded, never emptied.

Related