AI Resources

Guardrails in Agentic AI

An agent does not only answer. It reads, plans and acts, so a wrong decision can become a wrong action. Guardrails are the limits that keep that from happening. Below, one request through an agent, told for the business, for engineering or for design, with the places a guardrail can catch it.

A guardrail is a limit on what an agent can do, enforced outside the model. Training and written rules (alignment) try to make the model want the right thing. A guardrail assumes it will sometimes get it wrong, and bounds what that mistake can cost. The useful mental picture is a new employee: training shapes their judgment, but the badge still decides which doors open, large purchases still need a sign-off and the building keeps a log.

Before the Map

Three Distinctions to Keep Straight

Most confusion about guardrails comes from mixing these up. The map below uses all three.

  1. Alignment vs. Guardrail

    Wanting the Right Thing vs. Being Unable to Do the Wrong One

    Alignment work (training, a constitution, the system prompt) improves the model’s judgment. A guardrail does not touch judgment at all. It limits what a lapse in judgment can reach. A well-aligned model still needs guardrails, because the inputs it reads can be hostile and its mistakes are not announced.

  2. Capability vs. Permission

    What the Model Could Do vs. What the System Lets It Do

    A model may be capable of drafting a wire transfer. Whether it may send one is a permission, decided by the system around it. Permissions are only real when they are enforced in code the model cannot edit. A rule written in the prompt is a request, and a model can be argued out of a request.

  3. Code vs. Model

    Deterministic Checks vs. Probabilistic Ones

    A deterministic guardrail (a pattern filter, a permission table, a budget counter) fires the same way every time. A probabilistic one (a classifier, a second model acting as judge) catches nuance but can be fooled. Robust systems use both, with code as the floor. This is the same split Singapore’s framework for agentic AI (IMDA, 2026) draws between controls built into the system and guardrails written into a prompt, which can be bypassed or forgotten. On the map, each guardrail carries a tag: CODE or MODEL.

Dynamic Workflow

One Request, Six Lines It Cannot Cross

Eight steps, one at a time. Each step lights the parts of the system it uses. Pick an audience, step through with the arrows or the numbers, or press any part of the map to open its step.

The same run, read for what each layer protects and what it costs when it is missing.

Try One

Send a Request In and Watch Where It Is Caught

Each one is a request an agent could plausibly receive. The map shows which guardrail stops it, and whether code or a model did the catching.

Pick a request from the menu above.

System MapOutcomes

Swipe sideways to see the whole map. Pressing a part opens its step.

PEOPLETHE AGENT · RUNS IN A SANDBOXSecrets outside · network allowlistedTOOLS AND SYSTEMSPERMISSION TIERS · LEAST PRIVILEGEPersonSets the goalapproves, can stopOutside worldemail, web, filesuntrusted dataThe resultchecked, then shownInput guardrailCODE + MODELreads are data, not ordersThe modelMODELdecides the next movePlanning loopCODEbudget and checkpointsAction gateCODEwhich tier is this call?Output guardrailCODE + MODELchecked before believedReadAUTOMATICfiles, search, calendarWriteASKS FIRSTsend, edit, post, buyMoney & credentialsFORBIDDENpay, delete, sign in: a person does itTrace · Audit log · Evals · StopCODEevery call logged where the agent cannot edit it; a person can halt everything
CODE deterministic: fires the same way every timeMODEL probabilistic: a classifier or judge, can be fooled a small dot shows the request moving along a lit path
01 / 08

    Step 01 of 08

    The Goal Is Set, and So Are the Limits

    Guardrails are decided before the agent runs, not after it goes wrong.

    A person states what they want in plain language. Before any work starts, the limits are already in place: what the agent may read, what it may change, how much it may spend and where it must stop and ask. These are not instructions in the prompt. They are settings the agent cannot edit, the way a new employee’s badge decides which doors open on the first day, before anyone has judged their work.

    The Design Half

    How the Layers Map to the Autonomy Model

    The Obliq AI & Agentic Design System asks five questions of any action (the gates) and answers with a level, L0 to L4, that says how far the AI may go. The guardrails above are what enforces that answer. Read side by side, one is the policy and the other is the interface.

    Swipe sideways to read the whole table.

    Guardrail LayerWhat It EnforcesAutonomy Model Gate or LevelThe Surface the User Sees
    Action gate: the forbidden tierSome actions never run, whatever the model decidesGate 2: the cost of being wrong is unbounded, so a block list is enforced in code, not in a promptThe regulated-boundary refusal: the agent names the limit and who can act instead
    Action gate: the confirm tierA person approves before anything irreversible happensGate 1 (reversible?) and L2: AI proposes, the person approvesThe decision card: the exact effect as the headline, the evidence beside it, a plain reason and a way back
    Planning loop: budgets and checkpointsThe run cannot spend or loop beyond a ceilingGate 3: data reliable and cost predictable; L3 and L4 need a budget cap and a time-boxVisible limits, live status, a pause and stop that always work, the manual route when the budget ends
    Output guardrailResults are checked and labeled before the user relies on themGate 4: can the person verify the result in under a minute?Sources inline, a confidence state, uncertain terms marked, the AI disclosure
    Trace, audit log, evals and the stopEverything is reconstructable and a person can halt the systemL3 and L4 surfaces; Gate 5 keeps people in the work on a scheduleThe activity feed with undo, the sampled review queue, the hand-back note, the global stop
    Input guardrail and the sandboxHostile input and the unexpected failure cannot reach the organizationNot a gate: these protect the system whatever level is chosenThe flagged sentence shown with its source; the named wall when the agent cannot reach something

    See the Obliq AI & Agentic Design System Storybook (opens in a new tab)