Insights & Articles

The orchestration layer is the product

The orchestration layer is the product

Every few months a new model arrives with better benchmarks and a lower price. Teams swap it in, rerun the demo, and discover the same thing: the model was never the part that made the system dependable.

The orchestration layer is. It is the code and conventions around the model that decide what it remembers, which tools it can call, when a person has to approve an action, and whether the result is good enough to ship. Models are becoming interchangeable. The layer around them is not.

Why the model is not the product

A model is a function: text in, text out. A product is a system that keeps promises across thousands of runs, with real data, real permissions and real consequences. The difference is everything the model does not do by itself.

  • Remember what happened earlier in the task, and what was already decided.
  • Choose which tool to call, with which arguments, and what to do when it fails.
  • Stop for a human approval before an action that cannot be undone.
  • Check the output against the task, not just against plausibility.
  • Explain, after the fact, why a run produced the result it did.

None of that comes from a better prompt. It comes from the system around the model.

What the orchestration layer owns

Orchestration turns a model call into a workflow. It owns the loop — plan, act, observe, evaluate, repeat — and the boundaries around that loop.

  • Run state. What the task has established, what is still open and what has already been tried.
  • Tool routing. A registry of tools, the shape of their inputs and outputs, and the rules for retrying them.
  • Policy and approvals. Who can do what, and which actions need a named human before they happen.
  • Evaluation. The checks that decide whether a result is complete, correct and safe to deliver.
  • Observability. Traces, cost and latency that make a failed run diagnosable instead of mysterious.

These are product decisions, not model features. They are also where most of the engineering effort belongs.

State that survives a run

Long-running tasks fail quietly when state lives only in the prompt. A step succeeds, the process restarts, and the next step begins without the context it needs. The result looks plausible and is wrong.

State should be explicit, durable and scoped to the task. Write it down after every meaningful step. Version it when the plan changes. Keep the model’s context window as a view over that state, not as the state itself.

The question is not whether the model can remember. It is whether the system can be trusted to.

Tools, permissions and approvals

A tool call is an action, not a suggestion. The orchestration layer should treat it with the same care as any other write to a production system.

  • Give each step the least privilege it needs, and no more.
  • Type the inputs and outputs so a malformed call fails before it reaches the tool.
  • Make retries idempotent, with a key that identifies the work rather than the attempt.
  • Put approval gates in front of irreversible actions — payments, deletions, external messages.
  • Record who approved what, when, and with which context on screen.

Approvals are not friction to be designed away. They are the point at which a system earns the right to act on its own next time.

Evaluation before delivery

Evaluation is how the system decides that a run is finished. Waiting for a person to notice a bad result is not a strategy.

Score every run against the task, not against the model’s confidence. Use checks that can fail loudly: schema validation, citation coverage, policy rules, numeric reconciliation and a small set of regression cases that represent the work the system is expected to do.

  • Define success in the language of the task, before the run starts.
  • Fail closed when a required check cannot be evaluated.
  • Keep a regression suite that grows every time production finds a new edge case.
  • Escalate to a person when the score is uncertain, not only when it is low.

Build or buy

Every team reaches the same fork: build the orchestration layer, or adopt one. The honest answer depends on whether the workflow itself is the product.

Build when the coordination is the differentiator — when your advantage lives in how state, approvals and evaluation fit your domain. Buy when the workflow is standard and the value is in getting it running well, with observability and support, sooner.

Either way, keep the boundaries explicit. A layer you can inspect, test and replace is worth more than a black box that happens to work in a demo.

What to measure

Benchmarks measure models. Production measures systems. The numbers that matter are the ones a customer would notice.

  • Task success rate, measured against the task’s own criteria.
  • Cost per successful run, not cost per call.
  • p95 latency for the workflows people actually wait on.
  • Human intervention rate, and what those interventions have in common.
  • Time to recover from a failed step.
  • Trace completeness: can you reconstruct why a run ended the way it did?

The model will keep changing. The layer that makes it reliable is the part you own.

Kudosoft Team

Engineering notes from the team building AI-powered software, agents and orchestration at Kudosoft. About Kudosoft