An AI agent has been running successfully in production for three months.
Then something begins to change.
Tasks take longer. More requests require human intervention. Operating costs are increasing. The agent occasionally retrieves the wrong information, and some workflows require several attempts before completing successfully.
The system is still working. But is it working as well as it should? Is it still delivering the business value that justified its implementation?
And does anyone know what needs to change?
These are operational questions, not simply AI questions.
An agent that works on launch day has passed a test. It has not yet earned trust.
Getting an AI agent into production is an engineering achievement. Keeping it reliable, secure, economically sustainable and valuable over time requires an ongoing operational discipline.
At ALGO, we find it helpful to approach the operation of agentic AI systems through three interconnected disciplines:
- Observe. Understand what the system is actually doing.
- Govern. Ensure it continues to operate within acceptable boundaries.
- Optimise. Improve its performance, efficiency and business impact.
For convenience, throughout this article we will refer to these three disciplines collectively as the Observe, Govern and Optimise (OGO) framework.
The order matters. We cannot effectively govern behaviour we cannot observe. And we cannot responsibly optimise a system we do not have under control.
|
Discipline |
Central question |
Engineering objective |
Example indicators |
|
Observe |
Do we understand what the system is doing? |
Establish reliable evidence of behaviour, performance, security and cost. |
Workflow duration, tool failures, cost per task, business KPIs. |
|
Govern |
Can we trust and control the system? |
Maintain authorised behaviour, quality, security and accountability. |
Factual accuracy, guardrail violations, approval and escalation rates. |
|
Optimise |
Is the system delivering increasing business value? |
Improve the complete system without compromising quality or control. |
Cost per successfully completed task, retrieval precision, human rework, business outcomes. |
Deployment is not the finish line. It is the point at which operating the system begins in earnest.
What does it mean to operate agentic AI in production?
Operating agentic AI in production means continuously managing the behaviour, reliability, security, cost and business performance of AI systems capable of making decisions, using tools and executing workflows within an organisation.
It goes considerably beyond infrastructure monitoring or checking whether a model is available.
An AI agent may retrieve information, interact with several business applications, coordinate other agents, make recommendations, request human approval and execute actions across multiple systems.
Each interaction introduces dependencies. Each decision introduces potential consequences. Each additional step can affect quality, latency and cost.
Once AI moves from assisting people to acting on their behalf, the nature of the operational risk also changes.
A knowledge assistant that gives a poor answer can be corrected by the person reading it. An agent that calls tools, changes records or delegates work to other agents can turn a small error into an operational problem before anyone notices.
Many agents perform well in demonstrations but disappoint in production. The underlying problem is often not the model itself. Rather, the organisation:
- Cannot adequately see what the agent is doing.
- Cannot reliably control how it behaves.
- Cannot measure and systematically improve its real impact.
The consequences can include uncontrolled costs, inaccurate outputs, data leakage, agents caught in execution loops and a gradual loss of confidence across the business.
Production also means depending on systems the agent does not control. Enterprise applications become unavailable, APIs fail, data cannot be retrieved and dependencies time out.
A well-engineered system detects these problems and handles them transparently rather than quietly manufacturing certainty.
In our previous article, Safe AI Agents: How to Give Them Autonomy Without Losing Control, we explored how to establish the boundaries within which agents should operate.
The next question is how to maintain effective control, and continue creating value, once those agents become part of everyday business operations.
That is where Observe, Govern and Optimise comes in.
1. Observe: understand what the agent is actually doing
The operational question: Can we see and understand what is happening across the complete agentic system, and what it means for the business?
Knowing that an agent completed a request is useful. Knowing how it completed that request is considerably more valuable.
Consider an agent responsible for processing a customer service request. It retrieves customer information, checks the applicable policy, consults another business system and determines the appropriate next action.
The final result may appear correct. But behind that result, the agent might have made unnecessary API calls, retrieved outdated information, repeated an operation or relied on an inefficient sequence of steps.
Without sufficient visibility, these problems can remain hidden until they become expensive or consequential.
Observability must extend across the entire workflow
Effective agentic AI observability should cover:
- The original request or objective.
- The information and context used by the agent.
- Model responses and observable decision points.
- Tool calls and API interactions.
- Coordination and handoffs between agents.
- Workflow state and execution history.
- Errors, retries, exceptions and failing dependencies.
- Human interventions and approvals.
- Latency, resource consumption and cost.
- The eventual business outcome.
End-to-end tracing connects these individual activities into a coherent record of how a task was performed.
A single request may pass through retrieval, filtering, re-ranking, context assembly, model calls, tool execution and validation. Measuring only the model’s performance may tell us relatively little about where the actual problem lies.
We should also be realistic about what tracing can reveal. It does not necessarily provide access to a model’s internal reasoning. It does, however, allow us to examine the inputs, observable decisions, tool calls, approvals and actions within the surrounding system.
That distinction matters when investigating failures or unexpected behaviour.
What should organisations monitor?
We recommend looking at operational performance from four complementary perspectives.
|
Perspective |
What we need to understand |
Example metrics |
|
System health |
Is the complete system functioning reliably? |
Availability, API errors, workflow duration, dependency failures. |
|
Agent behaviour |
Is the agent performing its work as intended? |
Retrieval quality, tool failures, retry frequency, handoff latency, exceptions. |
|
Operational economics |
What resources are required to deliver the outcome? |
Token consumption, cost per request, cost per successfully completed task. |
|
Business performance |
Is the system still delivering the outcome it was built to achieve? |
The business KPIs agreed before development and deployment. |
Operational dashboards should make these metrics accessible to the people responsible for running the system.
The fourth perspective is particularly important. An AI agent can remain technically healthy while gradually becoming less valuable to the business.
Monitoring system availability alone will not necessarily reveal that deterioration.
Security must also be observable
As agents interact with enterprise applications, external tools, data sources and other agents, the security environment becomes more complex.
Security visibility should extend across:
- Agents and models.
- Tools, APIs and Model Context Protocol (MCP) infrastructure, where used.
- Data flows and third-party dependencies.
- Authentication and authorisation.
- Access to sensitive information and its potential exposure.
- Actions or behaviour inconsistent with the system’s intended security posture.
Organisations need to understand which components exist, how they interact, what they can access and whether their actual behaviour remains consistent with the intended security architecture.
However, collecting more data is not necessarily the same as improving observability.
The objective is to collect enough meaningful evidence to understand behaviour, diagnose problems and make informed operational decisions, without unnecessarily exposing sensitive information through the monitoring process itself.
The production test: If an important workflow failed yesterday, could we reconstruct what happened, identify where the problem occurred, establish what information was used, understand its consequences and determine what it cost?
2. Govern: maintain control as agents operate
The operational question: Is the agent continuing to act correctly, securely and within its authorised boundaries?
Governance does not finish when an AI system is approved for deployment.
An agent’s operating environment changes. Business rules evolve. Data is updated. APIs change. Models are replaced. New workflows and integrations are introduced.
A system that was operating within acceptable boundaries at launch still needs to demonstrate that it remains within those boundaries today.
Production governance is the continuous enforcement, monitoring and review of the rules under which an AI system operates.
Turn governance into an operational capability
For agentic AI, effective operational governance includes:
- Enforcing permissions, consent requirements and authorised actions.
- Monitoring guardrail violations and unexpected behaviour.
- Validating the quality and accuracy of outputs against agreed criteria.
- Managing human approvals and escalation.
- Detecting potential security and data access incidents.
- Maintaining auditable records of observable decisions and actions.
- Managing operational risk and compliance.
- Establishing procedures for responding to failures.
- Maintaining the ability to restrict, suspend or change an agent’s behaviour when necessary.
The distinction between monitoring and enforcement matters.
A dashboard that reports an unauthorised action after it has occurred is useful for investigation. A control that prevents the action from taking place provides a different, and often more important, capability.
Both have a role.
The objective is not simply to document the boundaries within which an agent should operate. It is to ensure that those boundaries are enforced by the surrounding system.
Measure whether governance is working
Governance should produce operational evidence, not just documentation.
|
Metric |
What it helps us understand |
|
Task completion rate |
Whether the agent successfully achieves its intended objective. |
|
Factual accuracy |
Whether outputs remain reliable against agreed criteria. |
|
Guardrail violation rate |
How frequently the agent encounters or attempts to exceed defined boundaries. |
|
First-pass approval rate |
How often proposed outputs or actions meet human approval requirements without rework. |
|
Human escalation rate |
How frequently cases require human intervention. |
These metrics need to be interpreted together.
A declining human escalation rate might indicate that an agent is becoming more reliable. It might also indicate that the system is failing to escalate cases that genuinely require human judgement.
Likewise, a high task completion rate means relatively little if completed tasks contain errors or violate business rules.
We explored the importance of establishing meaningful quality thresholds in our article How to Evaluate AI Before Production. Those thresholds should continue to inform operational decisions once the system is live.
Human oversight should evolve with evidence
The appropriate degree of human oversight does not necessarily remain constant throughout the lifetime of an AI system.
As evidence of reliability accumulates, and where the nature and consequences of the work permit it, organisations may consider moving between different oversight models.
|
Oversight model |
How it operates |
|
Human in the loop |
A person reviews or approves designated actions before they are executed. |
|
Human on the loop |
The agent operates within authorised boundaries while a person supervises its behaviour and can intervene when necessary. |
|
Human out of the loop |
The agent executes designated workflows without routine human intervention, within established operational controls. |
Greater autonomy should not be treated as an objective in itself. The appropriate level depends on the reliability of the system, the authority it has been given and the potential consequences of its actions.
Nor should increased autonomy be confused with reduced accountability.
Even where an agent operates without routine human intervention, the system still requires monitoring, operational controls and a clearly identified owner.
Autonomy changes where people sit within the process. It does not remove organisational responsibility.
Leave room for exceptions
Good governance also means recognising that not every legitimate situation will fit the rules of an automated workflow.
As AI agents assume greater operational responsibility, there is a risk that organisations begin to treat the system’s interpretation of a situation as definitive, even when individual circumstances warrant a different response.
People should not find themselves unable to challenge an automated decision simply because their circumstances fall outside the assumptions on which the system was designed.
A well-governed agentic AI system should therefore incorporate mechanisms for identifying and escalating exceptions, together with a clear and accessible route to a person who can understand the circumstances, exercise judgement and, where appropriate, override the automated decision.
The ability to accommodate legitimate exceptions is not a failure of automation. It is a characteristic of a well-engineered production system.
Technology should serve people, not ask people to serve the technology.
Someone must own the response
When a production agent behaves unexpectedly, somebody needs to be responsible for investigating and resolving the issue.
The organisation should know:
- Who receives operational alerts.
- Who investigates failures.
- Who can restrict or suspend agent activity.
- Who approves corrective changes.
- Who remains accountable for the affected business process.
An agent can execute work autonomously. Accountability for that work remains an organisational responsibility.
The production test: If an agent began behaving outside its acceptable operating boundaries this afternoon, would we detect it, contain the problem, know who was responsible for resolving it and be able to intervene quickly enough?
3. Optimise: improve the complete system, not just the model
The operational question: Is the system becoming more effective, efficient and valuable over time?
Once we understand how a system behaves and have the mechanisms to govern it, we can begin improving it systematically.
One of the advantages of operating AI in production is that real usage provides evidence that was unavailable during development.
We discover which tasks are straightforward, which require more complex reasoning, where retrieval fails, which workflows generate unnecessary steps and where human intervention genuinely adds value.
That evidence creates opportunities for improvement across the complete system.
Where should optimisation take place?
|
Optimisation area |
Potential improvement |
|
Prompts and context |
Reduce unnecessary information, improve the relevance of model inputs and use tokens more efficiently. |
|
Retrieval |
Improve the accuracy and relevance of information supplied to the agent. |
|
Model selection and routing |
Allocate tasks to models best suited to their requirements, including smaller models where appropriate. |
|
Workflow orchestration |
Eliminate unnecessary steps, tool calls and dependencies. |
|
Caching |
Avoid repeatedly processing or retrieving the same information where it is appropriate to reuse it. |
|
Retry and fallback logic |
Improve recovery from failures without excessive repetition or cost. |
|
Agent coordination |
Improve the reliability and efficiency of handoffs between agents. |
|
Human intervention |
Place human judgement where it contributes most to quality and control. |
Notice that only one of these eight areas directly concerns the selection of the AI model.
As we discussed in AI Architecture: Why the Model Isn’t Everything, production performance is determined by the complete system surrounding the AI.
Changing the model may help. Improving retrieval, simplifying a workflow or correcting an integration may help considerably more.
Nor is it necessarily desirable to apply every optimisation technique at once. Each addresses a different problem and introduces its own trade-offs.
The more reliable approach is to identify the problem, select an appropriate intervention and evaluate its effects across the complete system.
Optimise for business outcomes, not isolated technical metrics
Imagine that we reduce the cost of every model request by selecting a smaller model.
That appears to be an improvement.
But what if the new model requires more retries, produces more exceptions or increases the amount of human review needed to complete a task?
The cost per model request has fallen. The cost of completing the business process may have increased.
This is why we recommend measuring optimisation at the level of the operational outcome.
Useful metrics include:
- Cost per successfully completed task.
- End-to-end processing time.
- Retrieval precision.
- Successful agent handoff rate.
- Token efficiency.
- Human rework.
- Business process KPIs.
The objective is not simply to make AI cheaper or faster. It is to improve the business outcome while maintaining the required levels of quality, security, reliability and control.
This builds on the principles discussed in our earlier articles on AI production economics and model selection.
Understand the economics of scaling
An agent that is economically viable at its current level of usage is not necessarily economically viable at a much greater scale.
A useful question for decision-makers is:
If usage grows tenfold, will operating costs also grow tenfold, or has the system been designed to scale more efficiently?
The answer depends on more than model pricing. It also depends on the number of steps required to complete a task, the information retrieved and processed, tool usage, retries, agent coordination and the human effort involved.
Equally, reducing costs should not come at the expense of the quality or controls that made the system suitable for production in the first place.
Understanding these relationships is essential when evaluating whether to extend an AI system across more users, workflows or business functions.
Improvement must be controlled
Production evidence should inform changes to the system. It should not justify uncontrolled experimentation within live business processes.
Every material change to a model, prompt, retrieval configuration, tool, integration or workflow should be treated as a candidate release.
It should be evaluated against the existing production system before being introduced.
Where appropriate, organisations should use controlled releases, progressive deployment and rollback mechanisms. They should know which version of the system is running, why it was approved and how a problematic change can be reversed.
The fact that a change improves one metric does not necessarily mean it improves the system.
We need to establish that the proposed improvement does not introduce unacceptable deterioration elsewhere.
If it does, the existing version should remain in production until a satisfactory alternative is available.
Production failures also provide valuable opportunities to strengthen evaluation. Once a failure has been understood, it can become an additional test case against which future changes are assessed.
Over time, this helps make the system harder to break in the same way twice.
The production test: Can we demonstrate that the system is more accurate, efficient or valuable than it was three months ago, and that the changes made along the way have not compromised quality, security, reliability or control?
Observe, Govern and Optimise in practice
Consider an illustrative example of an AI agent that processes incoming customer service requests.
The agent retrieves customer records, identifies the nature of the request, checks company policies and either resolves the request within its authority or escalates it to the appropriate person.
After several months in production, the organisation notices that processing costs are rising.
How would we approach the problem?
Observe
End-to-end traces reveal that the agent is repeatedly retrieving the same information and making additional model calls during routine requests.
Some cases also require unnecessary handoffs between agents.
The system is completing its work, but not as efficiently as it could.
Govern
Before changing the system, we establish that any proposed optimisation must preserve factual accuracy, existing permissions, data access restrictions, escalation requirements and the quality of customer service.
Those conditions become acceptance criteria for the change.
This prevents the organisation from inadvertently weakening operational controls in pursuit of lower costs.
Optimise
We simplify the workflow, improve retrieval, evaluate whether repeated information can appropriately be cached and assess whether a smaller model can handle routine classification tasks reliably.
More complex requests continue to use a more capable model.
We then compare the revised system against the existing one before introducing the changes into production.
Once the revised system is live, we continue monitoring its actual behaviour and business performance to establish whether the anticipated improvements are being realised.
The objective is not merely fewer model calls. It is a lower cost per correctly resolved customer request, without weakening service quality, security or operational control.
The same approach can be applied to agents operating in finance, sales, internal administration, logistics or other business functions.
The specific metrics and controls will vary. The underlying operational discipline remains the same.
Observe, Govern and Optimise is a continuous operating cycle
Although the order matters, Observe, Govern and Optimise is not a process we complete once.
It is a continuous operating cycle.
Observe → Govern → Optimise → Observe again
Every change generates new behaviour to observe.
Every increase in autonomy creates new governance responsibilities.
Every change in the operating environment creates potential opportunities or requirements for optimisation.
This is why agentic AI operations should be embedded within a broader production lifecycle, including AI engineering, software engineering, data engineering, infrastructure, cloud, cybersecurity, integration, quality assurance, DevOps, evaluation and ongoing operational support.
For this approach to work sustainably, however, organisations need more than the appropriate technical capabilities. They also need clear operational ownership, effective incident management and controls proportionate to the system they are operating.
Ownership is a multidisciplinary responsibility
Operating agentic AI draws on several skills and responsibilities.
AI engineers need to understand model behaviour and evaluation. Software and data engineers need to understand workflows, integrations and information quality. Infrastructure and DevOps teams need to maintain reliable operating environments. Cybersecurity specialists need to ensure that access and behaviour remain within acceptable boundaries.
And the business owner needs to establish whether the system continues to deliver the outcome for which it was implemented.
No single model developer can reasonably be expected to carry all of these responsibilities.
What matters is that the relevant capabilities are available, responsibilities are clearly established and decisions have identifiable owners, particularly when something changes or fails.
Every system needs an effective incident response path
When an agent fails, the cause may lie in the model, the information supplied to it, an external dependency, an integration or the workflow itself.
Organisations need a way to receive and investigate incidents, involve the appropriate specialists and determine whether corrective action is required.
They also need to establish who has the authority to restrict or suspend the system while the issue is being resolved.
Operational support is therefore not simply a matter of keeping infrastructure available. It requires the ability to diagnose and address problems across the complete agentic system.
The trade-offs are real
More control is not necessarily better in every circumstance. Neither is greater autonomy, more context or a more capable model.
Each engineering choice has consequences.
|
Trade-off |
Operational consideration |
|
Autonomy and governance |
Greater authority introduces greater governance responsibilities. |
|
Control and friction |
Additional approvals may improve safety while slowing the business process. |
|
Context and cost |
More information may improve decisions while increasing computation and response time. |
|
Model capability and economics |
More capable models may improve performance, but may not be necessary for every task. |
|
Scale and operational burden |
Larger and more complex deployments generally require more mature operational capabilities. |
The objective is not to maximise each capability independently. It is to establish the balance that best serves the business while maintaining acceptable levels of quality, reliability, security and risk.
Operational control should be proportionate
For a relatively simple agent, effective operational control may require lightweight tooling and straightforward procedures.
For a system coordinating several agents across sensitive enterprise applications, the operational architecture may need to be considerably more sophisticated.
Similarly, a startup and a large enterprise or public sector organisation may meet the same control objective through very different technical and organisational arrangements.
The useful question is not which technology stack provides a particular control. It is whether the control exists, works and is appropriate to the complexity, authority and potential consequences of the system.
For the same reason, we would be cautious about reducing operational maturity to a single average score.
An organisation may be highly capable at deployment and still have serious weaknesses in monitoring. It may have sophisticated observability but insufficient mechanisms to prevent unauthorised actions.
A strong capability in one area does not compensate for a critical weakness in another.
Understanding the maturity of each operational discipline is therefore generally more useful than relying on an overall average.
A production checklist for AI agent operations
If your organisation already operates AI agents, is preparing to deploy them or is considering giving existing agents more autonomy, we suggest working through the following questions.
|
Discipline |
Operational question |
|
Observe |
Do we know which business outcome the agent exists to improve, and are we measuring it? |
|
Observe |
Can we reconstruct how an agent completed a task across models, tools, APIs, data and integrations? |
|
Observe |
Can we identify operational failures, security incidents and unexpected behaviour across the complete system? |
|
Observe |
Do we understand the full cost of completing a workflow and how it might change if usage grew tenfold? |
|
Govern |
Can we detect and prevent actions outside authorised boundaries, through controls enforced by the system rather than simply described in prompts? |
|
Govern |
Are quality, reliability, security and risk monitored against defined thresholds? |
|
Govern |
Do we have effective human escalation and exception-handling mechanisms, including the ability to override automated decisions where appropriate? |
|
Govern |
Do we know who can restrict or suspend agent activity, and how quickly they can intervene? |
|
Govern |
Is operational ownership clearly established, including accountability for incidents and the affected business process? |
|
Optimise |
Do we know which parts of the system offer the greatest improvement potential? |
|
Optimise |
Can we evaluate, introduce and, where necessary, reverse changes without compromising production? |
|
Optimise |
Can we demonstrate that the system is delivering greater business value over time without weakening quality or control? |
Where the answers are unclear, there is likely an opportunity to strengthen the operational architecture.
These questions become particularly important before increasing an agent’s authority, extending it into additional business processes or significantly scaling its usage.
From deploying AI agents to operating a business capability
The opportunity presented by agentic AI is substantial.
Agents can coordinate complex workflows, connect previously fragmented systems, accelerate business processes and allow people to concentrate on work where their judgement and expertise create the greatest value.
Realising that opportunity sustainably requires more than building capable agents.
It requires building organisations and systems capable of operating them.
Observability gives us the evidence to understand performance.
Governance gives us the mechanisms to maintain trust, security and control.
Optimisation allows us to translate operational learning into better business outcomes.
Together, these disciplines help turn agentic AI from a technological capability into a reliable, manageable and continuously improving business capability.
At ALGO, we approach agentic AI as an end-to-end engineering discipline, combining specialist AI expertise with the software, data, infrastructure, cybersecurity, integration, quality assurance, monitoring and operational support needed to make these systems work in the real world.
Because the real measure of a production AI system is not simply whether it works today.
It is whether we can keep it working, keep it under control and keep making it better.
Further reading: AI in production
This article forms part of our series on engineering AI systems that deliver sustainable business value in the real world.
You may also find the earlier articles useful:
- AI ROI and Production Economics
- AI Architecture: Why the Model Isn’t Everything
- SLM vs. LLM: What Model Size Does Your Company Need?
- Data for Production AI: Five Conditions
- How to Evaluate AI Before Production
- Safe AI Agents: How to Give Them Autonomy Without Losing Control
In our next article, we will turn to the final step in this series: why AI is not adopted simply because it has been deployed, and how a working system becomes a genuine business capability.
Thank you, as always, for reading.
Let’s discuss your AI initiative
Whether you are preparing to deploy AI agents, looking to strengthen the operational architecture of an existing system or exploring how to scale agentic AI across your organisation, we would be delighted to discuss how we could help.
Please feel free to contact us:
- Email: info@algocodingexperts.com
- Telephone: +34-91-633-1884
- Contact form: algocodingexperts.com/es/contact
About ALGO
ALGO is an engineering partner specialising in advanced technologies.
We help startups, SMEs, enterprises and public administrations design, develop and integrate technologically demanding systems that are ready to work in the real world.
Our specialist capabilities span artificial intelligence and machine learning, blockchain, immersive technologies, IoT, robotics, game development and quantitative engineering applied to algorithmic trading and fintech.
We combine that specialisation with the software engineering, data, cloud, DevOps, cybersecurity, user experience, quality assurance, integration, monitoring and operational support needed to build complete, reliable and sustainable solutions.
We accompany the entire journey from concept to production and operation: architecture, development, integration, testing, deployment and ongoing support.
We can take responsibility for developing a complete solution or provide specialist engineering capabilities alongside our clients’ internal teams or technology partners.
ALGO combines the production discipline of a systems integrator with the specialisation, agility, flexibility, direct accountability and senior-level attention of an engineering partner.
Specialist technology. Comprehensive engineering. Systems that work in the real world.