In 2015, a group of Google engineers published “Hidden Technical Debt in Machine Learning Systems” at NeurIPS. The paper’s best-known diagram showed the ML code as a small box inside a much larger system for data collection, configuration, serving and monitoring. Most of the cost of production machine learning sat outside that box, and agentic technical debt follows the same pattern.
In AI agents, the model call is the new small box. Around it sit prompts, tools, memory, retries, approvals, permissions, budgets and audit trails. Gartner expects 40% of enterprise applications to include task-specific AI agents by the end of 2026, up from less than 5% in 2025. Gartner also predicts that over 40% of agentic AI projects will be canceled by the end of 2027 because of escalating costs, unclear business value or inadequate risk controls. Both predictions can come true at the same time.
Most agentic technical debt comes from placing retries, approvals, budgets and audit in the wrong layer of the architecture. This post maps the layers of an AI agent architecture, shows which layer should own each concern, and explains when a single agent needs nothing beyond its own runtime.
Agentic technical debt is the accumulated cost of shortcuts around AI agents, where prompts, tool wiring, memory, control logic and governance rules are patched together faster than teams can test, standardize and audit them.
Several publications in 2026, from platform engineering teams to academic papers, catalogue these debt types in detail. The catalogues describe what goes wrong. The architecture question behind them is where each concern should live, so the debt does not build up in the first place.
Agents accumulate this debt faster than classic machine learning models:
The gap shows up in production numbers. In Camunda’s 2026 survey of 1,150 IT leaders, business decision-makers and architects, 71% said they use AI agents, but only 11% of agentic use cases reached production in the past year.
The diagram shows the layers of a production agent architecture and the decision gate above them.
Each layer has its own job:
Above the stack sits the decision gate of process intelligence. It decides which processes get an agent at all and measures the impact afterward, as described in Process Intelligence Explained.
A harness belongs to one agent, while a business process runs across agents, people and systems for hours or days. Every layer is useful. Debt starts when one layer takes over the job of another. The boundaries do move, because every vendor grows into the neighboring layer: the model labs ship more harness features with their agent SDKs, durable execution vendors add agent integrations, and orchestration platforms such as Kestra add more durable execution capabilities. The ownership question in the next section stays the same whichever product ends up providing a layer.
The matrix assigns the most common concerns to the layer that should own them, independent of which products you choose for each layer.
Most debt I see in agent projects comes from a few patterns:
A supplier invoice dispute is a good example of how the layers work together. The flow marks which layer owns each step.
The agent does one bounded step in the middle of a governed process, and it never decides alone whether money moves.
Kestra, the open source orchestration platform makes this concrete. The flow is declarative YAML in Git. The agent runs as one AI Agent task with an explicit tool list, a cap on tool calls, a token budget for the whole run and a timeout. The approval is a Pause task that waits for a person and resumes with the decision. A Kafka trigger starts the flow. Workers run close to the ERP and the data, while the control plane can run anywhere.
Most teams start Kestra in one domain, often a data pipeline or an infrastructure job, because the core is lightweight, event-driven and Apache 2.0 licensed. A process like this one is usually the second or third flow, once the first domain runs.
Other orchestrators can fill parts of this role. Many enterprises run several of them side by side, and they call each other where a process crosses domains. Camunda is strong when business teams model the process in BPMN. Temporal fits when developers write the whole process as application code. Airflow and Dagster cover data pipelines well, and cloud services such as AWS Step Functions work inside one cloud. Each is a good choice within its domain. Kestra covers all four domains with one control plane, so the same audit trail also includes the pipeline that refreshes supplier master data and the job that rotates the ERP credentials.
Not every agent needs a control plane. A coding assistant, a research agent or a support summary inside one application is well served by its harness. If an agent runs for a long time within one team’s application, durable execution is the right addition.
A control plane earns its place when at least one of these applies:
The model layer is commoditizing fastest. Decision models showed the pattern. Several vendors shipped compatible offerings within weeks of the first launch. Value moves to the layers that hold process state, approvals and the audit record, because they are hard to replace once a process depends on them.
Several groups compete for that layer. Hyperscalers bundle managed agent runtimes. Durable execution vendors add agent integrations. Application vendors embed agents in ERP, CRM and service management. Orchestration platforms govern processes across all of them. The practical question for every agent project is which layer owns approvals, budgets and audit. It is worth answering early, because moving these concerns later means rebuilding the process around them.
The 2015 Google paper on hidden technical debt in machine learning made the case for engineering the system around the model. Agents need the same discipline. Unified orchestration gives every concern around the agent a clear owner, which keeps agentic technical debt visible and under control.
To follow this work across data integration, workflow orchestration, process intelligence, and trusted agentic AI, subscribe to the newsletter and connect on LinkedIn.
My Lufthansa HON Circle experience in 2026 as a frequent flyer with around 30 trips…
Humanoids get the headlines, but most physical AI value comes from what happens after a…
Within a month of Jev by TypeSafe AI, hyperscalers, AI labs, data platforms and open…
Kafka moves the events, but nothing coordinates what happens next. This post shows how Kestra…
The Industrial IoT Landscape Q4 2026 maps vendors and open source from edge to cloud…
Telecom has more orchestration standards than any other industry, and the maturity stops at the…