Skip to content
matthewcm.dev

    ↑ ↓ move · ↵ open · tab scopeopen graph →

    Guardrails and Human Oversight for AI Agents

    Layer an agent's defences, start with PII, safety and irreversible actions, and choose deliberately where the human sits: in the loop, on the loop or above it.

    Seedtended planted 2 min read

    🌱 A rough idea, planted recently. Expect rough edges — it will grow.

    On this page

    Not every action can be trusted entirely to an agent. The design work is deciding which defences to layer, which risks to tackle first, and where a human sits relative to the loop.

    Designing guardrails

    • Layer the defences. Input filters, output validation, tool-level checks and ordinary auth, rather than one big filter that everything has to get past.
    • Start with the most critical risks: personal data, safety, and irreversible actions.
    • Iterate and monitor. Guardrails are a product. Watch what they catch and what slips through.
    • Balance safety and utility. An over-guarded agent is useless; an under-guarded one is a liability.
    • Control memory. Decide what the agent remembers, and for how long.

    Where the human sits

    ModeHuman roleUse when
    HITL (human in the loop)Approves before the actionIrreversible, costly or high-risk actions: payments, deletes, customer-facing messages
    HOTL (human on the loop)Monitors during, can interveneLots of routine actions where a stop button is enough
    HATL (human above the loop)Reviews afterLow-risk, high-volume work; audit and learn

    Making HITL sustainable

    Human-in-the-loop sounds safe until the reviewer is approving their four-hundredth near-identical request.

    • Avoid reviewer fatigue: place touch points strategically and don’t escalate routine tasks.
    • Build efficient intervention interfaces: a view a human can digest in seconds, with automated summaries of what the agent wants to do and why.
    • Feed decisions back so the system learns what actually needs escalating.

    Security and memory

    • Threats to plan for: prompt injection, jailbreaking and data leakage.
    • Multi-layer guardrails plus standard authentication, authorisation and secure deployment; differential privacy for highly sensitive applications.
    • Memory: structure it (short-term, long-term, external) with an explicit access policy; retain selectively (filter out sensitive and unimportant items); version and audit anything critical in long-term memory.

    Concrete patterns from a multi-agent design

    From the worked example in Smart Parking Multi-Agent System - Case Study:

    • Name the business risks first: double booking, leaking a user’s location history, pricing errors that lose money.
    • Minimise data between agents. The user-facing agent keeps location history and never forwards it; other agents receive only what they need.
    • Redact PII. Detect and mask fields that could identify a single user, and anonymise the orchestrator’s logs too.
    • Safeguard every tool: validate arguments, enforce sensible ranges, rate-limit.
    • Trust your inputs carefully. If an agent sets prices from external data like traffic or events, validate that the data is genuine before acting on it.

    Responsible AI principles

    The five I keep in mind: fairness, reliability and safety, privacy and security, inclusiveness, and transparency and accountability. Guardrails are the engineering half; governance, oversight and human-centred design are the other half.

    Related: Agentic System Design Checklist for where guardrails sit in the overall design, and Don’t Read the Code for verifying what an agent produces.

    • #ai-agents
    • #guardrails
    • #human-in-the-loop
    • #ai-safety
    • #responsible-ai
    • #security

    ↪ Links to (3)