> ## Documentation Index
> Fetch the complete documentation index at: https://docs.idemeum.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Guardrails

> How every Assist run is secured with guardrail architecture.

## What are guardrails?

Guardrails are the checks between a request and any action: the request is screened, the plan is limited to the skill's allowed tools, your policy decides what may run, and risky steps wait for the employee's approval.

```mermaid theme={null}
%%{init: {
  "theme": "base",
  "themeVariables": {
    "fontFamily": "Inter, ui-sans-serif, system-ui, sans-serif",
    "fontSize": "14px",
    "primaryColor": "#ffffff",
    "primaryBorderColor": "#e4e4e7",
    "primaryTextColor": "#18181b",
    "lineColor": "#a1a1aa",
    "edgeLabelBackground": "#ffffff"
  },
  "flowchart": { "useMaxWidth": false, "nodeSpacing": 40, "rankSpacing": 42 }
}}%%
flowchart TD
    A("AI agent run") --> G1("Gate 1 - Intent screening<br/>Is this a legitimate IT request?")
    G1 --> G2("Gate 2 - Plan validation<br/>Only the skill's allowed tools, in a justified order")
    G2 --> G3("Gate 3 - Policy evaluation<br/>Does the plan comply with central policy?")
    G3 --> G4("Gate 4 - Execution gates<br/>Preview, user consent, and audit on every risky step")
    G4 --> R("Fix verified - ticket with full audit trail")

    G1 -.->|fails| X("Blocked and explained")
    G2 -.-> X
    G3 -.-> X

    classDef card fill:#ffffff,stroke:#e4e4e7,stroke-width:1px,color:#18181b;
    classDef muted fill:#f4f4f5,stroke:#e4e4e7,stroke-width:1px,color:#3f3f46;
    classDef primary fill:#18181b,stroke:#18181b,color:#fafafa;
    classDef destructive fill:#fef2f2,stroke:#fecaca,stroke-width:1px,color:#b91c1c;

    class G1,G2,G3,G4 card;
    class A muted;
    class R primary;
    class X destructive;
```

## What each gate does

| Gate | Description | Blocks |
| - | - | - |
| **G1 - Intent** | Rejects anything outside IT support and any attempt to manipulate the agent, including prompt injection. | Off-topic requests, jailbreak attempts, instructions smuggled inside a request. |
| **G2 - Plan** | Checks the plan against the skill: every step must use one of its allowed tools, and diagnostics must run before fixes. A plan that fails is rewritten, never part-run. | Tool outside the skill's allowlist, corrective actions before diagnosis, skipped prerequisites, risk outside boundary. |
| **G3 - Policy** | Checks the approved plan against your central policy: which actions need admin approval, what's forbidden, for whom. | Anything your organization has ruled out. |
| **G4 - Execution** | Risky steps show exactly what would change and wait for the employee to approve or decline. Only code-reviewed tools run — the AI never writes commands or scripts — and every input, result and decision is recorded. | Every sensitive action goes through approval. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.