Blueprints · Operations

Operating agents: audits, observability, reliability

Once agents run, someone must see what they do, prove it to an auditor and stop them fast. This page shows how, from the book, and how changes reach production.

Observability

What to log and trace

One trace ID follows a case across every platform it touches. The trace must answer an auditor’s seven questions. Book, Ch 22

The seven questions are on Design choices: evals and audits. This table lists the fields that answer them.

Trace field groups
Field groupFields (illustrative)
IdentityAgent ID, native ID per platform, on-behalf-of user, approver
ContextTrace ID, trigger, business keys, entity, period
InputsSource references with timestamps, hashed where sensitive
PolicyRule IDs and versions, limits applied, data class checks
ModelModel ID and version, prompt and skill versions
OutputProposed action, confidence, evidence cited
GuardrailsChecks run, results, blocked actions
Human stepDecision, change made, time spent
OutcomePosted document number, status
  • Integrity. Store traces where agents cannot change them. Book, Ch 22
  • Completeness. Reconcile monthly: every agent posting has a trace, and every trace with a posting points to a document. Book, Ch 22
  • Export daily. Vendor retention can be short. Promotion and audit evidence must outlive it. Book, Ch 25
  • A trace gap is a control failure for agents that touch financial records. Book, Ch 25
  • Swarms. One trace ID per task; each worker run is a child entry. The trace shows which single writer changed which record. Book, Ch 25

Open the decision trace viewer

Dashboards and metrics

Four dashboards, four audiences

Every number needs a trend, a target and a traceable source. Book, Ch 26

Dashboards by audience and cadence
AudienceCadenceWhat it shows (from the book)
BoardQuarterlyOutcomes such as DSO, close days and the share of decisions above L2
Steering committeeMonthlyPortfolio, benefits and roadmap
Autonomy councilEvery two weeksAgents by level and platform, promotions, demotions, cost per outcome
AgentOpsDailyHealth, drift, cost and the hand-off queue

Signals that move before the damage

Illustrative key risk indicators
IndicatorWhat it readsRed (illustrative)
Approval scrutinyShare of L2 approvals reviewed over 20 seconds or editedUnder 10%
Override rateRead only beside the sampled error rateFalling while sampled error rises
Hand-off rateCases sent to people, against planAbove plan; people still do most work
Regression pass rateAfter any model, prompt or data changeUpdates without a regression run
Fallback drillDate and success of the last manual fallback drillNo drill before quarter-end

Trust can be too low or too high. Calibrated trust means the override rate sits close to the agent’s measured error. Review times falling to seconds signal over-trust. Book, Ch 24 and Ch 26

Book, Ch 24, Ch 25 and Ch 26. Thresholds are illustrative.

Agent inventory

No registry, no run

An agent missing from the enterprise registry is stopped, whatever its platform. The gateways accept calls only from active, registered versions. Book, Ch 05 and Ch 25

Which system holds each record
RecordSystem of recordVendor platform’s role
Agent identity and ownerEnterprise registryMirror; issue platform credentials
Autonomy level and limitsEnterprise registryEnforce locally where it can
Instructions, skills, versionsPlatform or code repositoryStore and run
TracesEnterprise trace storeProduce; retain per vendor terms
Meter consumptionEnterprise cost data lakeMeter and invoice
Kill switchEnterprise plane routes the commandExecute the stop

Lifecycle states

  • Proposed: use case approved for design. Nothing runs in production.
  • Built: tests pass. Sandbox only.
  • Shadow: runs on live triggers; read tools only; proposals logged.
  • Active at L1 or L2: write tools only behind approval.
  • Active at L3 or L4: write tools within limits; periodic review.
  • Suspended: kill switch or demotion trigger; triggers queued.
  • Retired: no actions; traces kept.

Any change to model, tools, instructions or limits creates a new version. It starts in shadow unless the change is minor. Auditors read the agent contract first. Book, Ch 05

The registry also keeps the “do not automate” list, with an owner, a reason and a review date. Book, Ch 22

Audits

The enterprise owns the rules, the evidence and the stop button

Each vendor platform enforces rules locally. Only the enterprise sees across platforms. Book, Ch 22

Five control objectives
ObjectiveQuestion it answers
C1 KnowWhich agents exist, who owns them, what can they do?
C2 LimitCan each agent do only what its task needs?
C3 ContainCan bad input or a wrong decision cause only bounded harm?
C4 ProveCan we show who did what, why and on whose authority?
C5 StopCan we stop one agent or all agents within minutes and fall back?

Audit walkthroughs

  • Explainability pass. Before L3, the owner and two reviewers explain the workflow without the vendor in the room. The result goes into the promotion file. Book, Ch 22
  • Discernment pass. Reviewers must show they know when AI should not be used before they get review authority. Book, Ch 22
  • Decision-quality audit. Each quarter, internal control re-performs a sample of approved and automatic decisions end to end. Book, Ch 06
  • Recertification. The agent owner recertifies scope and level every quarter. Book, Ch 22
  • Early walkthroughs. An auditor who rejects agent evidence is a named risk. Walk auditors through the trace design early. Book, Ch 26

A rule that must never break belongs in the application or the gateway, not in a prompt. Prompts are guidance; models can ignore them. Book, Ch 22

Open the controls library Evals and the seven questions

Who watches the agents

Guardians may stop, never start

Guardian agents review outputs, monitor actions or block them. A guardian may stop, throttle or flag. It may never start, approve, edit or promote. Book, Ch 25

The chain ends at a person

  1. Seeded cases. Known-bad cases are planted each week. Each guardian’s catch rate is measured.
  2. Independence. A guardian uses a different model family from the agents it watches, with code rules beside it.
  3. Human samples. The guardian’s owner reviews a sample of its stops and its silences every month.
  4. Its own record. Each guardian is registered with an owner, a level and SLOs. No guardian watches itself.

Escalation and demotion path

Signals, automatic actions, human decisions and demotions
SignalAutomatic actionHuman decisionDemotion
Swarm exceeds width, depth or budgetSupervisor stoppedOwner within 1 business dayTo the previous version
Two workers write the same recordWrites blocked; task stoppedOwner and AgentOps lead, same dayTo L1 (read-only)
Wrong output above materialityTask paused; case to the hand-off queueOwner within 4 hoursOne level
Guardian catches under 90% of seeded casesGuardian marked degradedAgentOps lead within 1 weekWatched swarms frozen at current level
Trace gap on any taskTreated as a Sev 1 control breachOn-call engineer at onceTo shadow

Book, Ch 25. Timings are illustrative.

Kill switch

Stop narrowly, stop fast, practice it

The kill switch has five levels. K1 to K3 stop one agent or scope. K4 and K5 stop many. Book, Ch 05

Kill switch levels K1 to K5
LevelActionWho may triggerTarget (illustrative)
K1 Pause agent versionRegistry status to suspended; new triggers queuedAgent owner or any on-call AgentOps engineer5 minutes
K2 Revoke tool scopeGateway disables one tool or scope for all agentsTool owner, security operations5 minutes
K3 Revoke identityThe agent’s identity is disabled everywhereSecurity operations15 minutes
K4 Platform stopAll agents on one platform fall back to L1CISO or named delegate30 minutes
K5 Fleet stopAll agents on all platforms fall back to L1Any two of CFO, CIO, CISO60 minutes
  • Test each level quarterly outside production and yearly in production. A kill switch never pulled is a hypothesis. Book, Ch 05
  • A kill switch that works in one vendor console but not another is not a kill switch. Book, Ch 25
  • Two trained people per team can take the full queue. Drill the manual fallback before each quarter-end. Book, Ch 22 and Ch 24

In the book’s capstone, a K2 on one order-write scope kept all other traffic running while the defect was fixed. Book, Ch 30

Reliability

Stop fast, change slowly

Any on-call engineer may stop an agent at once. Every change runs a full regression and passes an approval gate sized to its risk. Book, Ch 25

Service level objectives

Illustrative SLOs for an AP exception agent
SLODefinitionTarget (illustrative)
Proposal qualityL2 proposals approved without edit90%
Hand-off rateCases sent to peopleBelow 25%
Post-action errorExecuted actions later reversedBelow 0.5%
Cost per caseAll meters plus hand-off timeAt or below plan by month 6
Trace completenessActions with a full trace in the enterprise store100%

The book does not define per-agent error budgets. It uses an auto-error budget only in its business-case model. For running agents it sets SLO targets and automatic demotion triggers. Book, Ch 21 and Ch 25

Incidents

Five classes on every platform: outage, degradation, wrong action, control breach (including a missing trace) and cost anomaly. Book, Ch 25

Incident severity
SeverityExampleFirst responseWho may stop the agent
Sev 1Control breach; material wrong postings; data exposure15 minutes, around the clockAny AgentOps on-call engineer, at once
Sev 2Repeated wrong actions below materiality1 hourProduct owner
Sev 3Degradation in tolerance; cost anomaly1 business dayProduct owner

Recovery playbook for wrong actions

  1. Stop the agent at the right level, without waiting for a meeting.
  2. Start the manual fallback for the queue.
  3. Scope with traces: every action since the last known-good state.
  4. Correct through normal procedures: reverse postings, reissue messages, notify customers.
  5. Find the root cause: data, rule, context, model, tool, timing or vendor change.
  6. Decide: recover, redesign or stop.
  7. Restart only after tests pass and the owner and control owner sign.

Book, Ch 26.

Demotion rules

  • To L2 after one critical error in the weekly sample, or value-weighted error above 0.2% in a month. Book, Ch 24
  • To shadow after a control breach, missing traces or a vendor model change that fails regression. Book, Ch 24
  • A readiness check that fails after go-live demotes the agent one level automatically. Book, Ch 06
  • The autonomy council reviews every demotion within 10 working days. Promotion is never automatic. Book, Ch 01 and Ch 24

Drift and change

  • Watch input, behavior and outcome drift. One past its band opens a rerun; two together freeze promotion. Book, Ch 06
  • Treat every vendor update as a model change. Run the regression set and watch the SLOs for two weeks. Book, Ch 25
  • A change an agent proposes to itself follows the same gate and is never self-approved. Book, Ch 25

Workload under pressure

  • P1 interactive keeps reserved capacity. If throttled, it routes to people, never to silence.
  • P2 deadline work, such as close tasks, may preempt batch work at peaks.
  • P3 batch runs off-peak. P4 opportunistic work pauses during close.

Book, Ch 25. Priority classes are illustrative.

Failure patterns to name early

Failure patterns and their prevention
PatternSymptomPrevention
Rubber stampApproval rates near 100% in secondsScrutiny indicator; seeded cases
Autonomy ratchetLevels go up, never downAutomatic demotion triggers
Silent driftQuality falls after vendor updatesRegression on every update
CascadeOne error spreads through a chainCircuit breakers
Shadow sprawlAgents outside the registryNo registry, no run
Harness lastAgents built before identity, traces and limitsInvest in sequence

Book, Ch 26. “A bad system will beat a good person every time”: fix the process, data, incentives or harness, not the person on duty. All figures on this page are illustrative.

Organization: humans and agents Self-improving loops

Pipelines and the work repository

Pipelines and the work repository

Every change to what an agent does goes through a pipeline. The kind of artifact that changes decides which pipeline and who approves. Book, Ch 22 and Ch 25

One rule covers them all. Any artifact that can change what an agent posts, approves or sends is under change control. That includes a policy document the agent retrieves. Book, Ch 22

1. The skill pipeline

A skill packages instructions, scripts and examples an agent loads only when a task needs them. The enterprise owns skills and governs them like code. Book, Ch 05

Skill pipeline stages, owners and rules
StageOwnerRuleSource
ProposeProcess owner, or the agent itselfIdeas come from hard cases, the exception list and override reasons. An agent may draft a skill but never approve it.Ch 24, Ch 25
Specify and writeProcess owner with the context engineerCapture what experienced people know but no procedure states.Ch 05, Ch 24
TestAgentOpsA golden set per skill before first use.Ch 05
Version and releaseProduct ownerSame release policy as instructions. The skill version is written to every trace.Ch 05, Ch 25
Outside skillsSecurityInstall only from trusted sources. Review as third-party code and pin the version.Ch 05
WithdrawProcess ownerOn a policy change, failed regression or retired dependency. Agents that load it return to shadow until retested.Ch 05

The book’s skill graph maps which skills depend on others and which agents use them. Withdrawing one skill then shows every agent it touches. Book, Ch 05

2. The agent pipeline

An agent moves one state at a time, on written criteria and a named human decision. Demotion is automatic. Book, Ch 05 and Ch 26

Agent pipeline steps, gates and deciders
StepGate (summary, illustrative)Decided bySource
DesignThe decision is written down: trigger, inputs, judgment, action, owner and evidence. An agent contract follows.Process ownerCh 05, Ch 21
HarnessThe harness score caps the highest level the agent may ever reach.Autonomy OfficeCh 05
Offline evaluationTool tests, golden set, trajectory checks, adversarial and envelope tests.Autonomy OfficeCh 06, Ch 26
RegisterOwn identity in the vendor platform and the enterprise registry. No registry, no run.Platform teamCh 25, Ch 26
ShadowLive triggers, no actions. At least 4 weeks incl. a month-end and 300 cases.Process product ownerCh 26
PilotCriteria signed before the build. It must be able to end in “stop”.Process ownerCh 26
Readiness gateTwelve checks. L3 needs all twelve; L2 needs a named subset and a dated plan.Named sign-offs per checkCh 06
Promote in slicesL3 opens one band, entity and limit at a time.Autonomy councilCh 26
Demote or retireAutomatic on a critical error. Retired agents keep their traces.Automatic; council reviewsCh 05, Ch 26

Pace matters too. In the book’s plan, no financial agent is promoted in the last month of a quarter. A Sev 1 incident stops all promotions. Book, Ch 26

3. The build and release pipeline

Prompts, policies, limits, tools and model versions are released like code. Evals are the gate. Book, Ch 06, Ch 22 and Ch 25

  • Regression on every change. Run the golden set, trajectory checks and adversarial set. Store the results in the registry entry. Book, Ch 06
  • Pin model versions at the gateway, so a silent provider update is caught. Book, Ch 06
  • New version, new start. A change to model, tools, instructions or limits starts in shadow unless it is minor. Book, Ch 05
  • Canary. A small share of live volume runs at the target level first. Book, Ch 06
  • Rollback. Changes an agent proposes roll back automatically on an SLO breach. Book, Ch 25
  • Vendor updates are model changes. Run the regression set and watch the SLOs for two weeks. Book, Ch 25
  • No ticket, no change. An instruction changed without a ticket is a control failure. Book, Ch 22

Practice, not from the book: the book names no build tools. A common way to apply it is to keep prompts, policies and skills in version control and block a merge when the regression suite fails.

4. The work repository

People need one place to see what agents are doing and what waits for them. The book supplies the pieces. Book, Ch 05 and Ch 25

  • The hand-off queue is a production asset. Size it, watch its age and label each human decision as evaluation data. Book, Ch 25
  • One queue per value stream. Keep one registry, one meter dataset and one hand-off queue, not one per vendor. Book, Ch 25
  • Done is defined. Each task has a completion contract: what counts as done, the evidence required and who accepts it. Book, Ch 05
  • State lives outside the model. Long tasks keep a progress record and the last known-good state. Book, Ch 05
  • Every item points to evidence: its trace ID and, where a person decides, its approval card. Book, Ch 05 and Ch 22

The book does not describe one shared backlog for human and agent tasks. The fields below are practice built from the book’s pieces, not book figures.

Suggested fields for a shared work repository (practice)
Field (practice)What it holds
TaskOne decision or piece of work, in plain words
DoerA person, or an agent by registry ID and version
AccountableAlways a named person, such as the agent’s business owner
StatusOpen, in progress, waiting for approval, escalated, done or not done
LevelThe autonomy level the step runs at
ApprovalWho approved, changed or rejected it, and when
EvidenceTrace ID, approval card and any change ticket
DeadlineThe time that matters, such as a payment run

Practice, not from the book: an agent should not close an item that waits on its own approval. Every agent item should name the person who answers for it.

5. Which pipeline does a change go through?

Classify the change by the artifact it touches. The class sets the pipeline and the approver. Book, Ch 25

Change, pipeline, class and approver
The changePipelineClassApprover
New skill or skill wordingSkillStandard if evaluation passesProduct owner
Instruction textBuild and releaseStandard if evaluation passesProduct owner
Threshold or limitBuild and releaseNormal, control-relevantOwner and risk lead
Model versionBuild and releaseNormal, full regressionEvaluation engineer and owner
Tools and permissionsAgentMajor, with a duties checkRisk lead and platform team
Autonomy levelAgentMajorAutonomy council
Another platform in the pathAgentMajorDesign authority and council
A change the agent proposesSame as the artifact it touchesNever self-approvedApprover for that class
A case the agent cannot finishWork repositoryHand-offThe person on the queue

Book, Ch 25, except the last row, which is practice. An agent’s limits, permissions, evaluation sets, traces and kill switch stay outside its own write scope. Book, Ch 22 and Ch 25

See a bounded improvement loop Open the controls library

Talk to the book