Guide

Production Controls for AI Agents

An AI agent that takes real actions needs limits the model can't talk its way past. This guide collects our articles on those limits: what the agent can reach, which actions wait for a person, how replies are checked before anything runs, and the record you keep afterwards. Read them in any order, starting with the problem in front of you.

Written for

  • CTOs
  • Engineering leaders
  • AI engineers
  • Security and risk
Start here

AI Agent Guardrails: Types, Examples and Implementation

Question: What controls does an AI agent need?

Answer: Layers: input, output, action, data, scope, human approval and runtime limits. Hard rules live in code outside the model, so the agent can't argue past them.

15 min read

How the controls fit together

The layers of control an agent needs, and which ones belong in code outside the model.

  • AI Agent Guardrails: Types, Examples and Implementation

    Question: What controls does an AI agent need?

    Answer: Layers: input, output, action, data, scope, human approval and runtime limits. Hard rules live in code outside the model, so the agent can't argue past them.

    15 min read

Limit what the agent can reach

The tools it may call, the data it may see, and the content it shouldn't trust.

  • AI Agent Permissions: Least Privilege for Tools and Data

    Question: How much access should an AI agent have?

    Answer: Only what the job needs: which tools, what each tool may do, whose data and where it lives. Check permissions outside the model, using the user's own access.

    8 min read
  • PII Redaction for LLMs: How to Redact PII Before Prompts

    Question: How do you keep personal data out of LLM prompts?

    Answer: Find every way it enters, drop what the job doesn't need and swap the rest for numbered placeholders. If the redacted copy is missing, wait. Never send the original.

    17 min read
  • Prompt Injection in AI Agents: How to Prevent Attacks

    Question: Can you stop prompt injection?

    Answer: Not every attack. Limit what a fooled agent can do instead: fewer tools, permission checks on the values in each tool call, and approval for risky actions.

    12 min read

Check actions before they run

Where a person approves, how replies are checked, and when a run is stopped.

  • AI Agent Human Approval: Which Actions Require It?

    Question: Which agent actions need human approval?

    Answer: Ones that can't be undone, leave the company, move money, change access or touch many records. The person approves the exact details, and no answer counts as no.

    12 min read
  • LLM Structured Output Validation: JSON Schema and Retries

    Question: Is a reply that matches the JSON schema safe to use?

    Answer: No. Check that it's complete, then the schema, your business rules and your own records. Retry fixable errors once or twice, and never act on a reply that failed.

    8 min read
  • AI Agent Infinite Loop: How to Detect and Prevent It

    Question: How do you stop an agent that keeps repeating itself?

    Answer: Five limits: a step limit, loop detection, a spend cap, a time limit and a kill switch. When one ends the run, show what the agent tried and hand it to a person.

    8 min read

Keep the evidence

The record that lets someone outside the team explain what the agent did, and why it was allowed.

Putting an agent into production?

Safe AgentOps is how Avesta Labs runs agents in production: permission checks on every tool call, approval gates, evals, audit logs and monitoring, built into Avesta AgentOS. We are a Claude Select Services Partner and an OpenAI Select Partner.

Contact Us

greenDot

We'll use your details to reply to your enquiry. See our Privacy Policy.

Testimonial

greenDot
double quote

AvestaLabs has been an indispensable partner for OnlyFacts. Their development of AI agents on our proprietary datasets combined deep technical expertise with innovative problem-solving and sound strategic advice. They have become a collaborative and trusted extension of our team. We would recommend Avesta without hesitation to organisations seeking high-quality technology delivered with integrity and care.

double quote
Juliette O'Brien OAM

Juliette O'Brien OAM

CEO and Co-Founder, OnlyFacts.io

Other series

Series

The AIRA Guide

Australia's AI Reference Architecture (AIRA) sets out how government AI systems should be designed, bought and governed. This series explains it in plain English and shows how to put it into practice, from human oversight to choosing a vendor.
  • 8 articles
  • 1 hr 30 min read
Series

Building AI-Native Products

Most AI products stall between demo and production. This series explains what AI-native product engineering changes in the product, the team and the process, why AI work breaks down, and how to choose a build path and a partner. It's written from two years of building and running Avesta AgentOS.
  • 9 articles
  • 1 hr 28 min read