{
 "name": "Agentic Integration and Orchestration Pattern Library",
 "source": "https://agenticintegrationhub.com/patterns",
 "publisher": "Agentic Integration Hub",
 "author": "Rameshkumar (Ramesh) Varanganti",
 "updated": "2026-11-22",
 "risk_codes": {
  "ASI01": "Agent goal hijack",
  "ASI02": "Tool misuse and exploitation",
  "ASI03": "Identity and privilege abuse",
  "ASI04": "Agentic supply chain vulnerabilities",
  "ASI05": "Unexpected code execution",
  "ASI06": "Memory and context poisoning",
  "ASI07": "Insecure inter-agent communication",
  "ASI08": "Cascading failures",
  "ASI09": "Human-agent trust exploitation",
  "ASI10": "Rogue agents"
 },
 "patterns": [
  {
   "id": "governed-tool-facade",
   "group": "integration",
   "maturity": "Start here",
   "name": "Governed tool facade",
   "aka": "MCP tool over a managed API",
   "summary": "Expose one narrow, well-described MCP tool on top of an API or integration flow you already run, instead of letting the agent reach the system directly.",
   "diagram": [
    "User",
    "Agent",
    "MCP tool",
    "Managed API / iFlow",
    "System of record"
   ],
   "use": [
    "An agent needs to read or change data in ERP, HR, CRM or finance",
    "A managed API or integration flow already exists for the business object",
    "You want the agent to see only what its user could see"
   ],
   "avoid": [
    "The only available API is a broad technical endpoint with no business meaning",
    "You are tempted to build one generic “call any API” tool"
   ],
   "controls": [
    "One tool per business action, with a strict input schema and additionalProperties: false",
    "Tool description written for the model: what it does, limits, read-only or not",
    "User identity carried end to end (token exchange, not a shared technical user)",
    "Read-only hints and rate limits; writes added later with idempotency keys"
   ],
   "failures": [
    "Over-broad tool returns more data than the user is entitled to",
    "Vague description makes the model call the wrong tool or invent parameters",
    "Backend error text leaks into the model context and is treated as instructions"
   ],
   "example": "A sales copilot calls get_order_status(orderId) which maps to an existing order API in the ERP; it cannot change orders.",
   "asi": [
    "ASI02",
    "ASI03"
   ],
   "url": "https://agenticintegrationhub.com/patterns#governed-tool-facade",
   "guides": [
    {
     "title": "MCP gateway architecture",
     "url": "https://agenticintegrationhub.com/articles/mcp-gateway-basics"
    },
    {
     "title": "API-centric integration patterns",
     "url": "https://agenticintegrationhub.com/articles/api-centric-patterns"
    }
   ]
  },
  {
   "id": "mcp-gateway",
   "group": "integration",
   "maturity": "Start here",
   "name": "Central MCP gateway",
   "aka": "Tool gateway, agent gateway",
   "summary": "Route every agent-to-tool call through one gateway that authenticates, filters tool discovery per caller, applies policy, rate-limits and writes an audit record.",
   "diagram": [
    [
     "Agent A",
     "Agent B",
     "Agent C"
    ],
    "MCP gateway",
    [
     "Tool servers",
     "Managed APIs"
    ],
    "Systems"
   ],
   "use": [
    "More than one agent or MCP server is in use",
    "Security needs one place to approve, revoke and observe tool access",
    "You need per-tool authorization rather than per-server"
   ],
   "avoid": [
    "A single prototype with one read-only tool (add the gateway before the second tool)"
   ],
   "controls": [
    "Filtered tools/list: callers only discover tools they may use",
    "Policy decision on every call: allow, deny or require approval",
    "Approved MCP server registry; pin versions and review tool description changes",
    "Correlation ID and audit record per call; kill switch per agent and per tool"
   ],
   "failures": [
    "Gateway bypass because a team connects an agent straight to a server",
    "Tool description silently changed upstream (rug pull)",
    "Gateway becomes a single point of failure without capacity planning"
   ],
   "example": "Finance, procurement and HR agents all call tools through one gateway that blocks create_payment_request for anyone but the finance agent.",
   "asi": [
    "ASI02",
    "ASI03",
    "ASI04"
   ],
   "url": "https://agenticintegrationhub.com/patterns#mcp-gateway",
   "guides": [
    {
     "title": "MCP gateway architecture",
     "url": "https://agenticintegrationhub.com/articles/mcp-gateway-basics"
    },
    {
     "title": "SAP Integration Suite MCP Gateway",
     "url": "https://agenticintegrationhub.com/articles/sap-integration-suite-mcp-gateway"
    }
   ]
  },
  {
   "id": "event-triggered-agent",
   "group": "integration",
   "maturity": "Common",
   "name": "Event-triggered agent",
   "aka": "Event-driven agent activation",
   "summary": "A business event (invoice blocked, order delayed, employee hired) wakes an agent with a scoped goal, instead of the agent polling systems.",
   "diagram": [
    "Business event",
    "Event broker",
    "Agent (scoped goal)",
    "Tools via gateway",
    "Case / task for a person"
   ],
   "use": [
    "Work starts from something that happens in a system, not from a chat",
    "An event broker or webhooks already carry the events",
    "The agent prepares evidence or a proposal for a person"
   ],
   "avoid": [
    "Events are very high volume and each one would trigger model calls without filtering",
    "The response must be deterministic and immediate (use a normal integration flow)"
   ],
   "controls": [
    "Filter and deduplicate events before they reach the agent",
    "The event payload is data, never instructions to the agent",
    "Service identity for the agent plus the business owner recorded on the case",
    "Budget per event: maximum tool calls, tokens and time"
   ],
   "failures": [
    "Event storm causes runaway cost",
    "Duplicate events create duplicate actions",
    "Injected text in an event field redirects the agent"
   ],
   "example": "An invoice-blocked event wakes an AP agent that gathers PO, goods receipt and supplier messages, then opens a task for a clerk with a recommended fix.",
   "asi": [
    "ASI01",
    "ASI06",
    "ASI08"
   ],
   "url": "https://agenticintegrationhub.com/patterns#event-triggered-agent",
   "guides": [
    {
     "title": "What is agentic integration?",
     "url": "https://agenticintegrationhub.com/articles/what-is-agentic-integration"
    },
    {
     "title": "Integration orchestration",
     "url": "https://agenticintegrationhub.com/articles/integration-orchestration"
    }
   ]
  },
  {
   "id": "human-approval",
   "group": "integration",
   "maturity": "Start here",
   "name": "Human approval gate",
   "aka": "Human-in-the-loop, four-eyes",
   "summary": "The agent prepares a high-impact action; the gateway pauses it until a named person approves the exact payload, then executes it unchanged.",
   "diagram": [
    "Agent proposes",
    "Policy: approval required",
    "Approver sees exact payload",
    "Execute unchanged",
    "Audit"
   ],
   "use": [
    "Payments, bank detail changes, master data, terminations, anything irreversible",
    "Regulation or internal control requires separation of duties"
   ],
   "avoid": [
    "Every low-risk step needs approval (people rubber-stamp; use allow rules instead)"
   ],
   "controls": [
    "Approve the exact payload hash, not a summary the agent wrote",
    "Approver cannot be the requesting user; show source evidence, not only the agent's reasoning",
    "Approval expires; any change to the payload restarts approval",
    "Record approver, time, payload and decision in the audit trail"
   ],
   "failures": [
    "Approval fatigue leads to blind approvals",
    "Agent changes the payload after approval",
    "Persuasive agent explanation hides a fraud signal"
   ],
   "example": "Finance agent proposes a 48,000 payment; policy requires AP manager approval; the approved payload is executed byte for byte.",
   "asi": [
    "ASI09",
    "ASI10"
   ],
   "url": "https://agenticintegrationhub.com/patterns#human-approval",
   "guides": [
    {
     "title": "Governance and security policies",
     "url": "https://agenticintegrationhub.com/articles/policy-governed-agents"
    },
    {
     "title": "Agent Policy Simulator",
     "url": "https://agenticintegrationhub.com/agent-policy-simulator"
    }
   ]
  },
  {
   "id": "a2a-delegation",
   "group": "integration",
   "maturity": "Emerging",
   "name": "Agent-to-agent delegation",
   "aka": "A2A task delegation, cross-organization agents",
   "summary": "An agent hands a task to another agent on a different platform or in another company using A2A, exchanging tasks and artifacts rather than sharing tools or credentials.",
   "diagram": [
    "Your agent",
    "Agent Card discovery",
    "A2A task",
    "Partner agent (own platform)",
    "Artifact back"
   ],
   "use": [
    "Work crosses teams, platforms or companies (suppliers, logistics, banks)",
    "The other side wants to keep its own tools and data private"
   ],
   "avoid": [
    "Both agents run in your own platform and could share a workflow",
    "You cannot verify who operates the remote agent"
   ],
   "controls": [
    "Allow-list of trusted agents; verify signed Agent Cards and endpoints",
    "Strong authentication (OAuth 2.0 or mutual TLS) per partner",
    "Treat returned artifacts as untrusted data; validate against a schema",
    "Timeouts and handling for input-required and failed task states"
   ],
   "failures": [
    "Impersonated or compromised partner agent",
    "Partner reply contains instructions that hijack your agent",
    "Task hangs in input-required with no owner"
   ],
   "example": "Procurement agent asks a supplier's agent to confirm stock and ship date for 40 SKUs and receives a structured artifact.",
   "asi": [
    "ASI07",
    "ASI01"
   ],
   "url": "https://agenticintegrationhub.com/patterns#a2a-delegation",
   "guides": [
    {
     "title": "Agent-to-agent (A2A) integration",
     "url": "https://agenticintegrationhub.com/articles/a2a-enterprise-integration"
    },
    {
     "title": "A2A Agent Card builder",
     "url": "https://agenticintegrationhub.com/tools#a2a-card"
    }
   ]
  },
  {
   "id": "entitled-retrieval",
   "group": "integration",
   "maturity": "Common",
   "name": "Entitlement-aware retrieval",
   "aka": "Permission-filtered RAG",
   "summary": "Give agents context from documents and records through a retrieval tool that filters results by the calling user's permissions before anything reaches the model.",
   "diagram": [
    "User + agent",
    "Retrieval tool",
    "Permission filter",
    "Index / records",
    "Cited snippets"
   ],
   "use": [
    "Agents answer questions from policies, contracts, tickets or HR knowledge",
    "Content has different audiences (country, role, confidentiality)"
   ],
   "avoid": [
    "Copying all content into one shared index without access metadata"
   ],
   "controls": [
    "Filter at query time with the user's identity, not at index time only",
    "Return citations so people can verify answers",
    "Scan ingested content for embedded instructions; label it as untrusted",
    "Expire and re-index when source permissions change"
   ],
   "failures": [
    "Confidential content leaks to a user who could not open the source",
    "Poisoned document steers the agent",
    "Stale index answers from withdrawn policy"
   ],
   "example": "An HR agent answers a leave question in Germany using only policies the employee can access, with links to the source pages.",
   "asi": [
    "ASI06",
    "ASI03"
   ],
   "url": "https://agenticintegrationhub.com/patterns#entitled-retrieval",
   "guides": [
    {
     "title": "Agent identity and authorization",
     "url": "https://agenticintegrationhub.com/articles/agent-identity-authorization"
    },
    {
     "title": "Enterprise AI agent integration",
     "url": "https://agenticintegrationhub.com/articles/enterprise-ai-agent-integration"
    }
   ]
  },
  {
   "id": "safe-write",
   "group": "integration",
   "maturity": "Start here",
   "name": "Safe write with compensation",
   "aka": "Idempotent write, saga",
   "summary": "Every agent write carries an idempotency key, runs through an integration flow with retries, and has a defined compensating action if a later step fails.",
   "diagram": [
    "Agent write + idempotency key",
    "Gateway",
    "Integration flow (retries)",
    "System of record",
    "Compensate on failure"
   ],
   "use": [
    "Agents create or change business documents",
    "Calls can time out and be retried by the agent, the gateway or the flow"
   ],
   "avoid": [
    "The target system cannot detect duplicates and has no reversal (keep a person in the loop instead)"
   ],
   "controls": [
    "Idempotency key generated once per business intent and checked by the backend",
    "Retries with backoff in the integration layer, not by the model re-calling the tool",
    "Compensating action defined and tested (cancel, reverse, credit)",
    "Status tool so the agent can check the outcome instead of retrying blindly"
   ],
   "failures": [
    "Timeout plus retry creates a duplicate payment or order",
    "Partial completion leaves systems inconsistent",
    "Agent loops on a failing call"
   ],
   "example": "A payment request times out; the agent calls get_request_status with the same key instead of submitting again.",
   "asi": [
    "ASI08",
    "ASI02"
   ],
   "url": "https://agenticintegrationhub.com/patterns#safe-write",
   "guides": [
    {
     "title": "Multi-agent orchestration: reliability",
     "url": "https://agenticintegrationhub.com/articles/multi-agent-orchestration#reliability"
    },
    {
     "title": "API-centric integration patterns",
     "url": "https://agenticintegrationhub.com/articles/api-centric-patterns"
    }
   ]
  },
  {
   "id": "workflow-led",
   "group": "orchestration",
   "maturity": "Start here",
   "name": "Workflow-led (agent in the loop)",
   "aka": "Deterministic backbone",
   "summary": "A workflow or integration flow owns the process and the order of steps; it calls an agent only for judgement steps such as classifying, extracting or drafting.",
   "diagram": [
    "Trigger",
    "Workflow step",
    "Agent: judgement step",
    "Workflow step",
    "Done"
   ],
   "use": [
    "Regulated, audited or high-volume processes",
    "The sequence must always happen in the same order",
    "You want the most predictable cost and behaviour"
   ],
   "avoid": [
    "The path genuinely depends on what is discovered along the way"
   ],
   "controls": [
    "The agent output is validated against a schema before the workflow continues",
    "Fallback path when the agent is unsure or unavailable",
    "Confidence thresholds route low-confidence cases to people"
   ],
   "failures": [
    "Agent output in an unexpected format stops the workflow",
    "Silent drift in agent quality over time"
   ],
   "example": "An invoice workflow calls an agent to extract fields from a PDF, then validates and posts through the normal integration flow.",
   "asi": [
    "ASI08"
   ],
   "url": "https://agenticintegrationhub.com/patterns#workflow-led",
   "guides": [
    {
     "title": "Multi-agent orchestration",
     "url": "https://agenticintegrationhub.com/articles/multi-agent-orchestration#patterns"
    },
    {
     "title": "Integration orchestration",
     "url": "https://agenticintegrationhub.com/articles/integration-orchestration"
    }
   ]
  },
  {
   "id": "supervisor",
   "group": "orchestration",
   "maturity": "Common",
   "name": "Supervisor (orchestrator and workers)",
   "aka": "Planner, manager agent",
   "summary": "An orchestrator agent plans, delegates tasks to specialist agents with narrow tools, and combines their results.",
   "diagram": [
    "Goal",
    "Orchestrator agent",
    [
     "Specialist A",
     "Specialist B",
     "Specialist C"
    ],
    "Combined result"
   ],
   "use": [
    "Exception handling and investigations where the next step depends on findings",
    "Several domains each need their own specialist tools"
   ],
   "avoid": [
    "A fixed sequence would do the job (use workflow-led)",
    "You cannot bound cost or depth"
   ],
   "controls": [
    "Orchestrator has few or no tools of its own; specialists hold narrow tools",
    "Permissions only shrink at each delegation hop",
    "Depth limit, budget and stop conditions",
    "One trace across all agents"
   ],
   "failures": [
    "Orchestrator becomes an over-privileged single point",
    "Delegation loops",
    "Specialists disagree and the orchestrator picks silently"
   ],
   "example": "An orchestrator investigates an invoice exception by delegating to procurement, finance and a supplier's agent.",
   "asi": [
    "ASI03",
    "ASI08",
    "ASI10"
   ],
   "url": "https://agenticintegrationhub.com/patterns#supervisor",
   "guides": [
    {
     "title": "Multi-agent orchestration",
     "url": "https://agenticintegrationhub.com/articles/multi-agent-orchestration#patterns"
    }
   ]
  },
  {
   "id": "sequential-handoff",
   "group": "orchestration",
   "maturity": "Common",
   "name": "Sequential hand-off",
   "aka": "Pipeline, relay",
   "summary": "Each agent completes its step and hands the case to the next one, like an assembly line.",
   "diagram": [
    "Intake agent",
    "Validation agent",
    "Enrichment agent",
    "Posting step"
   ],
   "use": [
    "Well-understood flows such as intake, validation, enrichment, posting",
    "Each stage has a clear owner"
   ],
   "avoid": [
    "Stages need to go back and forth often"
   ],
   "controls": [
    "Schema validation at every hand-off",
    "Each stage has only the tools for its step",
    "Case state stored outside the agents"
   ],
   "failures": [
    "Errors propagate downstream and get amplified",
    "Context grows with every hand-off"
   ],
   "example": "Supplier onboarding: intake agent reads the form, validation agent checks tax and bank data, a workflow creates the vendor after approval.",
   "asi": [
    "ASI08",
    "ASI06"
   ],
   "url": "https://agenticintegrationhub.com/patterns#sequential-handoff",
   "guides": [
    {
     "title": "Multi-agent orchestration",
     "url": "https://agenticintegrationhub.com/articles/multi-agent-orchestration#patterns"
    }
   ]
  },
  {
   "id": "fan-out",
   "group": "orchestration",
   "maturity": "Common",
   "name": "Parallel fan-out and fan-in",
   "aka": "Scatter-gather",
   "summary": "Independent sub-tasks go to several agents at once and the results are aggregated.",
   "diagram": [
    "Request",
    [
     "Credit check agent",
     "Stock agent",
     "Compliance agent"
    ],
    "Aggregator",
    "Decision"
   ],
   "use": [
    "Independent checks for one case (credit, stock, compliance)",
    "Latency matters and the checks do not depend on each other"
   ],
   "avoid": [
    "Checks depend on each other's results"
   ],
   "controls": [
    "Define what “enough results” means and a timeout per branch",
    "Aggregator rules are deterministic where possible",
    "Per-branch budget and concurrency limit"
   ],
   "failures": [
    "Partial failure produces a confident but incomplete answer",
    "Cost multiplies with every branch"
   ],
   "example": "A large order triggers parallel credit, stock and export-control checks; the order is released only when all three return.",
   "asi": [
    "ASI08"
   ],
   "url": "https://agenticintegrationhub.com/patterns#fan-out",
   "guides": [
    {
     "title": "Multi-agent orchestration",
     "url": "https://agenticintegrationhub.com/articles/multi-agent-orchestration#patterns"
    }
   ]
  },
  {
   "id": "choreography",
   "group": "orchestration",
   "maturity": "Advanced",
   "name": "Event-driven choreography",
   "aka": "Decentralized agents",
   "summary": "Agents subscribe to business events and react independently, with no central coordinator.",
   "diagram": [
    [
     "Agent A",
     "Agent B"
    ],
    "Event broker",
    [
     "Agent C",
     "Agent D"
    ]
   ],
   "use": [
    "Loosely coupled domains already connected by an event broker",
    "Teams own their agents independently"
   ],
   "avoid": [
    "You need a clear end-to-end owner and state for each case"
   ],
   "controls": [
    "Strong tracing with correlation IDs across events",
    "Event schemas and contracts per topic",
    "Loop detection (an agent's event triggering itself)"
   ],
   "failures": [
    "Nobody can see the end-to-end state",
    "Event loops between agents",
    "Hard to stop a misbehaving flow"
   ],
   "example": "A delivery-delayed event triggers a customer-communication agent and, independently, a replanning agent in logistics.",
   "asi": [
    "ASI08",
    "ASI10"
   ],
   "url": "https://agenticintegrationhub.com/patterns#choreography",
   "guides": [
    {
     "title": "Multi-agent orchestration",
     "url": "https://agenticintegrationhub.com/articles/multi-agent-orchestration#patterns"
    }
   ]
  },
  {
   "id": "maker-checker",
   "group": "orchestration",
   "maturity": "Common",
   "name": "Maker–checker review loop",
   "aka": "Evaluator, critic, reviewer agent",
   "summary": "One agent produces a draft; a separate reviewer (a second agent, rules, tests or a person) checks it against criteria before anything is used.",
   "diagram": [
    "Maker agent drafts",
    "Checker: rules, tests, agent",
    "Pass → use / Fail → revise",
    "Max N rounds"
   ],
   "use": [
    "Generated artefacts: mappings, scripts, iFlow designs, customer letters",
    "Quality criteria can be written down or tested"
   ],
   "avoid": [
    "Maker and checker share the same blind spots and no objective test exists"
   ],
   "controls": [
    "Objective checks first (schema, unit tests, linters), model review second",
    "Maximum revision rounds, then hand to a person",
    "Checker cannot be instructed by the maker's output"
   ],
   "failures": [
    "Endless revision loop",
    "Checker rubber-stamps the maker"
   ],
   "example": "An agent drafts a Groovy mapping script; unit tests and a reviewer agent check it before a developer sees it.",
   "asi": [
    "ASI05",
    "ASI09"
   ],
   "url": "https://agenticintegrationhub.com/patterns#maker-checker",
   "guides": [
    {
     "title": "Developer tools",
     "url": "https://agenticintegrationhub.com/tools"
    }
   ]
  },
  {
   "id": "integration-ops-agent",
   "group": "orchestration",
   "maturity": "Emerging",
   "name": "Agent-assisted integration operations",
   "aka": "AIOps for integration",
   "summary": "An agent watches failed messages and alerts, correlates them with recent changes, and drafts a diagnosis and fix for the integration team to review.",
   "diagram": [
    "Monitoring + logs",
    "Ops agent (read-only)",
    "Correlate with changes",
    "Draft fix",
    "Engineer reviews"
   ],
   "use": [
    "Integration teams spend time triaging repeated failures",
    "Logs, message monitoring and change history are accessible through APIs"
   ],
   "avoid": [
    "The agent would get write access to production configuration"
   ],
   "controls": [
    "Read-only access to monitoring; payloads masked",
    "Fixes are proposals, deployed through the normal change process",
    "Feedback loop: engineers mark diagnoses right or wrong"
   ],
   "failures": [
    "Sensitive payload data exposed in prompts",
    "Confident but wrong root cause"
   ],
   "example": "An ops agent links 300 failed messages to a certificate that expired at midnight and drafts the renewal steps.",
   "asi": [
    "ASI03",
    "ASI09"
   ],
   "url": "https://agenticintegrationhub.com/patterns#integration-ops-agent",
   "guides": [
    {
     "title": "What is agentic integration?",
     "url": "https://agenticintegrationhub.com/articles/what-is-agentic-integration#patterns"
    }
   ]
  }
 ]
}