> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudthinker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Chapter 4 · Orchestration and Two-Engine Economics

> Design agent handoffs, shared incident state, and a two-engine cost model you can measure at your own signal volume.

*Multi-agent design is a set of engineering trade-offs about context, credentials, latency, and cost. This chapter gives you the mechanics behind the reference architecture and the three numbers that tell you whether 24/7 agent coverage pays for itself.*

## 4.1 What the orchestrator actually does

The **orchestrator** is the agent that receives the work, splits it up, and owns the result. Strip away the org-chart metaphor and it has five jobs:

| Job | What it means in practice |
| - | - |
| **Intake** | Turn goals, incidents, and events into tasks with a clear question |
| **Decomposition and routing** | Decide what the task needs and which helper handles each part |
| **Context management** | Give each helper only the context its subtask needs. This is the biggest cost and quality lever you have (Chapter 2). |
| **Integration** | Reconcile what the helpers found into one evidenced conclusion, including when they disagree |
| **Escalation** | Own the conversation with humans: approvals, notifications, and the incident record |

Helpers extend the orchestrator. They never compete with it. That gives you one audit trail, one approval surface, and one place that can answer "what is the system doing right now?"

The published evidence cuts both ways (sources in [Appendix D](https://docs.cloudthinker.io/learn/aio-engineer/appendix-d-sources.md)). Anthropic reports that a multi-agent system (a Claude Opus 4 lead with Claude Sonnet 4 helpers) outperformed a single Claude Opus 4 agent by 90.2% on its internal research eval, while multi-agent systems used about 15 times more tokens than chat. Microsoft's Azure SRE Agent team went the other way, collapsing many micro-agents and more than a hundred tools into a few generalists with core tools.

Use both lessons:

* **Split along credential and domain boundaries** such as cloud, security, database, and Kubernetes. Those splits pay for themselves in least privilege and depth.
* **Don't split further.** Every extra agent adds coordination overhead, duplicated context, and another thing to evaluate.

## 4.2 Handoffs are contracts

Multi-agent systems rarely fail because a helper is bad at its job. They fail at the handoff. Treat a handoff as a typed contract, not a chat message:

| Field | Contents |
| - | - |
| **Objective** | The question to answer or the outcome to reach |
| **Scoped context** | What the helper gets to see, and nothing more |
| **Budget** | Limits on steps, tokens, and time |
| **Return schema** | Findings with evidence pointers, a confidence level, and an explicit list of what it did not check |

With structured returns, the integration step has something concrete to reconcile, and the audit trail records who concluded what from which evidence. A single long reasoning chain hides that.

Parallelism follows naturally. Independent subtasks can fan out at the same time to cut latency, but only when they can't write to the same thing. Two helpers changing one system at once is a race condition.

> [!NOTE]
>
> **IN PRACTICE: SUBAGENTS IN CLOUDTHINKER**
>
> CloudThinker uses one built-in assistant, also called CloudThinker, as the orchestrator. For focused work it spawns **temporary subagents**: short-lived helpers that each get one bounded objective and never talk to you directly. See [Agents](https://docs.cloudthinker.io/guide/agents/overview.md).
>
> * During an incident investigation, CloudThinker hands focused checks (logs, metrics, traces, recent changes, dependencies) to subagents and merges their results into one verdict. See [Investigation and RCA](https://docs.cloudthinker.io/guide/incident/root-cause-analysis.md).
> * By default, a subagent is refused any tool that changes your systems. Changes stay with the orchestrator, where [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md) applies.
> * When a subagent fails, the parent gets a fixed failure code, a short redacted message, and one suggested next action, so it can recover instead of guessing:
>
> | Code | Meaning | Suggested next action |
> | - | - | - |
> | `CHILD_START_REFUSED` | The subagent couldn't start with this input | Don't retry the same brief |
> | `CHILD_TIMED_OUT` | The subagent ran out of time | Retry once with a smaller task |
> | `CHILD_STORE_UNAVAILABLE` | A storage dependency failed | Retry the same brief once |
> | `CHILD_RUN_FAILED` | The run failed with a known error | Report it, or retry once when the error is retryable |
> | `CHILD_INTERNAL_ERROR` | An unexpected error | Don't retry; report it |

## 4.3 The two-engine economics, quantified

The [Leadership Edition](https://docs.cloudthinker.io/learn/aio/introduction.md) described the pattern in words: a cheap, always-on **sensing engine** and an expensive, on-demand **resolver engine**. Here you compute it.

The naive design runs frontier-model reasoning on every signal. At thousands of signals a day, each with a multi-step reasoning pass, the model bill erases the return before the first renewal. Unbounded model spend is one of the documented ways agentic projects get cancelled. Two engines change the shape of the cost:

| | Sensing engine | Resolver engine |
| - | - | - |
| **Runs** | Continuously, on every signal | On demand, when sensing promotes an event |
| **Work** | Ingest, deduplicate, correlate, filter by policy, enrich, score | The full investigation: hypotheses, tool calls, plan, verify |
| **Compute** | Streams, rules, and small, cheap models | Frontier or fine-tuned models over tens of steps |
| **Cost shape** | Close to flat as signal volume grows | Grows only with promoted incidents |
| **Failure mode** | Misses real problems or promotes too many (tune with evals, Chapter 7) | Expensive wandering (cap with budgets, Chapter 1) |

### Measure the seam

Three numbers are your unit economics. Put them on the Chapter 8 dashboard:

| Metric | Formula | What it tells you |
| - | - | - |
| **Promotion rate** | Promoted events ÷ all signals | How often the expensive engine wakes up |
| **Cost per investigation** | Resolver spend ÷ investigations | Whether budgets and context discipline are working |
| **Cost per resolved incident** | Total spend (both engines) ÷ incidents resolved | Whether 24/7 coverage is viable at your scale |

A worked example with made-up round numbers (not CloudThinker prices):

| Input | Value |
| - | - |
| Signals a day | 20,000 |
| Promotion rate | 0.5%, so 100 investigations a day |
| Sensing cost | \$200 a day, flat |
| Cost per investigation | $2, so $200 a day of resolver spend |
| Incidents resolved | 80 a day |
| **Cost per resolved incident** | ($200 + $200) ÷ 80 = **\$5** |

Halve the promotion rate to 0.25% and resolver spend drops to $100, so cost per resolved incident falls toward $3.75 if the same real incidents still get through. Raise signal volume tenfold at the same promotion rate and the sensing bill barely moves, but resolver spend grows to \$2,000 a day. That's why promotion rate is the dial to watch.

A second lever on the same seam, as a general pattern: routine, well-understood daily work doesn't need frontier reasoning. Small fine-tuned models can handle the high-volume cases, with frontier models kept for novel investigations. Regulated teams often pair this with self-hosted deployment for full control of the model. In CloudThinker, the closest levers are model tiers (keep routine work on **Light**, see [Usage and credits](https://docs.cloudthinker.io/guide/billing/usage.md)) and a self-hosted or air-gapped deployment, which is in early access through a design-partner program ([Deployment options](https://docs.cloudthinker.io/guide/deployment/overview.md)).

> [!NOTE]
>
> **IN PRACTICE: PULSE AND INVESTIGATIONS IN RESOLVE**
>
> [Resolve](https://docs.cloudthinker.io/guide/incident/overview.md), CloudThinker's incident response module, ships this split.
>
> * **Sensing: [Pulse](https://docs.cloudthinker.io/guide/pulse/overview.md).** Pulse takes every alert your tools send, drops noise with four checks in order (dedup, rate limit, snooze, and learned noise verdicts; see [noise suppression](https://docs.cloudthinker.io/guide/pulse/clusters.md#noise-suppression)), groups related signals into clusters, classifies each cluster, and files an actionable one as an incident with status **Open**. Pulse stops there: it never triages or investigates.
> * **Resolving: [investigation](https://docs.cloudthinker.io/guide/incident/root-cause-analysis.md).** Investigations run only on incidents. You control what wakes the resolver with **Auto-investigate** and **Only from a minimum severity** on each webhook under **Resolve → Triggers & Outcomes**, and the **On duty** switch under **Resolve → Investigation**. See [Resolve settings](https://docs.cloudthinker.io/guide/incident/settings.md).
> * **Measuring.** Open **Resolve → Insights** and the **Pulse analysis** tab ([Pulse analytics](https://docs.cloudthinker.io/guide/pulse/analytics.md)). **Signals ingested** is your denominator. **Correlation yield** (signals whose cluster was linked to an incident or resolved, divided by all signals) is the closest built-in figure to promotion rate; it also counts clusters that resolved without an incident. **Noise suppressed** shows what sensing filtered out.
> * **Costing.** Credits aren't shown per investigation. **Admin Settings → Usage**, under **By Feature**, shows which capability used the credits over a time range; divide by the investigations in that range for an average cost per investigation ([Usage and credits](https://docs.cloudthinker.io/guide/billing/usage.md)).
> * **Capping spend.** [Credit limits](https://docs.cloudthinker.io/guide/billing/credit-limits.md) set a monthly budget per workspace, with **Throttle** or **Notify only** when it's reached.
>
> Whatever platform you evaluate, ask for its promotion rate and cost per resolved incident at a reference scale. If it can't answer, it hasn't run at scale.

## 4.4 State: the incident record as shared truth

A multi-agent system needs one durable, append-only record per task. It holds the timeline of signals, hypotheses, tool calls, evidence, decisions, approvals, actions, and verifications. Every agent reads from it and writes to it. A human who joins mid-flight sees the same truth the agents see.

Build it as an event log, not as mutable chat state. That buys you three things:

* **Replay for evaluation** (Chapter 7): rerun a past incident against a new model or prompt and compare.
* **An audit artifact for free** (Chapter 6): who did what, on which evidence, with whose approval.
* **Crash-safe resumption:** an agent that dies mid-investigation resumes from the record instead of starting over.

> [!NOTE]
>
> **IN PRACTICE: ONE RECORD PER INCIDENT**
>
> In Resolve, an incident has one investigation record. Each new session, started by a person or automatically, adds its steps to the same **Investigation timeline** under a session marker. If the conclusion changes, the timeline records a root-cause revision instead of creating a second report, and earlier sessions stay under **More actions → Earlier sessions**. Click **Watch live** to follow the conversation where CloudThinker is working. See [Investigation and RCA](https://docs.cloudthinker.io/guide/incident/root-cause-analysis.md).

> [!TIP]
>
> **KEY TAKEAWAY**
>
> Orchestration is five jobs: intake, routing, context allocation, integration, and escalation. Make handoffs typed contracts and keep one append-only incident record as shared truth. Treat economics as a design input: two engines, measured at the seam, with cost per resolved incident as the number that decides whether 24/7 agent coverage works at your scale.

## Next steps

> [card] [Chapter 5 · The Threat Model](https://docs.cloudthinker.io/learn/aio-engineer/chapter-5-threat-model.md)
>
> Why an operations agent is an attack surface, and the layered defenses that contain it.

> [card] [Pulse overview](https://docs.cloudthinker.io/guide/pulse/overview.md)
>
> See how Resolve filters alerts before any investigation starts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.