AI Agent Guardrails: Approvals, Limits and Logs
AI agent guardrails for business: approvals for irreversible actions, spend and rate limits, scoped credentials, logs and a tested kill switch.

AI agent guardrails are controls enforced in code and permissions, not in the prompt, that decide what an agent may do, when a person must approve it, how much it may spend and what record it leaves. This guide helps Australian product owners and development leads choose which controls go in first and prove they work before launch.
Our write-up of an AI chatbot for a business website covers an answer-only assistant under a hard cost cap, and the guide to local LLM for business covers private hardware. Neither limits what a model can do once it has tools, which is the gap here.
Key Takeaways
- Enforce guardrails in code and permissions, not in the prompt.
- Sort actions by reversibility, and make irreversible ones wait for a named approver.
- Cap steps and spend, give the agent narrow credentials of its own and log every step for replay.
- Test a kill switch, and accept the agent only against seeded tests with zero tolerance for unapproved actions.
What AI Agent Guardrails Cover and Where They Sit
An agent is a model that chooses which tools to call, usually in a loop. OWASP's Gen AI Security Project describes excessive agency as damaging actions taken in response to unexpected, ambiguous or manipulated model output, traced to excessive functionality, permissions or autonomy. The Australian Cyber Security Centre's (ACSC) May 2026 guidance on careful adoption of agentic AI services advises against broad agent access and starting with low-risk, well-defined tasks. Treat that as the brief: a narrow job, few tools and controls outside the model.
Decision Inputs to Settle Before Any Build
The running example is a hypothetical accounts payable assistant that proposes payment holds, credit note requests and supplier replies from invoice queries. It is not a client build.
- Task scope - One sentence naming the job and its exclusions, such as never approving payment.
- Action inventory - Every tool marked read or write, each with a named owner. Remove tools the job does not need.
- Cost of error - Rate each action by impact, likelihood and reversibility, as the ACSC guidance advises, and note the money it moves.
- Data sensitivity - The OAIC's guidance on commercially available AI products says privacy obligations cover personal information put into an AI system and output that contains it, so logs need the same care.
- Owners and budget - A named approver, log reviewer and person who can stop the agent, plus a dollar ceiling.
Approvals for Irreversible Actions
The ACSC guidance says designers or operators, not the agent, should decide when human approval is required. Use three tiers set by reversibility.
- Tier 1, read only - Lookups run freely within the requesting user's access.
- Tier 2, reversible write - The agent acts, the action is logged and an undo window applies, such as 24 hours (illustrative).
- Tier 3, irreversible or external - The agent prepares the action and stops for approval, such as any supplier email or payment release. A tool that changes bank details should not exist.
Make approval hard to wave through. Show the exact action and parameters, not the model's summary, bind approval to that payload so it cannot change after sign-off, let it expire, and separate requester from approver where money moves. These are our recommendations, in line with OWASP's advice to require approval for high-impact actions.
Spend and Rate Limits That Fail Closed
Agents loop, and loops cost money. OWASP lists unbounded consumption as a risk, including denial of wallet, where heavy use exploits the cost-per-use model of cloud AI. Enforce these limits outside the model, replacing the example figures with pilot data.
- Per run - Maximum steps, tool calls and model spend, such as 15 calls and AUD 2.
- Per tool - Calls per minute and hour, tighter for writes. OWASP notes rate limiting gives monitoring time to catch undesirable actions.
- Per value - A maximum amount per action, set in the downstream system.
- Per day and month - A budget that stops new runs, as with the gateway cap in the chatbot guide above.
When a limit trips, stop and hand over, as the ACSC's fail-safe default advises, rather than retrying. Give every write a request ID so retries cannot repeat it. Our guide to SaaS API rate limiting without breaking integrations shows how limit responses should read to the caller.
Scoped Credentials and Permission Boundaries
The agent should hold less access than the person who started it.
- Own identity - A separate account per agent. The ACSC guidance warns that static, shared or poorly protected keys are open to theft.
- Split roles - Read tools use read-only roles on the tables the job needs, write tools use separate credentials, and actions run as the requesting user, as OWASP advises.
- Per-call checks - Short-lived tokens, with entitlements checked on every call. The ACSC guidance warns that start-up checks alone let attackers exploit a stale allow decision.
The AICPA's Trust Services Criteria are for attestation or consulting engagements and include one on authorising, changing and removing access by role, with least privilege in mind (CC6.3). They are a design reference, not a certification.
Logging and Replay for AI Agent Guardrails
If you cannot reconstruct a run, you cannot fix or explain it. The ACSC guidance notes that identical prompts can produce different actions, so re-running a prompt will not reproduce an incident. Replay needs a recorded trace holding:
- Run header - Run ID, trigger, acting user, model and prompt versions, tool list.
- Calls - Every model and tool call with exact parameters, responses, status and cost.
- Approvals and limits - What the approver saw, who decided and which limits tripped.
- Sources - Documents or messages that entered the context, so a poisoned source can be traced.
Replay feeds recorded tool responses through a test copy of the agent with writes stubbed. The ACSC guidance recommends isolating agents in enclaves with no write access to logs and holding log deletion requests for human approval. Redact secrets and unneeded personal information. Our guide to SaaS audit logs covers tamper resistance.
A Kill Switch You Have Tested
A kill switch is a control outside the agent that a named person can operate in seconds. It stops new runs, holds queued actions and revokes the agent's credentials. Build it into the orchestration layer and identity system, never the prompt. The ACSC guidance recommends trigger-action protocols that restrict permissions automatically on unexpected behaviour, plus rollback. Tie your limits to it, so repeated tripped limits pause the agent.
Operational Failure Modes to Plan For
- Approval fatigue - Reviewers click through high volumes. Track rejection rates per approver and cut Tier 3 volume.
- Manipulated instructions - An invoice PDF or supplier email can carry instructions. The ACSC guidance lists prompt injection as a way to trick agents into unauthorised actions, so permissions must hold when the model is fooled.
- Scope creep - Review tools and permissions monthly and remove trial tools, which OWASP names as a source of excessive functionality.
A Measurable Acceptance Gate
Test on a staging copy with seeded cases. Pass marks are examples to agree with your team, not benchmarks.
- Approvals - Every seeded Tier 3 action stops for approval, and none runs without a recorded approver. Zero tolerance.
- Credentials - A test script uses the agent's credentials to attempt deletes, other users' reads and out-of-scope writes. Every attempt is refused and logged. Zero tolerance.
- Injection - Test documents tell the agent to send data out. No unapproved action occurs, and each attempt is logged.
- Limits - A seeded loop stops at the step and spend caps and hands over without retrying.
- Replay - A reviewer with only the log can say what happened, why and who approved it.
- Kill switch - In a drill, no new tool call succeeds within an agreed time, for example 60 seconds.
Re-run the set after any change to the model, prompt, tools or permissions, as the ACSC guidance recommends continuous evaluation. Passing shows the controls work as tested, not that the agent is secure or certified.
Implementation Sequence
Release in this order, passing each step's tests first, as the ACSC advises with phased rollout.
- Write the task scope, action inventory and tiers.
- Build read-only tools with logging from the first call.
- Add limits and the kill switch, then run the drill.
- Add Tier 2 writes, then Tier 3 drafts that need approval.
- Run the gate, release to a small group and review logs weekly.
If you are unsure the job needs an agent at all, our guide to chatbot vs AI agent for customer support explains how to decide. For an agent inside your own product, 9Byte builds AI-powered platform options, and the same gate applies.
Related Resources
- OWASP guidance on excessive agency
- OWASP guidance on unbounded consumption
- ACSC guidance on agentic AI services
- AICPA Trust Services Criteria
- OAIC guidance on commercially available AI products
- our chatbot vs AI agent guide
- our SaaS audit logs guide
Common Questions About AI Agent Guardrails
1. What Are AI Agent Guardrails?
Controls enforced outside the model that limit what an agent can do and spend, record its actions and set when a person approves.
2. Which Agent Actions Need Human Approval?
Actions that cannot be undone or that leave the organisation, such as external emails, payments and deletions. Enforce the list in the system, not the prompt.
3. How Do I Limit What an AI Agent Can Spend?
Set caps per run, tool, action value and day or month, enforced before the model or tool is called. A tripped cap stops the run.
4. Do These Guardrails Make an Agent Secure or Compliant?
No. They reduce risk and produce evidence, but do not guarantee security or amount to certification, and privacy duties still apply wherever personal information is involved.
Cap What the Agent Can Do First
Write the action inventory, mark each action by reversibility and give every irreversible one a named approver. Then run the gate on a staging copy and release only what passes.


