CloudNala Insights · Build Lab: From Chain to Governed Agent

Chain-to-Governed-Agent Readiness Checklist

One checklist per AI workflow, completed before the workflow is trusted with real users. Each section matches a part of the series. Tick an item only when the team can show evidence for it, and write where that evidence lives. The final section lists eight tests the team should be able to demonstrate. Examples are illustrative and use a fictional public service counter.

0The workflow and the production rule

Companion: The framework is not the product

Workflow in scopeOne workflow only, for example "answer a question about service requirements".
Business outcome and measureWhat a successful, accepted result is, and how it is counted.
Accountable service ownerNamed role who answers for the workflow’s outcomes.
Operating owner after go-liveTeam that runs, monitors and changes the workflow.
Data in scope and its classificationSynthetic or public data only until the privacy review is complete.
Checklist version and review dateReview after every model, prompt, tool or framework change.
Use chains for predictable interpretation. Use graphs for controlled decisions. Use humans for accountability.
Classify each path in the workflow
MechanismUsed forIllustrative paths at a public service counterPaths in this workflow
ChainPredictable interpretationDetect language and intent, normalise, retrieve approved information, produce a structured answer with sources, ask the person to confirm.
GraphControlled decisionsMultiple documents, missing or conflicting information, follow-up questions, human review, case handoff, retry after a service failure, a controlled external action.
HumanAccountabilityDecisions with consequences for a person, any approval, and every case outside confidence, identity or policy thresholds.

1Structured outputs

Part 1: From model call to structured output

Every field that code acts on has a defined shape, a check and a route when it is wrong.

2Prompt versioning

Part 2: Prompt templates are versioned components

Prompts are released like components, and every output can be traced to the exact version that produced it.

3Retrieval evidence

Part 3: Retrieval with evidence and source boundaries

Answers come from approved sources, and the system can show which source supported which answer.

4State

Part 4: Stateful workflows with LangGraph

Work that spans steps, failures or people keeps its state somewhere durable and explicit.

5Tool boundaries

Part 5: Tools and MCP connections need boundaries

Each tool is allowlisted, typed and limited, and the first version is read-only.

6Approval and resume

Part 6: Human approval and durable checkpoints

Side-effecting actions pause for an accountable person and resume safely.

7Tracing and evaluations

Part 7: Tracing, evaluations and failure reconstruction

The team can reconstruct any run and knows whether a change made the service better or worse.

8Pinning and rollback

Part 8: Production packaging, version pinning and rollback

The workflow can be installed elsewhere, upgraded deliberately and rolled back.

9Acceptance tests to demonstrate

A workflow is ready for a production pilot only when the team can demonstrate each test below, live or from a recorded run, to someone who did not build it. Use synthetic or public data.

Eight demonstrations
#TestWhat must be shownDate shownEvidence locationWitness
1Same task, two runtimesThe same task runs through a plain loop and a graph, with comparable results recorded on the same task suite.
2Reproducible structured outputThe same input produces the same validated structure, and the record shows raw output, parsed result and versions.
3Paused for approvalA side-effecting tool call is paused for approval, with its arguments and evidence shown to the reviewer.
4Safe resume after restartAfter a process restart, the workflow resumes from its checkpoint without repeating the side effect.
5Bounded retryA failed tool is retried within set limits, then stops or escalates, with no uncontrolled loop.
6Readable traceA trace shows the sequence of model, retrieval and tool events for one request, joined by a correlation identifier.
7Evaluation reportAn evaluation report gives pass or fail, with a reason, for every case.
8Installable elsewhereThe locked dependency set installs on another machine and the regression suite passes there.
Also show the negative cases: malformed input, tool failure, timeout, a duplicate resume and a missing approval. Each should end in a defined state, not an error the user sees or a loop.
Signed off by (service owner)Name and date
Reviewed by (engineering lead)Name and date
Reviewed by (security, privacy or risk)Name and date
Next reviewDate, and after any model, prompt, tool or framework change