← Back to Articles
Single Agent Patterns • Part 6

Single Agent Patterns: Workflow with Agentic Islands

Intent

Keep developer-defined control flow for the predictable skeleton of a task, and delegate only the genuinely open-ended sub-steps to agent loops.

Introduction

A recurring hazard in applied AI engineering is the urge to make every step of a pipeline autonomous. When developers entrust an entire end-to-end business process to an unbounded ReAct agent, the result is often unpredictable latency, sudden cost spikes, and compounding non-deterministic failures. In real-world enterprise workloads, most sub-tasks—such as authentication, database lookups, input schema validation, and logging—do not need an LLM to decide what to do next; their sequence is completely deterministic.

The Workflow with Agentic Islands pattern establishes the pragmatic midpoint along the control-flow axis. It keeps developer-defined software constructs (DAGs, state machines, and procedural scripts) for the predictable structural spine of the application, isolating agentic loops exclusively to bounded nodes ("islands") where unstructured ambiguity or dynamic tool improvisation is truly necessary.

The Architecture of an Agentic Island

In this hybrid pattern, the overarching execution flow is governed by standard code or graph orchestrators (such as LangGraph or Temporal). The system enters an agentic island only when encountering a step that cannot be solved by deterministic logic alone:

Deterministic Workflow Spine (DAG / State Machine) Step 1 Parse & Auth Deterministic Agentic Island (Scoped Loop) Think Act Bounded: max 4 turns Step 3 Schema Verify Deterministic

When to Introduce an Island

The core design challenge of this pattern is identifying where agentic islands genuinely belong. Teams often fall victim to two extremes: making the system completely static and brittle, or introducing agents into trivial steps simply because LLMs are available.

An agentic island is justified when:

  1. The input is fundamentally unstructured: Complex legal documents, customer complaints with non-standard formatting, or semi-structured web crawl dumps.
  2. The execution path cannot be statically enumerated: Troubleshooting an error log where the diagnostic queries depend on the error messages encountered during previous queries.
  3. The action space requires tool improvisation: The task requires calling one or more search, retrieval, or transformation APIs whose invocation order cannot be predicted at compile time.

Trade-offs

Balancing static workflows with autonomous islands offers stability, but requires clear architectural boundaries:

Predictable Latency & Cost

Bounding agent loops to specific pipeline nodes ensures that non-agentic steps execute with zero LLM overhead, keeping 90% of the workflow deterministic.

Unit Testability & Reliability

Deterministic nodes can be tested with standard unit test fixtures, while regression testing and evals are isolated strictly to the agentic nodes.

Islands Placed by Habit

Developers routinely turn deterministic sub-steps into autonomous agent loops out of convenience or trendiness, introducing unnecessary variance.

Remit Creep

An island given slightly broader tools and remit over successive releases quietly absorbs the entire pipeline, dismantling the safety guarantees of the deterministic harness.

Known Uses

The workflow with agentic islands is the industry standard pattern for enterprise production systems:

References