Solution Architecture3 January 20278 min read

The framework is not the product: from LangChain 101 to a governed AI service

LangChain can take a team from a model call to a working agent. It does not make the agent reliable, safe, explainable or ready to operate. This companion to Build Lab: From Chain to Governed Agent separates what each framework layer solves from what it leaves to the team, and gives a practical rule: chains for predictable interpretation, graphs for controlled decisions and humans for accountability.

#AI Engineering#AI Agents#LangChain#AI Governance#Production AI

This article is a companion to Build Lab: From Chain to Governed Agent, CloudNala's eight-part series on taking one AI workflow from a model call to a service an organisation can operate. The series builds the controls one at a time. This piece sets out the argument that holds them together.

The starting point is a third-party manual, LangChain 101: Build, run, persist, and debug agents, published at aiengineeringfromscratch.com (edition 2026.11, opened on 25 November 2026). It is one of the more careful tutorials available. It pins exact package versions, measures what it claims and walks from a single agent run to a service with approvals and evaluations. It is a good place to learn the framework. It is also a useful prompt for a harder question, which no tutorial can answer for you: what does your service need to prove?

The model is only one component. The service is the complete controlled system around it, and no framework choice substitutes for clear outcomes, good source data, bounded permissions, reliable state, human accountability, evaluations, audit-ready traces and an operating owner.

A working agent is not a production service

Most demonstrations hide the questions production asks first:

  • What happens when the agent needs three tools instead of one?
  • Where is the state kept if the process restarts?
  • Who approves an action that changes data?
  • Can the team prove which source an answer used?
  • What does each completed request cost?
  • What changed between the run that worked and the run that failed?
  • Can the workflow be replayed without repeating a side effect?

A framework helps with some of these and is silent on others. The useful habit is to ask, for each layer in the stack, what it solves and what it leaves to you.

Eight layers, eight jobs

Eight layers of a governed AI service, each with what it solves and what it leaves to the team. Model provider: generates and interprets language; leaves truth, authority and fitness for this service. LangChain: common interfaces for models, messages and tools; leaves which tools are allowed and why. LangGraph: stateful steps, checkpoints and interrupts; leaves who approves and what is safe to repeat. LangSmith: traces, evaluations and prompt versions; leaves what counts as a pass for your users. MCP: a standard connection to tools and data; leaves permission, consent and enforcement. Higher-level harness: planning, subagents and context handling; leaves whether the extra complexity is justified. Cloud platform: identity, network, secrets and compute; leaves ownership of the running service. Governance is highlighted: policy, approval, audit and accountability; it answers for all the other layers.LAYERWHAT IT SOLVESWHAT IT LEAVES TO YOUModel providerGenerates and interpretslanguageTruth, authority and fitnessfor this serviceLangChainCommon interfaces for models,messages and toolsWhich tools are allowed,and whyLangGraphStateful steps, checkpointsand interruptsWho approves, and what issafe to repeatLangSmithTraces, evaluations andprompt versionsWhat counts as a passfor your usersMCPA standard connection totools and dataPermission, consentand enforcementHigher-level harnessPlanning, subagents andcontext handlingWhether the extra complexityis justifiedCloud platformIdentity, network, secretsand computeOwnership of therunning serviceGovernancePolicy, approval, auditand accountabilityAnswers for everyother layerThe service is the whole stack, operated and owned. Checked against official project pages on 25 November 2026.
Each layer solves one kind of problem and leaves another to the team. The model is one row of eight. CloudNala analysis; project names are dated, illustrative examples, not recommendations.

The layers in the diagram are not interchangeable, and treating "LangChain" as one product hides that. LangChain's own overview, opened on 25 November 2026, describes its create_agent as "a minimal, highly configurable harness" built on LangGraph, and sums up the idea as "Agent = Model + Harness". The LangGraph overview, opened the same day, calls LangGraph a "low-level orchestration framework and runtime for long-running, stateful agents", says that "LangGraph does not require LangChain" and states that "It does not prescribe prompts or agent architecture." The same page describes LangSmith as the platform for "tracing, evaluation, prompts, and deployment across frameworks". Deep Agents is described as a more complete harness, built on LangChain agents, with context compression, a virtual file system and subagents.

That candour is useful. The vendor's own pages say where each project stops. Everything past those edges belongs to the team that runs the service.

The Model Context Protocol specification (version 2026-07-28, opened on 25 November 2026) makes the same kind of statement about connections: "MCP itself cannot enforce these security principles at the protocol level." A standard connection is valuable. Permission, consent and enforcement are still yours, as The MCP security review and LangGraph and MCP solve different problems set out.

"LangChain 1.5" is not a version

The projects are versioned separately, so a sentence such as "we use LangChain 1.5" does not tell a reviewer what is installed. On 25 November 2026, PyPI listed langchain at 1.5.2, requiring Python 3.11 or later, and langgraph at 1.2.24. The manual, checked by its authors on 14 November 2026, pinned langchain 1.5.0 with langgraph 1.2.22 and separate versions for langchain-core, the checkpoint packages, LangSmith's client and each provider package. It makes the point itself: name the package with every version you record.

Two weeks apart, two careful sources record different patch versions. Neither is wrong. The lesson is that an agent stack is a software supply chain, not a static tutorial. Imports move, packages split and small releases can change behaviour. Part 8 turns this into a pinning and rollback discipline, and An AI bill of materials explains why the inventory must reach past packages to models, prompts and tools.

Choose a framework for operations, not for intelligence

The manual reports a comparison worth reading in full. On its own 99-task suite, a plain provider loop, a create_agent agent and a hand-built LangGraph graph produced identical outcomes on the shared tasks when the model and tools were the same, and the framework overhead it measured was small next to model time. Its conclusion is to choose a harness "for persistence, streaming, approvals, or files", not for answer quality. These are the manual's measurements on its own suite, not CloudNala's, and they should be repeated on your own tasks. The direction is still clear: a framework does not make a model smarter.

That turns framework selection into an engineering decision. The decision tool for this article is a selection table.

If the workflow needsFirst candidateWhat you still ownMeasure on the same task suite
A few deterministic steps, one model call, easy to readA plain loop in your own codeEverything, which is manageable at this sizePass rate, latency, cost
Common interfaces to models, tools and integrationsA framework layer such as LangChainTool allowlists, schemas, limits and testsPass rate, tool reliability, token use
State that survives restarts, retries, long runs or human reviewA graph runtime such as LangGraphApproval authority, idempotent side effects, recoveryResume behaviour, duplicate side effects, recovery time
Planning, subagents and context managementA higher-level harness, only when the workflow justifies itWhether the extra steps earn their cost and riskPass rate against the simpler option, cost per accepted outcome

The products named in the table are dated, illustrative examples, not recommendations. Several frameworks offer similar capabilities, and Framework, SDK, workflow tool or agent platform? compares them by responsibility rather than by brand. If a simpler option passes the same suite, it is usually the better choice, because it is easier to own.

What no framework supplies

Whichever layers a team adopts, the following stay with the organisation:

  • a clear business outcome, and a measure of it;
  • approved source data with an owner;
  • tool permissions bounded to the task, with arguments validated;
  • state management that survives failure;
  • a named person accountable for each consequential decision;
  • test cases and evaluations that run before every change;
  • traces that can reconstruct what happened, under which versions;
  • security and privacy controls on the real data flows;
  • cost and latency limits; and
  • an operating owner after go-live.

Human approval in particular is not a button added at the end of a demonstration. For a side-effecting tool, the workflow must show the exact proposed call and its evidence, pause at a durable checkpoint, record the reviewer, decision, time and reason, resume from the same state without running the side effect twice, and support rejection. Approval is a system, not a button designs that system, and Part 6 builds it on a checkpointed graph.

The NalaTolika pattern

NalaTolika is a CloudNala concept and reference architecture for governed language interpretation. It has no customers, deployments, pilots, data or results. It is a useful test of the argument, because language access at a public service counter is exactly where a fluent wrong answer does harm.

NalaTolika should not start as an autonomous agent that does everything. In its reference design it starts as a controlled interpretation and service-navigation workflow at an illustrative public service counter.

The routine path is a chain. Receive a text or voice request. Detect the language and intent. Translate or normalise the request where needed. Retrieve approved service information. Produce a structured answer with source references. Ask the person to confirm the next step. Escalate when confidence, identity or policy thresholds are not met.

The exception path is a graph. Multiple documents, missing or conflicting information, a follow-up question, human review, a case handoff, a retry after a service failure or a controlled external action all need state, checkpoints and explicit transitions.

The design rule is the production rule: use chains for predictable interpretation, graphs for controlled decisions and humans for accountability.

How to use the Build Lab

The series takes that rule apart one layer at a time:

  1. From model call to structured output
  2. Prompt templates are versioned components
  3. Retrieval with evidence and source boundaries
  4. Stateful workflows with LangGraph
  5. Tools and MCP connections need boundaries
  6. Human approval and durable checkpoints
  7. Tracing, evaluations and failure reconstruction
  8. Production packaging, version pinning and rollback

Each part adds a section to the printable Chain-to-Governed-Agent Readiness Checklist, which ends with eight tests a team should be able to demonstrate before calling a workflow production-ready. For the controls around the agent, read Where should AI guardrails live? and the series From Copilot to Governed Operator.

Sources and limits: this article is CloudNala analysis. The starting point is a third-party manual at aiengineeringfromscratch.com (edition 2026.11, opened on 25 November 2026); its harness measurements are its own and were not reproduced by CloudNala. Project descriptions come from docs.langchain.com and package versions from PyPI, both opened on 25 November 2026; versions change often, so check them on the day you read this. The MCP statement comes from the specification at modelcontextprotocol.io, version 2026-07-28. Projects are named as dated examples, with no ranking, endorsement or partnership. NalaTolika is a concept with no deployments, and the counter is illustrative.

How CloudNala can help

CloudNala reviews an AI workflow layer by layer before it goes live. We map what each framework and platform component in your design actually solves, mark what it leaves to your team, test the workflow against the eight demonstrations in the readiness checklist and give you a short record of what must close before the service is trusted with real users.


Work with CloudNala

CloudNala helps organisations move from technology ambition to practical execution across cloud, AI, data, platform engineering and digital services.

Whether you are exploring AI, modernising your cloud environment, building a public-sector digital service, or turning an idea into a working MVP, we can help you shape the roadmap and deliver the next step.

Book an AI Production Readiness Review or write to us at consult@cloudnala.co.za

Found this useful?

Share