Great perspective. Production is where the real challenges begin, not the demo. Nice breakdown.
Why Most Agentic AI Systems Fail in Production β A Software Architect's Perspective
8 Comments
The tool-level authorization point in section 7 is the one I'd underline hardest. Most teams I talk to have solved the "don't trust the model's reasoning" problem, but they've quietly skipped "don't trust the model's identity." An agent calling a tool usually authenticates as a service account or an API key with broad scope, not as a bounded actor with the same permissions as the human it's acting for. That's the gap that turns a bad reasoning step into an actual breach instead of just a wrong answer.
This is where non-human identity is becoming its own security category. Every agent with tool access is a credential now, and most IAM systems were designed around humans logging in, not agents calling five tools in a loop with no session boundary. The idempotency and saga patterns you're describing solve for correctness. They don't solve for an agent authenticating somewhere it shouldn't be able to reach in the first place. Both problems need solving, but they're not the same problem, and I don't see enough architectures treating them separately yet.
Good piece. This is the clearest writeup I've seen connecting agentic failure modes back to plain distributed-systems discipline instead of treating it as some new category of problem.
@[Tom Smith] That's an excellent distinction. The article focused on making agent execution correct and reliable, but you're right that correctness and authorization are separate concerns. An agent shouldn't just be constrained by budgets and retries, it should be constrained by identity and least privilege. Treating every tool calling agent as a non human identity with its own scoped permissions is a mental model I think the industry will increasingly adopt.
Please log in to add a comment.
This is one of the most accurate perspectives on moving AI agents from demos into production. The biggest misconception today is that agentic systems are primarily a model problem, when in reality they are a systems engineering problem.
The comparison to distributed systems is especially valuable. Agents introduce new levels of uncertainty, but the foundations of reliable engineering remain the same: observability, fault tolerance, security boundaries, idempotency, cost controls, and clear operational ownership.
The point that βan agent is a distributed system disguised as a function callβ is a powerful mental model. It changes how teams design, test, and operate these systems. Instead of trusting the intelligence layer alone, we need to build the infrastructure and guardrails that make intelligent behavior reliable.
The future of AI engineering will not only belong to teams that build smarter models, but to teams that understand how to safely integrate those models into real-world systems.
@[Aljen Magat] Thank you, I really appreciate that. I think that's exactly the shift we're starting to see. The model is only one component of the system; the harder engineering work is everything around it. Reliability, observability, security, and operational discipline ultimately determine whether an agent remains a compelling demo or becomes something teams can trust in production.
Please log in to add a comment.
"An agent is a distributed system disguised as a function call" is the framing I have been reaching for in every design review this year. Once you see it, the failure modes stop being surprising and start being checklists.The hidden statefulness section is where I have seen the most under-engineered decisions in practice. Teams treat agent memory as one undifferentiated blob, and then wonder why context from one workflow quietly corrupts another. The article names it well. You do not get a clean exception. You get a quietly wrong answer.I hit this directly building Opportunity Skill. A user can be hiring and job-seeking at the same time. If both perspectives share one embedding space, hiring impressions pollute the search results when that same person is looking for their next role. No crash. Just silently wrong matches. The fix was full data-model isolation between the two perspectives, stored and indexed separately. Expensive in engineering complexity, but the match quality depends on it. The distributed systems playbook maps cleanly. Bulkheads for memory boundaries. Human confirmation for high-stakes side effects. Rate limits before the first reply. The patterns are old. The discipline to apply them under non-determinism is the new part.
@[QuestMeet] That's a fantastic real world example. The Opportunity Skill case illustrates exactly why I called out hidden statefulness. The failure isn't dramatic, it quietly degrades the quality of decisions over time, which makes it much harder to detect. I like your framing of bulkheads for memory boundaries. As agents become more stateful, I think memory isolation will become as fundamental a design principle as tenant isolation is in distributed systems.
Please log in to add a comment.
I think one of the recurring themes across production agent systems is that many failures aren't actually model failures. They're infrastructure failures.
An agent selecting the wrong tool, losing context, or taking an unexpected execution path is certainly important. But the harder production question often becomes: can we explain why that path was taken, what evidence was available at the time, and whether someone else could reproduce the same outcome later?
That has me thinking less about "better agents" and more about better infrastructure around agents. Things like durable execution state, provenance, validation, and decision history start becoming architectural concerns rather than application features.
The model may generate the action, but the surrounding system increasingly determines whether that action can be trusted.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Early Builders
Related Jobs
- Robotics Software EngineerBluebird Β· Full time Β· Hungary
- Integrated Campaigns Lead (B2B Software)N8n Β· Full time Β· Hungary
- Software EngineerCrypto Finance Β· Full time Β· Switzerland County, IN
Commenters (This Week)
Contribute meaningful comments to climb the leaderboard and earn badges!