Business

When a Pilot Hits Its Stop Condition: A Shutdown Checklist

Antonio Evans9 min read

A dashboard showing a stop condition alert with a checklist of actions: revoke access, export logs, schedule stakeholder briefing, draft postmortem.
Key points

Key points

  1. 1A stop condition only works if someone has pre-authorized the action that fires it, so the charter must name the person who can revoke access without waiting for a meeting.
  2. 2Revoke credentials and kill switches first, then export logs to a write-once archive before any cleanup, because cleanup deletes the evidence you need.
  3. 3Stakeholders need a short, factual incident summary with a timeline, not a technical diagnosis, within hours of the stop.
  4. 4The postmortem decides retry, revise or retire, and it must judge whether the stop condition itself was correctly designed, not only whether the agent misbehaved.

The stop condition is a trigger, not a plan

A pilot charter usually lists the conditions that end an autonomous run: a quality floor broken, a spend cap exceeded, a permission boundary touched, a human escalation ignored. A pilot charter template treats these as part of the decision gate, alongside scale and revise criteria, which is the right place for them. What most charters never do is describe what happens in the hour after the gate closes.

That gap has a cost. A stop condition is only a control if the response is rehearsed and pre-authorized. If firing the condition starts a hunt for who can disable the integration, the agent keeps running while the organization organizes itself. Write the response plan as a separate one-page annex, and name a single person who owns the stop, a backup, and the exact command or console action that disables each capability.

Keep the plan short enough to read at 2 a.m. A useful structure:

STOP ANNEX (one page, attached to the charter)
1. Stop owner: name, phone, backup: name, phone
2. Kill actions, in order:
   a. Disable the agent's credentials in the identity provider
   b. Revoke the API keys it used (list them by label)
   c. Pause the scheduler or queue that invokes it
   d. Set the feature flag to off
3. Freeze: no cleanup, no deletion, no "tidying" until logs are archived
4. Log archive destination: bucket, account, retention
5. Notify list, in order, with an owner for each notification
6. Postmortem owner and date

Two design rules make that page real. First, the kill actions must not depend on the same system the agent uses. If the agent can edit the feature flag, the flag is not a kill switch. Second, every kill action must be tested at least once during the pilot, in daylight, with the team watching, so the first real stop is not the first rehearsal. PrompTessor's guide to autonomous agents frames autonomy as a spectrum bounded by permissions, budgets, approvals and stopping rules; the stop plan is the part of that boundary that only exists on paper until you exercise it.

Hour zero: stop the action before you understand it

Sequence matters more than speed. The instinct to investigate first is wrong, because an agent in a loop keeps taking steps while people read dashboards. Oracle's explanation of the agent loop is blunt about the mechanism: the loop repeats until the task completes or a defined stopping condition is reached, which means the loop has no reason to pause while humans convene.

Revoke in this order, and note the timestamp of each step:

  1. Identity first. Disable or deactivate the agent's service account in your identity provider. This kills every downstream token minted from it, including ones you forgot existed.
  2. Keys second. Rotate or revoke every API key, OAuth grant and webhook secret the pilot used. Rotation beats deletion because it preserves the audit trail of what the key was used for.
  3. Triggers third. Pause the scheduler, cron job, queue consumer or event subscription. An agent with no credentials but a live trigger will simply log failures and fill your alerting.
  4. Flags fourth. Turn off the feature flag or routing rule that exposes the agent to users.
  5. Workflow fifth. If the agent created work items (tickets, orders, drafts, outbound messages), record the count and stop downstream processing before anyone "cleans up" the queue.

Then write a one-paragraph factual note to yourself while it is fresh: what fired, when you saw it, what you did, in what order. Memory decays fast and the postmortem needs the sequence.

Do not delete anything yet. Deletion is the most common way a team loses the ability to decide whether to retry.

Archive the evidence before anyone tidies up

Logs are the only record of what the agent actually did, and they are also the first thing a well-meaning engineer wants to clear out. Freeze first. Export to an archive that is separate from the systems the pilot touched, ideally with write-once or object-lock retention so the archive cannot be edited later even by an administrator.

Export these categories, each with a checksum and an export timestamp:

Evidence categoryWhat to captureWhy it decides the retry question
Agent tracesEvery step: prompt, tool call, observation, decisionShows whether the failure was reasoning, tooling or data
Tool and API logsRequests, responses, errors, latency, rate limitsReveals boundary crossings and retry storms
Identity logsSign-ins, token issuance, permission changesProves who and what had access, and when it stopped
Spend recordsToken and API usage per run and per dayConfirms whether the cost stop condition was real
Human-in-the-loop recordsApprovals, rejections, escalations, response timesTests whether the oversight layer worked
Downstream stateRecords the agent created or changed, with IDsGauges blast radius and what remediation is needed
Configuration at stopPrompt versions, tool list, permissions, feature flagsLets you reproduce the run exactly

Capture the configuration too. A trace without the prompt version and permission set is not reproducible, and an unreproducible incident cannot support a confident retry.

For anything with personal data, legal hold and privacy obligations apply before you copy it around. PagerDuty's guidance on incident postmortems notes that an analysis of how your incident response process itself performed belongs in the review, which means the archive should also include the response timeline: who was paged, how long revocation took, and where the process stalled.

Brief stakeholders with facts, not a story

Stakeholders do not need the reasoning trace. They need to know what happened, who is affected, what is stopped, what is not, and when they will hear more. Send the first brief within hours, even if the facts are thin, because silence gets filled with worse guesses.

Use a fixed five-part format so every brief is comparable:

  • What fired: the stop condition, in its charter wording, with the threshold and the observed value.
  • What is stopped: the specific capability, and confirmation that credentials are revoked.
  • What is not affected: the systems you have checked and cleared.
  • Impact so far: counts of affected records, users, orders or messages, with the time window.
  • Next update: a specific time, and who owns it.

Send a second brief when the archive is complete and a third after the postmortem, with the decision. Three briefs is usually enough. Resist the urge to explain root cause in the first one; you will be wrong, and correcting an early diagnosis costs more trust than a short delay.

Two stakeholder groups are easy to miss. The team that owns the downstream system (billing, CRM, fulfillment) needs to know what the agent touched, because their reconciliation may be the first place the damage shows up. Legal or compliance needs notice if the stop involved regulated data, an external communication or a contractual obligation. Pertama Partners' AI incident postmortem guide lists regulatory notification as a category that always warrants a formal review, which is a useful default: if you are unsure whether to notify, run the review and let it decide.

Write the postmortem that decides retry, revise or retire

Hold the postmortem three to seven days after the stop, long enough for emotions to settle and short enough that memory holds. The Pertama guide recommends that window and a facilitator who was not involved in the incident, which matters when the person who built the pilot is also the person answering questions about it.

Blameless does not mean conclusion-free. PagerDuty's blameless postmortem guidance is explicit that the point is to understand how a mistake was made rather than who made it, and that postmortems should trigger after any major incident even if it was later discovered to be minor. Apply the same rule to a stop: run the review even if the trigger turned out to be a false alarm, because a false alarm is a finding about the stop condition itself.

The review answers six questions, in this order:

  1. What did the agent do, in sequence, based on the traces?
  2. Which control should have prevented it, and did that control exist, fire, or get bypassed?
  3. Was the stop condition itself well designed? Was the threshold right, was it measured correctly, and did it fire early enough?
  4. What was the blast radius, measured in affected records and remediation hours?
  5. What did the human oversight layer do, and how long did each human step take?
  6. What change would make a repeat impossible, and is that change cheaper than the value the pilot was creating?

Question three is the one teams skip, and it is the one that decides the retry. A stop condition that fires late is a design defect. A stop condition that fires on a measurement artifact is a monitoring defect. A stop condition that fires correctly on a real boundary breach is the system working, which is a very different input to the retry decision.

The retry decision rule, with a worked example

Retry, revise or retire is a decision, not a mood. Score the postmortem findings against a small set of gates and let the gates decide.

GateRetry passes ifRevise ifRetire if
Root cause understoodReproduced from archived tracesPlausible but not reproducedUnexplained after reasonable effort
Control that failedMissing and cheap to addExisted but misconfiguredCannot be built with current systems
Stop condition qualityFired correctly and earlyFired late or on noiseDid not fire at all
Blast radiusReversible, low record countReversible with manual effortIrreversible or externally visible
Value at stakeClearly exceeds the fix costMarginal but realBelow the cost of the controls
Oversight loadHumans kept up with the queueHumans fell behind at peakHumans cannot keep up by design

Worked example. A support-triage pilot runs eight weeks with a stop condition of "routing accuracy below 90 percent over a rolling 200 tickets" and a guardrail of "no autonomous sends to customers." In week five the accuracy condition fires at 86 percent. The team revokes credentials within 40 minutes, exports traces, and finds the agent had been routing tickets from a product line added in week four, for which no labeled examples existed in the evaluation set.

Score it. Root cause understood and reproduced: retry column. The failing control was the evaluation set's coverage, which is cheap to extend: retry column, with a condition. Stop condition quality: it fired correctly and within the rolling window, so the design held. Blast radius: about 60 misrouted tickets over two days, all reassignable, so reversible. Value: the pilot had cut first-response time on the original queues, which the business valued. Oversight load: agents kept up.

The decision is retry with three changes: extend the evaluation set to every product line before new lines are enabled, add a coverage check to the pre-run checklist, and narrow the agent's scope to lines with at least a stated minimum of labeled examples. Note what the retry does not change: the stop condition, which behaved exactly as intended. Teams that "fix" a working stop condition after an incident usually make the next one later.

The decision rule in one line: retry only when you can name the control that failed, show the fix, and show that the stop condition fired early enough that the blast radius stayed reversible.

If your pilot ran on a mix of model providers and the postmortem needs the same traces replayed across them, one API key covering text, image and embedding models simplifies the comparison; Quanta Inference is built for that. And if the review concludes the use case was never well chosen, the selection discipline matters more than the pilot: Unit8's AI project selection guide argues for choosing projects that are both feasible and valuable, and Agility at Scale's prioritization framework separates finding candidates from choosing which few to fund, which is exactly the distinction a failed pilot exposes.

What to change in the charter before the next run

Every stop should produce at least one charter change, or the organization has paid for an incident and bought nothing. Fold the postmortem findings back into the documents that govern the next pilot.

Add to the charter: a tested kill switch with a named owner, a log retention commitment that survives cleanup, a notification list with owners, and a postmortem date booked at launch. The Institute of AI PM's pilot program template makes the point that pilots produce ambiguity when exit criteria are defined after the fact, and a stop condition with no response plan is the same failure one level down. The AI Assembly Lines success-criteria framework makes the companion argument for guardrail metrics defined before launch; a stop condition is a guardrail that has already been breached, so it deserves the same pre-launch rigor.

Two smaller habits pay for themselves. Keep a stop log across all pilots, one line per stop, so you can see whether one class of condition keeps firing. And rehearse the kill switch on a schedule, because a control nobody has exercised is a hypothesis.

Where a pilot is being rebuilt with a broader scope than the first attempt, a 30-minute scoping conversation can save a second incident: Quanta Consulting runs a free discovery call to map goals to a tailored recommendation.

FAQ

FAQ

How fast do I need to revoke access after a stop condition fires?

As fast as the pre-authorized kill action allows, which is why it must be pre-authorized. The agent loop keeps executing while people convene, so identity revocation should be a single action one named person can take without approval. If your process requires a meeting to disable credentials, fix that before the next run.

Should I delete the agent's outputs before the postmortem?

No. Freeze downstream state, record the IDs of affected records, and stop processing, but do not delete. You need the outputs to measure blast radius and to reproduce the failure from archived traces. Deletion before archiving is the most common way teams lose the ability to decide whether to retry.

What if the stop condition fired but the agent had done nothing wrong?

Run the postmortem anyway and treat the false alarm as a finding about the stop condition. Either the threshold was miscalibrated, the metric was measured incorrectly, or the condition fired early enough that the harm stayed small. All three are useful, and the third is the system working as designed.

Who should facilitate the postmortem?

Someone who was not part of building or operating the pilot. The Pertama guide recommends an uninvolved facilitator, and the reason is practical. The builder is a witness, not a judge, and separating those roles makes it easier for everyone to be honest about what the controls did. The facilitator also owns the write-up, which keeps a single factual account of the stop.

Do small teams need this full checklist?

They need the sequence and the archive, not the ceremony. A two-person team can revoke credentials, copy logs to a separate bucket, send one brief and hold a 45-minute review. Skipping the archive is the one shortcut that reliably costs more than it saves, because without it the retry decision becomes a matter of opinion.

Sources

Sources

  1. AI Pilot Charter Template for Measurable Pilots | InitializeAI
  2. Autonomous AI Agents: How They Work
  3. What Is the AI Agent Loop? The Core Architecture Behind ...
  4. What is an Incident Postmortem?
  5. AI Incident Post-Mortem: Templates and Best Practices
  6. The AI Project Selection Guide - Unit8
  7. AI Use Case Identification and Prioritization - Agility at Scale
  8. How to Design an AI Pilot Program Template That Proves Value Fast
  9. How to Define AI Pilot Success Criteria Before You Start
About the author

About the author

Antonio Evans
Antonio Evans

Antonio Evans is the founder of Quanta Intelligence and a fractional CTO who builds HIPAA-ready AI systems for health and life-science companies. Before that he was technical co-founder of FriendsEAT for twenty years, CEO of Socialdraft, and a data engineer at IBM. Antonio lives with his dog Santino in Lisbon, Portugal.

All articles