When an AI agent meets production: what presentations do not tell you
Somewhere during 2023–2024, an interesting phenomenon began: almost every product manager, developer or CTO you could catch in a corridor enthusiastically discussed “our AI agent”. Autonomous agents, tool chains and execution capabilities all sounded revolutionary. Then came the moment of truth: somebody said the word everybody had been postponing: production.
Suddenly, the conversation about a smart agent able to handle customers, analyse logs or manage configurations becomes a much less glamorous discussion: permissions, secrets, monitoring, SLAs and legal responsibility. This is precisely when many pilots quietly die in a hidden Git repository, leaving an optimistic presentation and a dashboard that barely loads.
This article attempts to organise that confusion: what deploying AI agents really looks like in a serious organisation, what enterprise standards mean for an agent accessing your systems and why permissions and secrets concern culture, management and even psychology, as well as technology.
What is an AI agent when we are being serious?
Before permissions and secrets, set the hype aside and define an enterprise AI agent. It is no longer a smart chatbot sitting on a website and speaking elegantly. An enterprise agent is software that makes decisions, invokes tools, touches sensitive data and sometimes carries out actual actions: opening a ticket, closing an alert, changing a configuration or updating permissions.
In other words, it moves from advising to executing. Once it executes, the rules change. The organisation must ask questions it is rather convenient to ignore:
- Who is responsible when an agent performs an incorrect action?
- What level of information access may it receive?
- Should it have a separate IAM identity, like any employee?
- How do we monitor something that learns, changes and responds in real time?
This is not theoretical. I have seen a small DevOps improvement pilot accidentally receive overly broad access to the main repository. Apparently read-only. In practice, it became a narrow bridge outwards through a third-party integration configured almost casually. Thankfully, no disaster occurred, but it was enough for the CISO to stop everything.
From proof of concept to production: no longer a toy
During the proof of concept, an agent looks like a pleasant toy: a few scripts, a model API token, perhaps a Jira connection, and everything is fine. Trouble begins when the team realises it actually works and genuinely eases a chunk of work, then asks: “Come on, when do we put it into production?”
At that point, groups that do not always speak the same language enter: security, infrastructure, DevOps, legal and sometimes even an employee committee. Everybody wants involvement. Sometimes the result is months of delay over basic questions that were not asked in time:
- Does the agent record every action?
- What is the policy when it attempts to read information it is not authorised to access?
- Who signs off that the configuration meets organisational policy?
It is tempting to say “It is only a helper tool.” In truth, a serious agent is part of organisational infrastructure. Nothing less.
Permissions: who gets a house key, and who only the gate remote?
One fundamental difference between an innocent conversational model and an operational agent is permissions. Deploying agents in core systems creates an entity able to act. It is not a legal entity, but in practice somebody, or something, has power.
An AI agent's identity in IAM systems
Large organisations have already understood that an agent needs a separate identity in identity and access management, or IAM. It must not piggyback on a developer's identity or use another service's token just for the pilot.
Simply put, it is a kind of service account, with:
- Minimum permissions under least privilege.
- Clear separation between DEV, STAGING and PROD.
- Usage tracking: who granted what, and when.
This sounds trivial. In practice, when the team rushes to demonstrate something working, a temporary token is often inserted and orderly permission management skipped, leaving unpleasant security debt afterwards.
Least privilege in the age of the overly clever AI agent
Least privilege gains an interesting twist. We want agents to act quickly, connect systems and understand context. Yet every access expansion greatly increases potential damage, even through error rather than malice.
For example, an agent intended only to analyse logs may unexpectedly reach sensitive information if those logs contain customer details, tokens or sensitive business code. Once the model is exposed, the genie cannot be put back in the bottle. Data classification, anonymisation and information source separation therefore require a different perspective.
Written permissions and automated controls
One lesson from organisations already deploying agents in production: permission definitions must not remain in developers' heads. They must be written down, documented and supported by automated controls:
- Automatic permission-scope checks before production deployment.
- A revocation policy: how access is removed in an emergency.
- Formal approval across security, infrastructure and the information owner.
Yes, it sounds bureaucratic. View the agent as a new employee, except one who never goes home in the evening, and it becomes obvious.
Secrets: when the AI agent knows too much
Secrets, including passwords, tokens, API keys and cloud service credentials, acquire a double meaning with AI agents. The agent consumes secrets to operate and sometimes also touches intrinsically sensitive data: legal documents, contracts, configuration files with embedded passwords and internal documentation.
Where should an AI agent's secrets be stored?
One rule of thumb: an agent should never hold secrets directly in code or unmanaged configuration. Instead, use secrets management solutions such as Secret Manager or Vault, with:
- Dynamic secret access based on updated permissions.
- Automatic key rotation.
- Logs for every secret access: when, by whom and for what purpose.
The problem is that when an agent interfaces with another tool and must explain its actions to the user, it may accidentally expose sensitive information in the answer. For example, it may quote a seemingly important line from a configuration file that happens to contain an API key.
Filtering and hardening AI agent responses
One interesting deployment challenge concerns what the agent is willing to say aloud, as well as what it knows. To prevent secrets leaking, organisations connect additional layers:
- Filters detecting suspicious strings in answers, such as keys, card numbers or identity numbers.
- Redaction mechanisms that automatically obscure certain data.
- Policy prohibiting the agent from quoting raw text from particular areas.
This may sound excessive, but information security history is full of innocent helper tools exposing passwords in logs, support emails or internal chats. An agent simply shortens the route between sensitive information and the wrong user.
Monitoring: behaviour as well as graphs
The third side of the triangle, after permissions and secrets, is monitoring. One recurring mistake is thinking agent monitoring resembles another microservice: install Prometheus, connect Grafana, measure latency and CPU, and finish.
But an agent behaves differently. It responds to requests and also produces text, initiates actions and sometimes enters complex workflows. Effective monitoring must include two layers: technical and behavioural.
Technical monitoring: the essential starting point
The technical layer is fairly clear:
- Response times for model calls.
- Failure rates: timeouts, API errors and network failures.
- Resource usage: database calls, I/O and memory.
- The number of calls to tools invoked by the agent.
Standard monitoring systems can measure these. They matter because a persistently unstable agent will do more harm than good. But that is only the beginning.
Behavioural monitoring: when the AI agent starts running wild
The truly interesting part is monitoring performance, reliability and behaviour. Are answers consistent? Does it suggest dangerous actions? Does it invent details? Are exceptions, complaints or rollbacks following its actions increasing?
Advanced organisations are beginning to define new measures, such as:
- The percentage of answers requiring corrective human intervention.
- Average time to identify a critical error caused by the agent.
- The percentage of actions reversed following human-in-the-loop review.
- A hallucination measure: how often the agent confidently gave an incorrect answer.
Some Israeli companies I know have turned this into a full dashboard, showing whether the agent works correctly, rather than only how much it works. Deviations can appear surprisingly quickly, for example after a model update, a small prompt change or a new tool the agent suddenly uses excessively.
Human-readable logs
Another simple but critical insight: agent logs must be readable by people. They should show more than “tool_call_success=TRUE”:
- What the user requested.
- What the agent understood, at least in summary.
- Which tools were invoked.
- The outcome and why it was chosen.
When something fails, the team needs to get inside the agent's head as far as possible and reconstruct the decision chain. Without that, incident investigation becomes guesswork.
Israel, AI agents and the “It will be fine” culture
Agent deployment cannot be discussed without touching local reality. The Israeli character, quick, creative and slightly improvised, is both an asset and a challenge. Pilots emerge within a week or two with brilliant system combinations. Sometimes, however, that is precisely where failure begins.
At quite a few start-ups and larger organisations, I have heard: “Leave it, it is only an MVP. We will sort it out when customers use it.” But an agent MVP often already touches real data, real customers or real execution capabilities. The boundary between an internal pilot and something causing damage is much thinner than before.
Regulation chases reality
In Israel, as in most of the world, AI regulation is still developing. Yet anyone working with finance, healthcare, government or sensitive customer data already feels the pressure of questions:
- Does the agent comply with privacy policy?
- What happens if it exposes information between customers?
- Who is responsible for explaining autonomous agent use to the customer?
Answers are not always clear yet, but one thing is: “The system recommended it; the person decided” can no longer excuse responsibility. Deploying agents with execution capabilities requires managing risk as with any other critical system.
Insights rather than a manual: taking AI agent deployment seriously
We could now offer ten steps to perfect production, but reality is messier. Nevertheless, several insights recur among those who have travelled this route, sometimes taking painful knocks along the way.
1. Start small, but make it real
Choose a narrow but real production scenario: the process where benefits can be measured, risks understood and improvements made gradually, rather than the most impressive demo. For example, an agent reducing recurring DevOps problems or helping internal IT support staff before jumping straight to external customer service.
2. Human-in-the-loop as a seat belt
At least initially, most organisations define the agent as advising and proposing, with final execution still handled by a person. This builds confidence, improves prompts, develops measures and reveals where the agent is strong or puts you at risk.
Over time, a hybrid model becomes possible: some actions are fully automatic; others require quick approval or rejection, particularly where risk is higher.
3. Prompts are code: treat them accordingly
Another interesting phenomenon is treating prompts as temporary sentences to throw in and improve along the way. But when a prompt defines policy, including what is permitted, prohibited and how exceptions are handled, it is business code in every sense.
It is therefore worth:
- Managing prompts in Git with version control.
- Reviewing critical changes.
- Documenting experiments: what changed, what improved and what deteriorated.
The agent lives within those definitions. They are no less important than the code we are accustomed to respecting.
4. Invest in logs and observability from the outset
“We will add monitoring later” is easy to say. In practice, without good logs, understanding behaviour, mistakes and remedies is impossible. I have seen teams waste days trying to reconstruct strange agent behaviour simply because context, prompt, response and intervening tool calls were inadequately recorded.
Build agent-specific observability infrastructure in advance:
- A trace for every interaction, from user to model.
- Records of prompts and responses, with careful attention to privacy.
- Automatic exception flagging.
5. Discuss AI agents with legal as well as DevOps
Responsibility is particularly sensitive. Does an answer to a customer constitute official advice? Are specific terms of use required? Especially in finance, medicine and professional services, an agent changes how an organisation addresses the world.
There is no need to panic, but involve these groups early:
- Legal advisers to define responsibility boundaries.
- The privacy team for data collection and use questions.
- Risk management to identify failure scenarios.
This may sound tedious, but it is much easier before the first customer receives a problematic answer.
Frequently asked questions about enterprise AI agents
Can we give an agent full information access to make it smarter?
Theoretically, yes. Practically, that is a recipe for trouble. Full access may make questions easier to answer, but greatly increases leakage, error and privacy policy breach risks. Begin with graded access, separate data types and allow access only to what the task actually requires.
How much autonomy is appropriate initially?
The usual recommendation is automatic assistance with human execution: the agent produces suggestions, drafts, analyses and flags; the person approves, updates and corrects. With trust and measures established over time, some tasks can become fully automated. That decision must be based on data, not gut feeling alone.
How do we measure whether deployment is worth the investment?
Beyond technical measures, assess:
- Working time saved: the actual human hours saved.
- Quality improvements: fewer errors or recurring faults.
- Response time: how quickly the organisation responds to events, enquiries and analysis needs.
Many are surprised that initial value comes less from reducing headcount than from greater consistency, better documentation and considerable peace of mind for teams finally receiving an assistant that does not tire.
What happens when an agent confidently invents answers?
This familiar phenomenon, hallucination, must be managed rather than denied. Possible tools include:
- Requiring internal references showing where answer information came from.
- Limiting the subjects on which the agent may answer.
- Defining default responses such as “I do not have enough information to answer responsibly.”
Most importantly, do not rely on an agent in areas demanding high regulatory or professional certainty without clear human review.
Table: the main aspects of enterprise AI agent deployment
| Aspect | What to remember | Common risks | Practical recommendations |
|---|---|---|---|
| Permissions | The agent is a service account with real system power | Excessive access, developer tokens and confusion between environments | A separate IAM identity, least privilege and periodic access reviews |
| Secrets | Passwords and tokens do not belong in code or unmanaged configuration | Keys leaked in answers and logs full of secrets | Secrets management, rotation, response filtering and automatic redaction |
| Technical monitoring | Measure performance, availability and errors like any service | High response times and faults discovered too late | Dashboards for latency, API failures, tool use and resources |
| Behavioural monitoring | Check how the agent behaves, beyond whether it works | Hallucinations, dangerous actions and inconsistency | Answer quality measures, human-in-the-loop and exception analysis |
| Prompts and policy | The prompt is business code defining what is permitted and prohibited | Uncontrolled changes, lost consistency and unwanted disclosure | Git management, code review and records of experiments and changes |
| Regulation and privacy | The agent must align with privacy laws and terms of use | Unauthorised use of customer data and policy breaches | Legal and privacy involvement from the beginning; transparent customer policy |
| User onboarding | Employees need to understand what the agent does and does not do | Overreliance, fear or resistance to use | Training, correct framing as an assistant rather than a replacement, and feedback channels |
| Production strategy | Not every pilot must become a core system, but any that does must be taken seriously | An MVP drifting into production without hardening, technical debt and security debt | Clear stages: proof of concept → real pilot → production with full standards |
An AI agent as a new employee, only without coffee breaks
One useful image is to view deployment as introducing a talented, quick but naïve new employee. Explain its operating boundaries, grant measured permissions, state what must not be disclosed and closely monitor its early work.
Over time, like any good employee, the agent can become part of the organisation's DNA, resolving incidents faster, supporting customers and connecting systems and departments. To achieve this without sleepless incident-management nights and calls from the CISO, everything behind the scenes must be taken seriously: permissions, secrets, monitoring and a working culture that understands autonomous agents.
If your organisation is at the junction between pleasant pilots and genuine production, now is the time to pause, ask uncomfortable questions and build an orderly deployment plan meeting enterprise standards. We would be happy to offer an initial consultation at no cost, particularly where technical depth, Israeli reality and constantly evolving security requirements must come together.
From reading to a pilot
Plan a pilot with checkpoints
Define permitted actions, decisions requiring approval and a clear route to a person.
