23 November 2026
·5 min read
Platform & SREshadow mode for AI automationvalidationShadow Mode for AI Automation: Validate Against the Process It Replaces Before It Can Act
Before an AI workflow updates a system of record, run it in shadow beside the current process and compare decisions without letting it act. This post turns Google's staged-rollout practice into a go-live gate for operational automation.
This period we are writing about validation in the age of AI, and the hardest case is an AI workflow that will change a system of record: update a CRM, post a ledger entry, close a ticket, change an order. A model that reads a document and decides what to write is only as safe as the evidence that it decides correctly. For a go-live, the question is whether anyone has a record showing the workflow agrees with the process it replaces.
Google's SRE book chapter on testing for reliability describes canarying and staged rollout for software changes: route a small share of traffic to the new version, compare behaviour against the known-good version, and widen only when the comparison holds. The same shape applies to an operational AI workflow, with one change. A canary still acts on real traffic. For a workflow that writes to a system of record, you want it to decide without acting until the comparison supports it.
What a shadow run measures that a demo does not
A demo shows the workflow producing a plausible output on a chosen input. A shadow run places the workflow beside the live process on real inputs, over real volume, and records both decisions without letting the new workflow write anything. The current process, whether that is a person or an older rule set, remains the one that acts. The shadow produces what it would have done, the system stores both, and someone compares them.
Three things come out of that comparison that a demo cannot give you.
First, an agreement rate on real traffic rather than a cherry-picked sample. You see how often the shadow matched the live decision across the mix of cases that actually arrive, including the awkward ones that no one thinks to demo.
Second, a map of where the two disagree. Disagreements cluster around a document type, a customer segment, a field that is often blank, a format the model was never shown. The cluster tells you where the workflow is not ready, which is more useful than a single headline number.
Third, a view of whether the live process was right when they disagreed. Sometimes the shadow is correct and the current process is wrong. That is worth knowing, but it does not license go-live on its own; it tells you the comparison needs a human to adjudicate the disagreements rather than just count them.
Turn the comparison into a gate, not a dashboard
A shadow run that no one reads is theatre. The output has to be a gate with a written rule for what crosses it. Decide, before the run starts, what agreement you require on which segments, how you will handle the disagreements, and who signs the decision to let the workflow act.
The gate should separate the cases. For the segments where the shadow agreed at the rate you set, the workflow can act. For the segments where it did not, it stays in shadow or routes to a person. A single global switch forces you to wait for the worst case before you ship the good ones, or to ship the worst case along with the good ones.
Name an owner for the disagreements. Every mismatch between the shadow and the live process is an item someone has to look at, with the source document or record attached, so the decision rests on evidence rather than a confidence score. If no one owns that queue, the shadow run produces a pile of mismatches that nobody adjudicates, and the comparison becomes a number people quote without having checked.
Keep an action record the workflow cannot edit
Once the workflow is allowed to act on some segments, the record of what it did has to live somewhere it cannot change. Shadow mode earns the right to write to a system of record; that right comes with an independent log of every action, separate from the workflow's own state, showing what it changed, on what input, and under which gate. When something goes wrong in production, that log is how you tell a model error from a data error from a downstream failure.
This matters more as the workflow widens. The segments that passed the gate first were the easy ones. As you move the harder segments out of shadow, the action record lets you widen deliberately: let a segment act, watch its outcomes against the record for a bounded period, then move the next one. That is the staged rollout from the SRE chapter, applied to decisions rather than request traffic.
What to do this week
Pick one AI workflow you are considering, or one already running, that writes to a system of record. Before the next change ships, put these four things in writing.
- The current process it will replace, named precisely enough that you can run the workflow beside it on the same inputs.
- The agreement rule that permits action, by segment, decided before the shadow run rather than after you see the numbers.
- The named owner of the disagreement queue, with the source attached to each item.
- The action record, held where the workflow cannot edit it, covering every write once the workflow is allowed to act.
If you cannot write these down, the workflow is not ready to touch the system of record, regardless of how well it performs in a demo. The shadow run is cheap compared with the cost of finding the disagreements in production.
How Anystack helps
Anystack builds controlled AI automation for operational workflows in your own Google Cloud project, with validation gates, a named exception owner and an independent action record. For a workflow that updates a system of record, that means a shadow run beside the current process, a written rule for what crosses the gate, and a log of every action the workflow takes once it is allowed to act. The comparison, the owner and the record are the mechanism; the client keeps all three at handover.
*Anystack Engineering runs three-person engineering pods that deliver inside your repositories with a written spec for every change, a named reviewer of record and delivery measured per engagement. Engagements from £18,000 per month. How the pod delivers.*
