Designing secure AI agents with clear permissions, trust boundaries, human oversight and accountability in production.

An AI assistant gives the wrong answer. Someone notices, corrects it, and moves on.

Now give that same AI access to your CRM, financial systems, customer records and operational workflows.

The consequences change.

An incorrect answer can become an incorrect action. A misunderstanding can modify a record, trigger a transaction, send information to the wrong recipient or initiate a process that nobody intended.

That is the challenge of AI autonomy.

The opportunity is substantial. AI agents can move beyond answering questions to coordinating workflows, using tools, interacting with enterprise systems and completing multi-step tasks. Properly implemented, they can reduce repetitive work, accelerate operations and allow people to concentrate on decisions and relationships where human judgement adds more value.

But the ability to perform an action does not establish the authority to perform it.

At ALGO, we believe the central question is not how autonomous an AI system can become. It is how much autonomy the organisation can safely give it.

Controlled AI autonomy means allowing AI to perform defined actions within explicit limits on authority, access, risk and human oversight, supported by technical enforcement, monitoring and accountability.

In short, controlled autonomy is designed, not granted. The objective is not to prevent AI from acting. It is to design a system in which useful action and effective control develop together.

1. Autonomy is an architectural decision, not a model capability

A capable language model is not necessarily an autonomous system.

Autonomy emerges when that model is connected to tools, APIs, data sources and workflows that allow it to change something outside the conversation.

Consider four increasingly capable systems, which we introduced in AI Architecture: Why the Model Isn’t Everything.

AI operating model

What it does

What becomes important

Knowledge assistant

Searches, interprets and presents information

Reliable context, retrieval permissions and answer quality

Action assistant

Performs specific actions requested by a user

Identity, tool permissions, execution controls and auditability

Orchestrated agent

Coordinates multiple steps, tools or specialised agents

Workflow state, dependencies, approvals and exception handling

Persistent agent

Operates continuously under standing instructions

Monitoring, strict operating boundaries, escalation and ongoing oversight

 

Each step creates opportunities for additional business value. Each also introduces responsibilities that the architecture must support.

A knowledge assistant might help a sales representative find the latest customer information.

An action assistant might update the CRM after the representative reviews a proposed change.

An orchestrated agent might gather information from several systems, prepare a quotation and coordinate its approval.

A persistent agent might monitor incoming requests and initiate permitted workflows without waiting for a new instruction each time.

These systems do not require the same security architecture or level of supervision.

controlled-ai-autonomy-four-operating-models

Our guiding principle is to use the least autonomous architecture capable of delivering the required business outcome.

If a deterministic workflow can perform the task reliably, introducing an autonomous agent may add unnecessary complexity.

If an agent genuinely needs to adapt to changing circumstances, its additional autonomy must be supported by stronger controls.

What matters is the right allocation of work between AI, conventional software and people, rather than maximum independence for the AI.

2. Define what the AI is authorised to do before connecting it to anything

The most important autonomy decision should happen before the agent receives its tools.

What is it allowed to do?

For each use case, we recommend defining six boundaries:

  1. Observe. What information may the AI access?
  2. Recommend. What conclusions or proposed actions may it produce?
  3. Decide. Which decisions may it make without approval?
  4. Execute. Which changes may it make in connected systems?
  5. Escalate. What requires human review or authorisation?
  6. Prohibit. What must never happen autonomously?

This becomes the AI’s operating mandate. Capability should follow purpose: an agent should not acquire capabilities simply because the platform makes them available.

Imagine a customer-service agent connected to a CRM and an order-management system.

It may be authorised to retrieve an order status, classify a request and prepare a response.

It might also be allowed to update a routine service record.

However, issuing a refund, changing payment details or disclosing sensitive customer information may require additional authorisation or remain entirely outside its mandate.

The distinction cannot depend solely on instructions telling the model to behave responsibly.

Permissions and execution limits must be enforced by the surrounding software, not left to the AI’s interpretation.

An agent can recommend an action. The application must independently determine whether the action is permitted.

That separation is fundamental to controlled autonomy.

3. Security must follow the complete path from information to action

Traditional application security remains essential for AI agents. Authentication, authorisation, encryption, access control, logging and secure integrations do not become less important because an AI model is involved.

But agents introduce an additional challenge.

They can interpret external information and use that information to decide what to do next.

The architecture must therefore consider the complete chain:

Agent → Model → Tools → APIs → Services → Data → Third parties

Every connection creates a potential path through which information can influence behaviour.

Consider an agent that reads a customer email, checks an internal database and uses an API to update a record.

The email is external information. It may contain legitimate customer instructions, errors or deliberately malicious content.

The database may contain confidential information.

The API can change business records.

These components should not automatically inherit the same level of trust.

An instruction found in an email should not acquire the authority of an authenticated employee simply because the agent has read it.

This is where agentic AI security becomes different from conventional chatbot safety. If we had to name one pattern to look for above all others, it would be this:

Untrusted input → agent → privileged action

Where that path exists without a hard architectural boundary, the architecture should be redesigned before the agent is given more autonomy.

Trust should limit capability

An agent’s decision is only as trustworthy as the least trusted information influencing it. Its capabilities should therefore change with the trust level of the information in its context.

Context

What the agent may use

Trusted context

Approved privileged capabilities

User context

Only what that user is authorised to do

Untrusted external context

No privileged actions and no sensitive resources

This leads to a simple rule: within a single context, an agent exposed to untrusted data should not also have access to sensitive resources or privileged functionality.

Many useful processes, such as the customer-email example above, need both. The answer is to separate them architecturally rather than combine them:

  • Split the work. Route low-trust information processing and high-trust operations through different contexts.
  • Isolate the privileged context. Prevent arbitrary untrusted content from entering it.
  • Control what crosses. Where information must pass from low trust to high trust, restrict it to defined data types, such as identifiers, numbers or selections, rather than free text.
controlled-ai-autonomy-trust-boundaries

Identity and least privilege

Each agent should operate with an identifiable, controlled identity and only the permissions necessary for its task.

Where an agent acts on behalf of a user, its effective authority should remain within that user’s permissions.

Where an agent operates as a service, its delegated permissions should be narrowly defined.

An agent processing customer-service requests should not receive unrestricted access to financial systems simply because both are available through the organisation’s infrastructure.

As we noted in How to optimize context data for AI in production, relevant does not mean authorised. The same is true of actions.

A useful design question is:

If this agent misunderstood an instruction or received malicious input, what could it actually change?

The answer should be constrained by technical permissions, not by confidence in the model.

Prompt injection and untrusted information

Prompt injection occurs when instructions embedded in content processed by an AI system attempt to redirect its behaviour.

That content might come from a document, website, email, retrieved record or tool response.

For example, an agent reviewing an external document could encounter text directing it to retrieve confidential information and send it elsewhere.

The document is data the agent was asked to examine. It is not an authorised source of instructions.

A secure architecture must preserve that distinction.

Untrusted content should not be able to override operating rules, expand permissions or authorise privileged actions.

This requires more than filtering suspicious wording. Guardrails help, but they are not the security boundary. The boundary comes from separating information sources from authority, reducing capabilities when the agent processes lower-trust information, and validating proposed actions before execution.

Credentials and tool execution

Credentials and authentication tokens should remain outside the model’s conversational context.

Agents should not normally be exposed directly to enterprise systems. They should reach services through a controlled gateway that handles authentication, authorisation, request validation, rate limiting and logging. Tool calls should be validated against permitted operations, user authority and relevant business rules.

Where an action can be made deterministic, such as opening a ticket or updating a record, it is usually better implemented as a defined workflow than left to open-ended reasoning.

For consequential actions, additional controls may include approval gates, execution limits and restricted access to sensitive resources.

The general principle is straightforward:

An agent should never gain more authority merely because it can reach another system.

4. Human in the Loop: put human judgement where it creates the most value

Controlled autonomy does not mean requiring a person to approve every action.

Doing so could remove much of the benefit of automation.

Equally, removing people from every decision would be inappropriate where errors have significant financial, legal, operational or reputational consequences.

The better approach is to design human involvement around the nature of the decision and the consequences of getting it wrong.

Three operating patterns are particularly useful.

Human in the Loop

A person reviews or approves an action before it is executed.

This makes sense when the consequences are material, the situation is ambiguous or the organisation has not yet established sufficient confidence in the system.

Examples might include approving a financial adjustment, authorising an exceptional refund or reviewing a consequential change to customer records.

Human on the Loop

The AI executes permitted actions while people monitor its behaviour and can intervene, suspend operations or correct problems.

This can suit repetitive processes with defined limits, reliable monitoring and manageable consequences.

The human role shifts from approving every action to supervising performance and handling exceptions.

Human out of the Loop

The system completes a bounded process without routine human intervention.

This may be appropriate for well-understood, sufficiently reliable and low-consequence activities.

It does not mean the organisation has surrendered responsibility.

The system still needs technical boundaries, monitoring, ownership and a way to stop or change its behaviour when necessary.

Human oversight should evolve with evidence

These patterns are not necessarily permanent assignments.

An organisation may initially require approval for a particular action, then move towards supervision as the system demonstrates reliable performance. This is closely related to the three roles we described in AI ROI: How to Prioritize Use Cases for Production: AI that assists, AI that executes with control, and AI that acts with governed autonomy.

But that progression should be justified by evidence.

It should depend on factors such as:

  • The consequences of an incorrect action.
  • Measured reliability under representative conditions.
  • The system’s ability to identify uncertainty and exceptions.
  • The effectiveness of monitoring and intervention.
  • The organisation’s capacity to detect, contain and recover from failures.

Not every process should progress to full autonomy.

Some decisions will continue to require human judgement regardless of improvements in model capability.

controlled-ai-autonomy-human-oversight

The trade-offs are real

None of this is free, and two trade-offs deserve to be named openly.

  • Autonomy and governance. Greater authority requires greater control and oversight. An agent that can do more needs more architecture around it, and that architecture has a cost.
  • Control and friction. More approvals and verification can improve safety, but they also slow work down. Requiring approval for everything can quietly remove the benefit that justified the system in the first place.

The balance is simple to state, if not always simple to achieve: controls should rise with the consequences of an incorrect decision or action. Low-consequence tasks deserve light controls. High-consequence actions deserve hard boundaries and independent approval.

The right amount of human oversight is the amount justified by the risk, evidence and operating context.

5. Approvals and escalation must be engineered into the workflow

Human oversight is only effective if the system can implement it reliably.

Telling an agent to ask for approval is not the same as building an approval mechanism.

Consider an AI agent preparing a change to a customer account.

A controlled workflow might involve five steps:

  1. The agent gathers the relevant information and proposes a change.
  2. The application checks whether the proposed action is permitted.
  3. If approval is required, execution pauses and the proposal is presented to an authorised person.
  4. The person approves, rejects or modifies the proposed action.
  5. The system records the decision and executes only what has been authorised.

The architecture needs to preserve the workflow state while approval is pending.

It must also handle situations where approval is refused, the request expires, the underlying data changes or execution fails.

These are ordinary production engineering problems, but they become critical when an AI system is coordinating the workflow.

What the person sees and approves must be exactly what the system executes. The agent should not be able to describe one action to a reviewer and then submit a different one to the underlying tool or API. That makes approval an architectural control, not simply a step in the user interface.

Approval should also apply to a clearly defined action and its relevant parameters. It should not become permission for the agent to perform unrelated actions later.

We also need to distinguish between technical confidence and business authority.

A model might be highly confident that an action is appropriate. That does not mean the organisation has authorised it.

Confidence can inform escalation. It cannot replace permission.

6. When an agent fails, the system must remain under control

Even a well-designed AI agent will encounter conditions it cannot handle reliably.

Information may be missing or contradictory. An integration may become unavailable. A tool might return an unexpected response. The agent may be unable to establish which action is appropriate.

The production architecture should define what happens next.

Depending on the process, the appropriate response might be to retry within predefined limits, request additional information, route the case to a person, suspend the workflow or return to a safe state.

The critical requirement is that failure handling is designed before deployment.

An agent should not be free to improvise indefinitely when it cannot complete a task.

For each consequential workflow, we recommend answering four questions:

Can the problem be detected? The system needs mechanisms to recognise failed tool calls, invalid outputs, incomplete execution and situations outside the authorised operating envelope.

Can the consequences be contained? A failed or uncertain step should not automatically trigger further privileged actions.

Can the process be recovered? Depending on the operation, recovery may require a retry, a compensating action, human intervention or restoration of a previous state.

Can someone determine what happened? Logs and execution traces should make the sequence of events sufficiently understandable for investigation and correction.

These requirements connect directly to the evaluation principles we discussed in How to Evaluate AI Before Production.

Testing whether an agent usually completes a task is not enough.

We also need evidence that it respects its limits and behaves acceptably when conditions are unfavourable.

7. Accountability cannot be delegated to an AI agent

An AI agent may make operational decisions within its assigned authority.

That does not make it accountable in the organisational sense.

People and organisations remain responsible for deciding what the system may do, approving its deployment, supervising its operation and responding when something goes wrong.

This requires clearly assigned ownership.

  • Who defines the agent’s mandate?
  • Who approves access to enterprise systems?
  • Who establishes the limits on autonomous actions?
  • Who reviews incidents and unexpected behaviour?
  • Who can suspend the system?
  • Who decides whether an agent has demonstrated sufficient reliability to receive greater autonomy?

These questions cannot be answered by selecting a more capable model.

They belong to the organisation’s operating model.

Auditability is part of accountability

For consequential actions, an organisation should be able to reconstruct what happened.

A useful audit record may need to establish:

  • What objective or instruction initiated the activity.
  • Which agent and user or service identity were involved.
  • Which information sources and tools were used.
  • What action was proposed.
  • Which permissions and controls were applied.
  • Whether a human approved the action.
  • What was actually executed.
  • Whether execution succeeded, failed or required recovery.

Not every internal reasoning step can necessarily be reconstructed or explained. The practical objective is to maintain reliable evidence of the inputs, decisions, authorisations and actions that matter operationally.

This supports incident investigation, governance, performance improvement and regulatory obligations where applicable.

It also creates a basis for expanding autonomy responsibly.

If an organisation cannot see what its agents are doing, it will struggle to govern their behaviour or justify giving them more responsibility.

For each material agent, we find it useful to record the answers on a single page: its purpose, the decisions and actions it may take, the systems and data it can reach, who can influence its information, its permissions, the sensitive assets it could affect, where trusted and untrusted processing are separated, which actions need approval, and how its behaviour is monitored in production.

8. A seven-part framework for controlled AI autonomy

At ALGO, we find it useful to organise the design of controlled autonomy around seven decisions.

controlled-ai-autonomy-seven-decision-framework

Design decision

The question to answer

What the organisation needs

Mandate

What is the agent supposed to do?

Defined objectives, permitted actions and prohibited activities

Map

What is connected to the agent?

Visibility of models, tools, APIs, data, services and dependencies

Trust

What information and authority can it rely on?

Source trust, identity, authorisation and separation of trusted and untrusted processing

Constrain

What can it do under the current conditions?

Enforced permissions, least privilege and execution boundaries

Escalate

When must a person intervene?

Approval mechanisms, exception handling and human oversight

Verify

How do we know its behaviour is acceptable?

Representative tests, security checks and evidence of control

Operate

How will we keep it under control?

Monitoring, audit records, incident handling and clear ownership

These decisions are connected.

A well-defined mandate is not enough if an agent has excessive permissions.

Strong permissions are not enough if untrusted information can redirect privileged actions.

An approval policy is not enough if the workflow cannot reliably pause before execution, or if what is executed can differ from what was approved.

And successful pre-production testing is not enough if nobody monitors the system afterwards.

Controlled autonomy is therefore a system property. It emerges from how the architecture, security controls, business rules and human responsibilities work together.

9. Seven questions to ask before allowing AI to act

Before introducing an AI agent into an operational workflow, we recommend checking the following.

  1. Is autonomy genuinely necessary? Could conventional automation or an AI assistant with human execution achieve the same outcome more simply?
  2. Is the operating mandate explicit? Can we describe what the agent may observe, recommend, decide and execute, including what it must never do?
  3. Are permissions technically enforced? Does the agent have only the access it needs, within the authority of the user or service it acts for, and are actions checked independently of the model’s instructions?
  4. Is untrusted information prevented from becoming authority? Can external content influence the agent without being allowed to override security rules or authorise sensitive actions, and is untrusted processing separated from privileged action?
  5. Are human approval and escalation mechanisms reliable? Can the system pause, obtain authorisation and resume safely, and is the action executed exactly the action approved?
  6. Have failure conditions been tested? Do we know what happens when information is unreliable, tools fail, instructions conflict or an action cannot be completed?
  7. Is someone accountable for the system after deployment? Can the organisation monitor actions, investigate incidents, enforce controls and adjust the level of autonomy over time?

If these questions cannot yet be answered, the appropriate response may be to narrow the agent’s authority rather than abandon the use case.

That can still deliver meaningful business value while the organisation builds the evidence and controls needed for greater autonomy.

The goal is not less autonomy. It is autonomy we can trust.

The bottom line

AI agents offer the possibility of moving from systems that simply provide information to systems that participate directly in business operations.

That is a meaningful advance.

But the transition from answering to acting changes what the organisation must engineer, secure, evaluate and govern.

The most successful design is not necessarily the one that gives AI the greatest freedom.

It is the one that delivers the required business outcome with an appropriate level of authority, technically enforced boundaries, reliable human oversight and clear accountability.

So, for any agent, ask more than whether the AI is safe. Ask what it can see, what it can trust, what it can reach and what it can do.

At ALGO, our approach to production AI brings these disciplines together. We look beyond the model to the software, data, integrations, security, permissions, workflows, evaluation and operations that make the complete system reliable.

Because giving AI the ability to act is only the first step.

Giving it the ability to act safely, consistently and accountably is the precondition for autonomy in production.

In the next article in our Production AI series, we will examine what happens after deployment: how to observe, govern and optimise AI agents as ongoing operational systems.

Let’s discuss your AI project

If you’re considering introducing AI agents into your organisation, expanding their autonomy or strengthening the security and governance of an existing implementation, we’d be pleased to discuss your requirements.

At ALGO, we help startups, SMEs, enterprises and public administrations design, develop, integrate and operate production-ready AI systems. We combine specialised AI engineering with the software, data, cybersecurity and operational capabilities needed to make them work in the real world, from concept and architecture through development, testing, deployment and operation.

Contact us to explore how controlled autonomy could fit your business.