6 Application and integration architecture
This chapter explains that autonomous agents should not be dropped into an enterprise as if they were just another app feature. Instead, architects must first decide where an agent participates in the application estate, what it owns, and what must remain under deterministic services, workflow engines, policy components, systems of record, or human control. The core idea is to create bounded interaction surfaces, where authority, state, evidence, accountability, and recovery are explicit at every boundary so that the business effect of an agent’s actions stays aligned with what the enterprise actually intended.
The chapter then shows that ordinary API, event, and tool contracts are not enough for agentic systems, because they describe how something is invoked or published, but not why the agent is acting, under what delegated authority, and what evidence must remain afterward. To close that gap, it introduces conversational contracts that carry intent, context, constraints, authority, outcome, and evidence obligations. It also explains how governed tool wrappers mediate access to enterprise APIs, SaaS, legacy systems, and data operations, ensuring that agent actions are validated, bounded, idempotent, auditable, and recoverable rather than merely technically successful.
Beyond single-system access, the chapter covers asynchronous coordination, multi-agent collaboration, and human handoff. Events are used to preserve correlation, next ownership, and accountability across time and systems, while an Agent Mesh defines which specialist agents may work together, through what paths, and with what evidence obligations. When autonomy reaches an oversight boundary or encounters an unrecoverable interruption, a fallback-to-human path must transfer state and evidence to a person and then return the decision to the workflow in a structured way. The chapter closes by warning against common antipatterns such as raw APIs exposed directly to agents, prompt chains masquerading as workflows, orchestrators becoming hidden enterprise buses, and event choreography that loses accountability, then offers a practical playbook for building a bounded agentic flow one workload at a time.
Agent participation in the enterprise application estate. An agent may occupy any of the seven positions relative to applications, users, workflows, APIs, events, and other agents. Each position creates one or more bounded interaction surfaces.
Anatomy of a conversational contract. A conversational contract carries an agentic interaction from intent toward outcome. Context shapes how the intent is interpreted, constraints and authority define the boundary within which the agent may act, and the evidence obligation defines what must remain after the agent has acted.
Why integration uncertainty requires governed wrappers. Without a wrapper (left), a confirmation timeout drives the agent to retry, and the enterprise sees a duplicate business effect with no linked evidence. With a governed wrapper (right), the retry is resolved against the prior effect recorded for the conversational contract instance, so uncertainty is absorbed at the boundary rather than leaking into the agent loop.
A correlated event chain preserves the relationship among the originating interaction, authority context, next ownership, and evidence. The qualifying nonconformance signal triggers the workflow or case platform to create conversational-contract instance CC-2418, which then correlates the investigation, handoff, and human decision so the flow can be reconstructed afterward.
The quality-investigation mesh. The supervisor holds the conversational contract for the containment recommendation and delegates bounded work to four specialist agents. Every path into the enterprise estate passes through a governed wrapper. The three retained human authority holders remain outside the agent boundary; decisions requiring their authority return to the flow through them.
Three coordination structures within an Agent Mesh. In the supervisor structure, one coordinating agent delegates to specialists and reconciles their outputs, so every decision that crosses the mesh boundary passes through a single explainable point. In the brokered structure, an intermediary mediates access to a shared resource or enforces policy without contributing domain reasoning. In the peer-to-peer structure, specialist agents coordinate directly through bounded interaction paths.
The human re-entry path. A trigger ends autonomous execution; control crosses the oversight boundary to a human, carrying a handoff payload that extends the chapter 4 context packet (table 4.8) with the originating interaction and a return path. The human's structured decision re-enters the flow as a case or workflow state so the flow can resume, close, or escalate, while the agent holds a bounded support role until the decision is recorded. Unlike a notification, this path transfers control, preserves state and evidence, and returns the decision to the flow.
Summary
- Application and integration architecture for agentic systems starts by identifying where agents participate in the estate and the bounded interaction surfaces they create. These surfaces keep authority, accountability, and evidence explicit as agents communicate, invoke systems, coordinate work, and hand off control.
- Conversational contracts extend traditional API and event contracts by expressing intent, context, constraints, authority, outcomes, and evidence obligations, making the interaction auditable.
- Governed tool wrappers prevent raw system access by translating agentic intent into bounded, validated, auditable, and recoverable invocations of enterprise capabilities.
- Wrappers must treat agent-generated parameters as untrusted input and enforce idempotency, retry control, compensation, and auditability as design obligations.
- Event-mediated coordination allows agents and systems to work asynchronously, but events must preserve causation, decision context, the basis of authority, evidence, and next ownership.
- Agent Mesh design defines the governed collaboration structure between specialist and supervisory agents; governed wrappers, events, and human reentry paths connect that collaboration to enterprise systems and people.
- Orchestration may own the durable execution state needed for sequencing, waiting, and recovery, but it should not absorb delegated business authority, policy interpretation, direct system access, or authoritative business state.
- Human re-entry paths preserve state, evidence, authority context, and pending action when autonomy reaches its boundary, then return the human decision or action to the automated flow.
- Application and integration anti-patterns emerge when APIs, prompts, orchestration layers, event choreography, or agent SDKs are allowed to make architectural decisions implicitly.
- Taken together, these patterns express the Agentic Enterprise Framework's bounded-autonomy principle in application and integration, grounded in the Foundation for Autonomy paradigm: autonomy is permitted, but only within boundaries that keep authority, accountability, and evidence explicit at runtime.
Architecting Autonomous Agentic Systems ebook for free