Most demonstrations of AI agents focus on the brain: the model plans, calls tools, notices errors, and keeps going. Production failures are more often determined by the surrounding machinery. Which records could the agent read? Which actions could it execute? What did the system log? Could a person interrupt it? Was the damage reversible?
These questions sound less glamorous than reasoning benchmarks, but they decide whether an agent is a useful colleague or an unbounded source of operational risk. A stronger model can reduce mistakes. It cannot eliminate ambiguous instructions, compromised data, faulty tools, or legitimate requests with unintended consequences.
The practical distinction between fixed workflows and agents is well described in Anthropic’s guide to building effective agents. Workflows follow predefined routes; agents choose their own steps. That flexibility is valuable precisely where the path cannot be specified in advance. It also means safety cannot depend on predicting every path.
The answer is containment: give the agent freedom inside an environment whose boundaries are explicit and enforced outside the model.
Permission prompts are not a security architecture
A common design asks the user to approve every consequential tool call. This appears safe, but repetitive approval dialogs train people to click through. The user often lacks enough context to judge the request anyway. “Allow access to the customer database?” is not meaningful without showing which records, for what purpose, over what duration, and with which possible writes.
Good permissions are scoped capabilities, not broad consent. An invoice agent may read invoices assigned to one business unit, create draft entries, and submit exceptions for review. It should not inherit the operator’s full database account merely because that is convenient to implement. Credentials should be short-lived, tied to a task, and restricted at the tool layer.
The model can propose an action; deterministic infrastructure must decide whether that action is permitted. This separation matters because prompts are data, not authority. An instruction retrieved from a webpage, email, document, or tool response should never be able to enlarge the agent’s permissions.
That principle is especially important under prompt injection. The OWASP guidance on prompt injection treats both direct and indirect manipulation as a core risk for language-model applications. Filtering suspicious phrases is not enough. Natural language has too many equivalent forms, and useful agents must routinely process untrusted content. Security has to assume that the model may sometimes follow the wrong instruction.
Design for bounded mistakes
Every agent action should have a blast radius. Reading one project folder is safer than reading an entire drive. Drafting an email is safer than sending it. Opening a proposed pull request is safer than pushing directly to production. Reserving inventory is safer than issuing a non-refundable purchase.
This suggests a hierarchy of action modes:
- Read-only inspection for gathering context.
- Sandboxed mutation for testing changes without affecting live state.
- Draft creation for human or automated validation.
- Reversible execution with a clear rollback path.
- Irreversible execution only behind stronger policy and approval.
The hierarchy should be encoded in tools and policy, not left as prose in a system prompt. A prompt can explain desired behavior. It cannot provide isolation, transactions, rate limits, or access control.
Reversibility is particularly underused. Teams often ask how to make an agent correct before acting when they should also ask how to make an incorrect action cheap to undo. Versioned files, soft deletion, staged deployments, compensating transactions, and delayed sends turn severe incidents into recoverable ones. Reliability comes from both avoiding errors and surviving them.
Observability must describe intent and effect
Traditional application logs record calls, status codes, and timing. Agent systems need more context. Operators should be able to reconstruct the user’s objective, the permissions granted, the evidence considered, the tools invoked, the state changed, and the checks performed afterward.
That does not require exposing private chain-of-thought or storing every sensitive token. It requires structured action records: the agent attempted a specific operation for a stated task, using a defined capability, against identified resources, with a recorded result. The useful audit trail is operational, not theatrical.
Stopping conditions deserve equal attention. An agent should have budgets for time, cost, iterations, affected resources, and repeated failures. “Continue until done” is not a production policy. When the system reaches a boundary, it should return a concise account of progress and the decision it needs from a person.
At XioX, we prefer to increase autonomy one boundary at a time. Begin with observation, then drafts, then reversible actions in a narrow domain. Use real traces to measure success and catalog failures. Broaden permissions only when the evidence shows that the next increment of autonomy creates more value than operational burden.
This approach can look conservative beside a dramatic agent demo. In practice, it is what permits ambitious deployment. Teams grant more responsibility when they know mistakes will be visible and contained. Users delegate more freely when the system makes its authority legible.
The central design question is not whether an agent is autonomous. Autonomy is always conditional: on credentials, tools, network access, budgets, and the environment supplied by its builders. The question is whether those conditions were designed deliberately. A capable model inside a weak control plane is a liability. The same model inside a narrow, observable, reversible system can do consequential work without requiring blind trust.
Advertisement