Before deploying AI agents in the enterprise, prioritize the controls around the agent, not the agent itself. That means least-privilege tool permissions, sandboxing, input validation in the architecture, egress rules, evaluation in CI/CD, trajectory review, and a full audit trail. Autonomy comes after those are in place, never before.
In one Azati engagement, an AI orchestration layer at a regional bank cut average case resolution time by 61%, from 4.5 business days to under 18 hours on standard amendment types. The bank’s first post-implementation regulatory review found nothing related to the AI layer. The model was not the reason. Every AI action was logged, every regulated decision was signed off by a person, and the layer sat outside the core systems.
Key takeaways
- Agents amplify the engineering discipline a company already has. Weak permissions, tests, and logging get exposed faster, not fixed.
- The controls that matter most are unglamorous: least-privilege tools, sandboxing, validation in code, egress rules, evaluation, trajectory review, and an audit trail.
- Input validation belongs in the architecture. A prompt is a request the model can be talked out of.
- In the bank deployment, 100% of AI-assisted decisions carried a structured audit log, and automation grew from one case type to six over four quarters.
- Treat every MCP server as third-party code. GitGuardian’s 2026 report found 24,008 unique secrets in MCP-related config files on public GitHub.
Why do AI agents stall after a good demo?
Agents are amplifiers. A team with strong tests, tight permissions, and good logging gets more done with them. A team without those habits gets the same weaknesses, only faster and with more access.
There is a quieter problem too. Without clear ownership, agents multiply across teams. Each one gets its own credentials, prompts, and tools, and nobody can say how many exist or what they can reach. This is often called agent sprawl. You cannot govern what you cannot list, so the first control is an inventory.
Thoughtworks framed the shift well when it launched its Agent/works platform this year. The question is no longer whether an agent can act, but under what conditions it should. Our own work points the same way. In the insurer engagement below, the lesson was that the leverage sits in architecture and specification, not in headcount.
What should you check before deploying AI agents in the enterprise?
Here are nine checks, in the order we would work through them.
- Give every tool the smallest permission that works. Keep agent access read-only unless write access is strictly required for the task. Use scoped, short-lived credentials instead of standing ones. Excessive agency has moved up to third on OWASP’s 2026 list of LLM risks, from sixth, and it is the control buyers skip most often.
- Run agents in a sandbox. Agent code should run in an isolated environment without direct access to production systems. If something goes wrong, the damage stays inside the box.
- Validate inputs in the architecture, not in the prompt. A prompt is an instruction the model can be talked out of. Put checks in code at the boundary instead: schemas, allow-lists, and rules that run before any action executes. Prompt injection is still number one on the OWASP list for a reason.
- Set egress rules before the first pilot. Decide where data may travel and block everything else by default. In Azati’s insurer engagement, models ran on the client’s own GPU hardware. No external API call could carry sensitive code or documents, and a routing layer decided which requests were allowed to leave.
- Treat MCP servers as third-party code. Review each one, pin its version, and keep credentials out of config files. GitGuardian’s 2026 report found 24,008 unique secrets in MCP-related files on public GitHub, and 2,117 of them were valid. Keep secrets in a manager. The insurer deployment used HashiCorp Vault.
- Test agents like software. Prompts, tools, and agent graphs are code. Keep a benchmark set, run it on every change, and block releases that regress. On Azati’s analytics copilot project, a benchmark repository drives continuous improvement in retrieval quality.
- Review trajectories, not just outputs. A correct answer can hide a bad path. Log each step, including what was retrieved, which tool was called, and what came back. Review samples every week and alert on loops, retries, and unusual tool use.
- Keep a full audit trail. Every AI action should leave a structured record of what data was used, what was proposed, and who approved it. In the bank deployment, each case had an immutable log with officer attribution and a regulator-ready export.
- Put people at the decision points, and expand slowly. Let the agent prepare and let a person decide anything regulated or costly. Start with one narrow case type and widen it as evidence builds. The bank’s automation grew from one case type to six across four quarters.
What does this look like in practice?
Five agents inside a 12,000-person insurer. Azati designed and specified five AI agents for the insurer’s Azure DevOps pipeline: pull request review, unit test generation, specification checks, deployment assistance, and request routing. Security shaped every decision. Models ran on client-owned GPU hardware, access went through SSL, VPN, and VDI, and the design passed several information security reviews and architecture committee approvals over 12 months. Read the case.
A bank where the AI prepares, and people decide. Loan amendment decisions needed full explainability and human sign-off, so the AI could assist and prepare but never decide on regulated actions. Case officers now handle three times as many cases per day, and the first regulatory review after launch produced zero findings related to the AI layer. The orchestration layer made no changes to core banking systems and can be removed. Read the case.
A backend that AI wrote and nobody could debug. A consumer app’s backend had been built largely with AI coding tools. Recurring reminders failed silently, functions failed without logs, and problems could only be found by reproducing them locally. Azati audited every module in the first week, refactored module by module without stopping feature delivery, and added structured logging, tracing, and alerting. Production issues are now diagnosed in under 15 minutes instead of hours, and the work saved an estimated three to four months of redevelopment. Read the case.
What if your agent deployment has already stalled?
Most stalled deployments share the same gaps: no permission model, no tests, and no logs. The fix is rarely a rewrite. Start by auditing what the agents can touch. Add observability so failures become visible. Then stabilize one workflow at a time.
This is the work behind our agent stabilization and rescue practice. The rescue case above involved AI-written code rather than a multi-agent system, but the method is the same: audit, instrument, and refactor in place.
What should you ask a vendor before you sign?
Five questions are enough to separate production experience from demo experience.
- What can each agent access, and how is that limited? Ask to see the permission model, not a slide about it.
- Where does data go? Ask for the data flow diagram and the list of external services the agent calls.
- How do you test changes? Ask to see the benchmark set and what happens when a score drops.
- What does a failure look like? Ask for a sample trajectory log and an alert from a real incident.
- Who is on call after launch? Ask who owns the system at 2 a.m.
What this means going forward
Autonomy is the last control to add, not the first. Buyers who ask a vendor for its permission model, its evaluation setup, and a sample audit log will learn more than any demo can show. For help with production ownership after launch, see our Managed AI service. If you want a second opinion on an agent design, or a stalled deployment needs a rescue, our Agentic AI Engineering team is the place to start.
Frequently asked questions
Talk to Azati about making your AI agents production-ready