[{"data":1,"prerenderedAt":18},["ShallowReactive",2],{"$fk2rrn3v6qebb":3},{"slug":4,"title":5,"description":6,"opening":6,"topic":7,"publishedAt":8,"image":9,"tags":10,"html":17},"ai-agent-guardrails","AI agent guardrails: which limits hold when an agent acts, and what a small company sets first","What AI agent guardrails are for an agent that acts, not one that only talks: the four places a limit can hold, which of ours are enforced and which are only instructions, and what a small company should set first.","agentic","2026-11-25T17:00:00.000Z","\u002Fimages\u002Fblog\u002Fai-agent-guardrails\u002Fhero.png",[11,12,13,14,15,16],"ai agent guardrails","guardrails for ai agents","types of guardrails in ai","agentic ai guardrails","ai guardrails","excessive agency","\u003Cp>Search for AI agent guardrails and most of what ranks is written by security vendors for enterprise security teams, and much of it ends in a product. This page is for a business owner about to give an AI agent real access: to send, publish, spend or change data. It covers what guardrails mean for an agent that acts, not one that only talks, the four places a limit can hold, which of ours are enforced and which are only instructions, and what a small company should set first.\u003C\u002Fp>\n\u003Cp>It is written from our own setup. Zero Human runs on Zero Human: its own AI team builds, ships and runs the product, and our founder holds the gates. As of 25 November 2026, our own AI team has done more than 56,000 runs, counting the OS's own built-in runs. What an agent is, and how it differs from a chatbot, is in \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fblog\u002Fwhat-is-agentic-ai\">What agentic AI is\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"what-ai-agent-guardrails-are\">What AI agent guardrails are\u003C\u002Fh2>\n\u003Cp>IBM's \u003Ca href=\"https:\u002F\u002Fwww.ibm.com\u002Fthink\u002Ftopics\u002Fai-guardrails\">explainer\u003C\u002Fa> gives the common definition. AI guardrails are &quot;the safeguards that keep artificial intelligence (AI) systems operating safely, responsibly and within defined boundaries.&quot; They cover &quot;policies, technical controls and monitoring mechanisms&quot;, across data, models, applications and infrastructure. IBM's picture is a road: guardrails are &quot;like the barriers along a highway: they don't slow the car down, but they do help keep it from veering off course.&quot;\u003C\u002Fp>\n\u003Cp>Most of that is about what a model says. An agent also does things. The \u003Ca href=\"https:\u002F\u002Fgenai.owasp.org\u002Fllmrisk\u002Fllm062025-excessive-agency\u002F\">OWASP Top 10 for LLM Applications\u003C\u002Fa> names the risk that comes with doing. It calls it Excessive Agency: &quot;the vulnerability that enables damaging actions to be performed in response to unexpected, ambiguous or manipulated outputs from an LLM, regardless of what is causing the LLM to malfunction.&quot; It traces the cause to three things: &quot;excessive functionality; excessive permissions; excessive autonomy.&quot;\u003C\u002Fp>\n\u003Cp>The words that matter are &quot;regardless of what is causing the LLM to malfunction.&quot; You can't make an agent that is never wrong. You can limit what a wrong step can do. So for an agent that acts, a guardrail is a limit on what it can do, held by something other than the agent, at the moment it acts.\u003C\u002Fp>\n\u003Ch2 id=\"a-written-rule-is-not-a-guardrail\">A written rule is not a guardrail\u003C\u002Fh2>\n\u003Cp>OWASP's advice is to &quot;implement authorization in downstream systems rather than relying on an LLM to decide if an action is allowed or not.&quot; \u003Ca href=\"https:\u002F\u002Fdocs.langchain.com\u002Foss\u002Fpython\u002Flangchain\u002Fguardrails\">LangChain's docs\u003C\u002Fa> show what that looks like in a framework: code that runs &quot;before the agent starts, after it completes, or around model and tool calls&quot;. It is either &quot;rule-based logic like regex patterns, keyword matching, or explicit checks&quot;, or a second model that judges the first. Either way, the check sits outside the agent's own reasoning.\u003C\u002Fp>\n\u003Cp>Our own product has the trap in its vocabulary. Every task has a field called Guardrails, for rules like &quot;never email a customer&quot;. Our \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fwork\u002Ftasks\">docs on tasks\u003C\u002Fa> say what those rules are: &quot;They are instructions to the model. What actually stops a call is a tool scope or a gate.&quot;\u003C\u002Fp>\n\u003Cp>Here is where the line sits in our company. Our AI team reads, triages, researches, drafts, files issues and briefs, and opens pull requests without asking. Our founder approves every merge, each post, any new or changed task or team, and engineering scope before it is built, and the system holds those stops. \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fblog\u002Fhuman-in-the-loop-ai\">Human in the loop AI\u003C\u002Fa> explains how we chose them.\u003C\u002Fp>\n\u003Cp>Some of our rules are only instructions. The Guardrails field is one. So are the checks this page passed before it reached our founder (sources, links, overlap, voice), and the social task's check that a page is live before it drafts a post about it. The merge gate is what holds if one of them is skipped.\u003C\u002Fp>\n\u003Cp>Instructions are still worth writing. They are how an agent does the job well. They just aren't what stops it.\u003C\u002Fp>\n\u003Ch2 id=\"four-places-a-limit-can-hold\">Four places a limit can hold\u003C\u002Fh2>\n\u003Cp>A limit on an agent that acts can sit in four places: what it can reach, what waits for a person, how long it runs, and what it spends. Here is each one, and where ours stands today.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"\u002Fimages\u002Fblog\u002Fai-agent-guardrails\u002Ffig-1.png\" alt=\"Four places a limit can hold, and the rules that are only instructions. Reach: the tool list, pinned values, the folders a task may write and no shell, held by the system. Waits: every merge, post, change to a task or team, and engineering scope wait for the founder at a gate. Run length: 24, 120 or at most 400 steps, a 10-minute command, a 30-minute stall, a loop cap and three retries, held by the system. Spend: caps declared but switched off for our own company today. Underneath, instructions only: the Guardrails field, this page's checks and the live-page check, which help the agent and stop nothing\" loading=\"lazy\" decoding=\"async\">\u003C\u002Fp>\n\u003Cp>\u003Cem>Three layers the system holds, one it doesn't hold for us today, and the rules that are only instructions.\u003C\u002Fem>\u003C\u002Fp>\n\u003Ch3 id=\"what-it-can-reach\">What it can reach\u003C\u002Fh3>\n\u003Cp>OWASP's first fixes are about reach. &quot;Limit the extensions that LLM agents are allowed to call to only the minimum necessary.&quot; And: &quot;Avoid the use of open-ended extensions where possible (e.g., run a shell command, fetch a URL, etc.).&quot;\u003C\u002Fp>\n\u003Cp>In our OS, each task lists the tools it may call, and a run is offered those and no others. A call to any other tool ends the run. A tool can be pinned to some of its values: the task writing this page can open and update a pull request but has no way to merge one, it may write files only in the blog's own folders, and it can never push to our main branch. Its commands run without a shell: one of five named programs with its arguments, no pipes, and no \u003Ccode>git push\u003C\u002Fcode> (\u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Ftools\u002Fworkspaces\">Workspaces\u003C\u002Fa>).\u003C\u002Fp>\n\u003Cp>The connection underneath keeps its own limits. &quot;A read-only token cannot write, whatever the task lists,&quot; as our \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fcontrol\u002Fgates\">docs on gates and tool scopes\u003C\u002Fa> put it. A task can also cap how many times one run makes a kind of call, and the call past the cap is never sent (\u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fwork\u002Ftasks\">Tasks\u003C\u002Fa>).\u003C\u002Fp>\n\u003Ch3 id=\"what-waits-for-a-person\">What waits for a person\u003C\u002Fh3>\n\u003Cp>OWASP's fix for excessive autonomy is to &quot;require a human to approve high-impact actions before they are taken.&quot; What the person sees matters as much as the stop. On our gates it is the exact call, stored before it runs: the merge, the post, the email with every recipient, its subject and its whole body. Approving runs exactly what was stored, and the system checks that what it sends is what was approved. A merge also waits until the run has written a summary of what it is asking, and a question comes with the task's recommended answer.\u003C\u002Fp>\n\u003Cp>Which actions deserve a gate, and what each one costs in waiting, have their own pages: \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fblog\u002Fhuman-in-the-loop-ai\">Human in the loop AI\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fblog\u002Fai-agent-management-platform\">AI agent management platform\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch3 id=\"how-long-it-runs-and-how-often-it-tries-again\">How long it runs, and how often it tries again\u003C\u002Fh3>\n\u003Cp>This is the layer most guardrail pages skip. OWASP files it under \u003Ca href=\"https:\u002F\u002Fgenai.owasp.org\u002Fllmrisk\u002Fllm102025-unbounded-consumption\u002F\">Unbounded Consumption\u003C\u002Fa>, and its fixes are plain: &quot;Set timeouts and throttle processing for resource-intensive operations,&quot; with &quot;restrictions on the number of queued actions and total actions.&quot;\u003C\u002Fp>\n\u003Cp>Here are ours. Every run has a step budget: 24 model turns by default, 120 for a task that works in a repository, and never more than 400. The task writing this page gets 400 steps and up to $6 a run on the top model tier. A command in a workspace is stopped at 10 minutes, and a run that records nothing for 30 minutes is stopped. A loop of tasks on one issue stops at its cap, four laps unless the task sets another, and a chain is retried automatically three times at most (\u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fwork\u002Fruns\">Runs\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fwork\u002Fhandoffs\">Handoffs\u003C\u002Fa>).\u003C\u002Fp>\n\u003Cp>A step limit is blunt. A run that reaches it stops, even when most of its work is done. That is the point: an agent that is stuck stops using steps, and a person or a later run picks the work up.\u003C\u002Fp>\n\u003Ch3 id=\"what-it-spends\">What it spends\u003C\u002Fh3>\n\u003Cp>Spend is our gap, and we'd rather say so. Our spend limits are switched off for our own company, so no cap stops a run on cost. Even with limits on, the per-run cap is not enforced during a run on a Claude connection (\u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fcontrol\u002Fspend\">Spend and models\u003C\u002Fa>). So the $6 on the task writing this page is declared, not enforced. Each task's highest model tier still holds.\u003C\u002Fp>\n\u003Cp>Our docs list what is planned: a run that reaches a cap stopping before its next paid model call, a per-run cap that holds on every connection, and a gate before a run spends more than an amount you set. None of those is live yet.\u003C\u002Fp>\n\u003Ch2 id=\"a-limit-that-held-this-week\">A limit that held this week\u003C\u002Fh2>\n\u003Cp>On 23 November our page on AI agent governance was merged, but it never went live, because the deploy failed. The task that shares a new page on social media checks the page first. It tried seven times, ten minutes apart, found the page not live each time, and its loop cap stopped it at seven. Nothing was drafted or posted, and it now waits for a person.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"\u002Fimages\u002Fblog\u002Fai-agent-guardrails\u002Ffig-2.png\" alt=\"Seven laps of the social task, ten minutes apart, each ending with the page not live. At the seventh, the loop cap stops the chain and the run waits for a person. Nothing was drafted and nothing was posted\" loading=\"lazy\" decoding=\"async\">\u003C\u002Fp>\n\u003Cp>\u003Cem>The task checked seven times. The cap stopped it there, and the work waits for a person.\u003C\u002Fem>\u003C\u002Fp>\n\u003Cp>Two kinds of limit worked together. The check for a live page is an instruction in the task. The cap is held by the system. Had the check been skipped, a post about a page nobody could open would still have stopped at our founder's gate before it went out. Had there been no cap, the task could have kept checking every ten minutes until someone noticed.\u003C\u002Fp>\n\u003Cp>The same deploy also refused to apply a change to a secret setting on its own: it needs a person to read the plan first. Neither limit fixed the deploy. They made sure nothing went out on top of it, and that the problem waits for a person rather than for another lap.\u003C\u002Fp>\n\u003Ch2 id=\"can-an-agent-change-its-own-limits\">Can an agent change its own limits?\u003C\u002Fh2>\n\u003Cp>Ask this of any tool you use. In ours, a person decides which tools a task may call. An agent can design a change to a task and ask for it, never make it. Spend caps are set by a person; no AI member can change one.\u003C\u002Fp>\n\u003Cp>The counts work the same way. Only a person starts them again: a retry by a person resets them, a retry by a task does not. When one of our team leads' tasks tried to retry a chain that had used its three, the system refused.\u003C\u002Fp>\n\u003Cp>Our self-improvement can reword a task's instructions after a run goes wrong, but an approved change &quot;can never widen the task's tools, drop its gates or raise its spend&quot; (\u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fcompany\u002Fdecision-rights\">Decision rights\u003C\u002Fa>). And a task created with no gates gets one on every tool that reaches outside the company, unless a person removes it. The default is closed, and opening it is a person's decision.\u003C\u002Fp>\n\u003Ch2 id=\"what-we-record-and-how-we-use-it\">What we record, and how we use it\u003C\u002Fh2>\n\u003Cp>OWASP is clear that logging prevents nothing. It &quot;can limit the level of damage caused&quot;, because you can see what happened and respond. Every run of ours keeps its input, each step and tool call with what it sent and what came back, its cost, how it ended and any decision it waited on. How long that is kept depends on the plan (\u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fcontrol\u002Fisolation\">Isolation and retention\u003C\u002Fa>).\u003C\u002Fp>\n\u003Cp>When a run goes wrong, our self-improvement reads that record and decides what to change. On 28 October it read a run that had used every step on about twenty reads in a row and stopped before writing anything. Nothing was lost or changed, and the run had already been retried. It logged it as a first sighting to watch, and a second one would file an issue.\u003C\u002Fp>\n\u003Cp>That is a step limit and a record working as a pair. The limit stopped the run. The record said why, so any fix goes to the cause rather than to a guess.\u003C\u002Fp>\n\u003Ch2 id=\"what-a-small-company-should-set-first\">What a small company should set first\u003C\u002Fh2>\n\u003Cp>Here is what we'd tell a small company, in order. Start with what the agent can reach: give it only the tools its job needs, and connect each one with the least access that works. Put a gate on anything that leaves the company or can't be undone, more gates at the start, and remove them as the work earns trust. Give every task a step and retry limit, so a stuck agent stops instead of looping. Then check which of your limits are switched on today, not which ones exist.\u003C\u002Fp>\n\u003Cp>And what to skip: writing long rule lists into the prompt and calling them guardrails. They help the agent, but they stop nothing.\u003C\u002Fp>\n\u003Ch2 id=\"where-to-start\">Where to start\u003C\u002Fh2>\n\u003Cp>Take one agent that can act outside your company. Write down what it can reach, what waits for you, how long it may run and what it may spend. Then check, for each line, whether the system holds it or only the agent's instructions do. \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fcontrol\u002Fgates\">Gates and tool scopes\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fwork\u002Fruns\">Runs\u003C\u002Fa> show how we set ours. The \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fpricing\">free plan\u003C\u002Fa> costs $0 a month.\u003C\u002Fp>\n\u003Ch2 id=\"sources\">Sources\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Our own records, as of 25 November 2026: run history, task records, the Blockers page, self-improvement decisions and decisions at gates, confirmed by our founder.\u003C\u002Fli>\n\u003Cli>Our own search research for this page: Google results and AI overview for &quot;ai agent guardrails&quot;, US, 25 November 2026.\u003C\u002Fli>\n\u003Cli>IBM Think, Tom Krantz and Alexandra Jonker, &quot;\u003Ca href=\"https:\u002F\u002Fwww.ibm.com\u002Fthink\u002Ftopics\u002Fai-guardrails\">What are AI guardrails?\u003C\u002Fa>&quot;, 17 September 2025, read 25 November 2026, for the definition and the highway picture.\u003C\u002Fli>\n\u003Cli>OWASP Gen AI Security Project, &quot;\u003Ca href=\"https:\u002F\u002Fgenai.owasp.org\u002Fllmrisk\u002Fllm062025-excessive-agency\u002F\">LLM06:2025 Excessive Agency\u003C\u002Fa>&quot; and &quot;\u003Ca href=\"https:\u002F\u002Fgenai.owasp.org\u002Fllmrisk\u002Fllm102025-unbounded-consumption\u002F\">LLM10:2025 Unbounded Consumption\u003C\u002Fa>&quot;, OWASP Top 10 for LLM Applications 2025, read 25 November 2026, for the risks and fixes quoted.\u003C\u002Fli>\n\u003Cli>LangChain, &quot;\u003Ca href=\"https:\u002F\u002Fdocs.langchain.com\u002Foss\u002Fpython\u002Flangchain\u002Fguardrails\">Guardrails\u003C\u002Fa>&quot;, LangChain docs, read 25 November 2026, for what a framework offers.\u003C\u002Fli>\n\u003Cli>Zero Human docs: \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fwork\u002Ftasks\">Tasks\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fcontrol\u002Fgates\">Gates and tool scopes\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Ftools\u002Fworkspaces\">Workspaces\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fwork\u002Fruns\">Runs\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fwork\u002Fhandoffs\">Handoffs\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fcontrol\u002Fspend\">Spend and models\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fcompany\u002Fdecision-rights\">Decision rights\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fdocs\u002Fcontrol\u002Fisolation\">Isolation and retention\u003C\u002Fa>, read 25 November 2026.\u003C\u002Fli>\n\u003Cli>Zero Human \u003Ca href=\"https:\u002F\u002Fzerohuman.com\u002Fpricing\">pricing\u003C\u002Fa>, read 25 November 2026.\u003C\u002Fli>\n\u003C\u002Ful>\n",1795688675653]