Agentic Pattern Libraryby Vikas Goyal
← All patterns
67

Shadow-Mode Autonomy

Also known as: earned autonomy, shadow mode, parallel run, champion–challenger

Run an agent beside the current process, compare results, and let it act alone only once it matches reliably.

TrackAgentic systems FamilySafety & control Maturity Emerging ChangesDecisionVerification
01

Problem

Teams want agents to take over real work: triaging alerts, fixing defects, routing tickets, approving low-risk changes. Demos and benchmarks don’t say how the agent will do on your inputs. Switching it on fully is a leap of faith, while keeping a person approving every action forever throws away most of the value. Trust ends up argued about instead of measured.

  • Real inputs differ from test sets and demos.
  • Some mistakes are costly or can’t be undone.
  • Reviewing every agent action doesn’t scale.
  • Models and prompts change, so trust earned once can expire.
02

Solution

Run the agent in shadow. It receives the same inputs as the current process (a person or an existing system) and produces its decision or output, but nothing it does takes effect. Log both results and compare them with an agreed match rule, separately for each class of input. Review disagreements every week: some are agent errors, others show the humans were inconsistent. When the match rate stays above an agreed threshold for an agreed period, promote the agent one step, for example from shadow to acting with approval, or from approval to acting alone on the low-risk class only. Keep sampling after promotion, and demote automatically when the match rate drops or the model changes.

03

Diagram

Real inputspages · tickets Current processresult takes effect Agent in shadowresult only logged Comparematch rate per class Agent actson promoted class Keep in shadowreview disagreements above bar below bar model change or drop → back to shadow

The agent sees every real input but changes nothing until its record earns promotion, and it drops back to shadow when things change.

04

When to use

Use it when

  • An agent will take over a repeatable task or decision
  • The current process produces an outcome you can compare against
  • Mistakes are costly enough that trust must be earned
  • You can afford to run both paths for a few weeks

Avoid it when

  • One-off or creative work with no comparable output
  • When people disagree too often to act as a reference; fix the rubric first
  • Trivial, easily reversed tasks; let the agent act with rollback instead
05

Trade-offs

Latency Shadow runs off the critical path
Cost Both paths run during the trial
Complexity Logging, a match rule and promotion rules
Reliability Autonomy rises only on evidence

Gains

  • Trust based on measured agreement on real inputs
  • Autonomy granted per class of input, not all at once
  • Human mistakes surface too, improving the process itself

Costs

  • Weeks of running two paths before any time is saved
  • Someone has to review disagreements
  • A match rule can be hard to define for open-ended output
06

Worked example

Scenario
The Linkwatch team wants an agent to handle on-call pages for the redirect API.
  1. SetupThe agent receives every page, labels it noise or real, and proposes a runbook action. It has read-only credentials, so nothing it suggests can run.
  2. Weeks 1–3212 pages. The agent’s label matches the on-call engineer’s on 196 (92%). The team set 90% over three weeks as the bar for the noise class.
  3. ReviewOf the 16 disagreements, 9 were pages engineers had dismissed as noise that later turned out real. The runbook is updated for those alert types.
  4. PromotePages the agent labels noise are now acknowledged automatically. Real pages still go to a person, with the agent’s proposed action attached.
  5. Model upgradeAuto-acknowledge switches off and the agent returns to shadow for a week. Its match rate holds at 93%, so it is promoted again.
07

Failure modes

FailureSymptomMitigation
Easy cases hide hard onesHigh overall match rate, but rare alert types are wrongTrack the match rate per class and promote class by class
Humans treated as always rightAgent penalized where the person was wrongReview disagreements both ways before scoring
Trust never expiresAgent keeps acting after a model or prompt changeDemote to shadow on any model change or drop in match rate
Shadow leaks into effectA shadow action actually runsGive the shadow agent read-only or no-write credentials