Lesson 5 of 6

The loop and the guardrails

Agents work in a loop of plan, act, check and adjust. Guardrails keep that loop safe: approvals, limits, logs and a clear point where a person takes over.

3 min readBy Michael Alos

You now know the parts of an agent: the model, the instructions, the tools and the information. What makes it an agent is how those parts work together, over and over.

The loop

An agent works in a cycle:

  1. Plan. Read the goal and decide the next step.
  2. Act. Use a tool or write something.
  3. Check. Look at the result. Did it work? Is anything missing?
  4. Adjust. Decide the next step, or decide the job is done.

It repeats until the goal is met, it gets stuck, or it reaches a point where it should hand over to a person. This loop is what lets an agent handle jobs where the steps aren't the same every time.

It's also why agents need guardrails. Every lap of the loop is a chance to do something useful, or something you didn't intend.

Five guardrails worth insisting on

  1. Approval before anything important. The agent drafts, a person approves. Especially for customer messages, money and anything hard to undo.
  2. Narrow permissions. Only the tools and data the job needs. An agent that answers product questions doesn't need access to payroll.
  3. Limits. A cap on how many emails it can send, how much it can spend, or how many steps it can take before stopping.
  4. A log. A record of what the agent did and why, so you can review it and spot problems early.
  5. A clear handover. Defined situations where it stops and passes the job to a person: complaints, emergencies, unusual requests, anything it's unsure about.

Test before you trust

Before an agent works on its own, run it on real examples while a person watches. Include the awkward cases: the angry customer, the unclear request, the question it shouldn't answer. Loosen the guardrails only as it earns trust, the same way you would with a new employee.

Try this (5 minutes)

Pick a task you might one day hand to an agent. Write down:

  1. The one action you'd always want to approve yourself
  2. The situations where it should stop and hand over to a person
  3. A limit that would contain the damage if it went wrong, such as a maximum number of messages per day

That's a basic guardrail plan. Any vendor or consultant building an agent for you should be able to show you theirs.

Common mistakes

  • Letting an agent act on its own from day one because the demo looked good.
  • Testing only on easy, typical examples.
  • Having no log, so nobody can see what the agent did when something goes wrong.

Check yourself

What are the four stages of the agent loop?

Plan, act, check and adjust.

Name three guardrails worth insisting on.

Any three of: approval before anything important, narrow permissions, limits, a log, and a clear handover to a person.

How should an agent earn more independence?

By being tested on real examples, including awkward ones, and having its guardrails loosened gradually as it proves reliable.

Where could AI give your business the most back?

Answer thirteen questions and get your biggest opportunities ranked, with a rough figure for each. Free, about four minutes, no email required.

Take the AI Opportunity Check →