Getting Your First Agent Live

Building Kill Switches and Oversight Into Your First Agent Architecture

Matt Doughty Matt Doughty CEO & Co-Founder, Prefactor
6 min read
Abstract illustration: Building Kill Switches and Oversight Into Your First Agent Architecture

What you will have after reading this

By the end of this article you will know how to design operational oversight into your first agent before it touches production data. That means knowing which control points to build, how to scope human approval gates without turning every action into a bottleneck, and what a minimal but auditable kill switch architecture actually looks like in code and in process.

If you are still deciding what your first agent should do, the guide to getting your first agent live covers scope, tooling, and the conditions that make a first deployment succeed. This article picks up at the point where the scope is set and the build is about to start.

The underlying pressure is real. A 2026 WRITER survey of 2,400 executives found that 97% of companies had deployed AI agents in the past year, yet only 11% had agents in actual production use. The gap between “deployed” and “in production” is largely a control problem: teams build the capability and then discover they lack the mechanisms to trust it at scale.


Why oversight is an architectural decision, not a policy one

An agent that can take actions, call APIs, write records, or send communications has a different risk profile from a chatbot that only reads and responds. The moment your agent can affect state outside itself, a failure is no longer a bad answer in a chat window. It is a corrupted record, a sent email, or a processed payment.

The teams that bridge the gap from experiment to production build control into the system the same way they build logging or error handling: as a first-class concern that shapes how the rest of the system is designed.

Purpose Legal’s kill switch implementation is a clear example of this. Their architecture treats the ability to halt or constrain an agent as an explicit feature, with defined triggers and documented rollback behaviour. The governance layer does not live in a runbook; it lives in the system.

This is becoming a baseline expectation. Enterprise meta-agent governance platforms now offer “governance monitoring and compliance enforcement across distributed AI agent systems” as a product category, which means organizations that do not build these mechanisms internally will increasingly be expected to procure them.

For a deeper look at how governance principles translate to architecture decisions, AI agent governance and runtime governance versus pre-deployment review are useful starting points.


The four control points every first agent needs

1. A halt mechanism at the orchestration layer

The halt mechanism is a flag or signal the orchestrator checks before executing each tool call. When the flag is set, the agent stops taking new actions and either returns to a waiting state or terminates gracefully. This is distinct from a process kill: you want the agent to finish its current atomic step cleanly, then stop, so you do not leave external systems in a partial state.

flowchart TD
    A[Agent receives task] --> B{Kill switch active?}
    B -- Yes --> C[Return to idle, log reason]
    B -- No --> D[Plan next action]
    D --> E{Confidence above threshold?}
    E -- No --> F[Request human approval]
    E -- Yes --> G[Execute tool call]
    F --> H{Approved?}
    H -- Yes --> G
    H -- No --> C
    G --> I[Log action and result]
    I --> J{Task complete?}
    J -- No --> B
    J -- Yes --> K[Return output]

2. Scoped human approval gates

Not every action needs a human in the loop, but some actions should never execute without one. The practical rule is to require approval when the action is irreversible and the cost of a mistake exceeds the cost of the delay. Sending a bulk email, writing to a production database, or initiating a payment all qualify. Querying a read-only API does not.

Stripe’s production compliance agent, deployed in June 2026, uses exactly this pattern: the agent provides supplementary information and recommendations to human reviewers at defined checkpoints rather than executing compliance decisions autonomously. The agent handles the retrieval and reasoning work; a human holds the final action authority for high-stakes decisions.

3. Structured action logging

Every tool call the agent makes should produce a log entry with four fields: the action taken, the inputs passed, the output received, and a timestamp. This is not primarily for debugging, though it helps there. It is the audit trail that lets you answer “what did the agent do and why” after the fact, which is a requirement for any regulated context and a practical necessity for diagnosing unexpected behaviour.

For teams thinking about observability beyond basic logging, agent observability covers the broader instrumentation picture.

4. A confidence threshold with a fallback path

Agents built on language models will occasionally produce low-confidence outputs, particularly in edge cases the training data did not cover well. Designing a fallback path, whether that is routing to a human, returning a structured “I cannot complete this” response, or escalating to a supervisor agent, prevents the agent from taking a confident-looking action based on a poorly grounded output.

flowchart TD
    A[Agent produces action plan] --> B{Confidence score above threshold?}
    B -- Yes --> C[Execute action]
    B -- No --> D{Is action reversible?}
    D -- Yes --> E[Execute with enhanced logging]
    D -- No --> F[Escalate to human reviewer]
    F --> G{Human decision}
    G -- Approve --> C
    G -- Reject --> H[Log rejection, return to idle]
    C --> I[Log outcome]
    E --> I

What the production evidence shows

The organizations with agents genuinely in production share a pattern: they constrained scope early and built controls alongside capabilities.

JPMorgan Chase operates across 450 production use cases daily and attributes 360,000 lawyer-hours saved annually to its agentic systems. That scale is only manageable because each use case has defined action boundaries and escalation paths. Similarly, Klarna reduced customer service resolution time from 11 minutes to under 2 minutes across 23 markets, but launched with explicit scope limits on what the agent could action without human review.

Neither outcome came from an unconstrained agent. Both came from agents with clear operating envelopes.

IDC and AWS research across 900 organisations found that only 3% of companies are successfully scaling agentic AI across multiple departments, despite 62% actively experimenting. The constraint is rarely capability. It is the absence of the control architecture that would make a wider rollout trustworthy.

For teams working in regulated industries, the financial services and healthcare industry guides cover the specific compliance requirements that shape what control mechanisms are mandatory rather than optional.

If you are evaluating whether to build oversight tooling yourself or use a platform layer, tools like Prefactor sit in the real-time evaluation category, catching errors as an agent makes them, and can provide a reference point for what a production oversight layer looks like before you commit to building your own.

For further reading on the architectural patterns that support these controls, agentic AI architecture and agentic AI design patterns cover the structural choices in more depth. Teams managing multiple agents should also read multi-agent systems before designing their escalation and coordination logic.


Where to start

Map the actions your agent will take, mark which ones are irreversible or high-stakes, and define the approval gate or halt condition for each before writing any tool integration code. If you are not sure which actions qualify or what your organisation’s risk tolerance is for autonomous execution, take the agent readiness assessment to get a clearer picture of where your gaps are before the build begins.

Matt Doughty Matt Doughty CEO & Co-Founder, Prefactor

Founder of Prefactor, writing on the operational reality of getting AI agents into production — evaluation, observability, governance, and the plumbing assistants never needed.

Frequently asked questions

What is an agent kill switch, exactly?

A kill switch is a control mechanism that lets you halt, pause, or constrain an agent's actions without redeploying code. It can be a feature flag, a circuit breaker tied to an error threshold, or a human approval gate before a high-stakes action executes. The key property is that it works at runtime, not at the next deployment window.

At what point in the build should I add oversight mechanisms?

Before you wire up any external tool calls. Once an agent can write to a database, send an email, or call a payment API, the cost of an uncontrolled failure rises sharply. Design the approval gates and logging hooks alongside the tool integrations, not after them.

Do kill switches slow agents down in production?

A feature-flag check adds microseconds. A synchronous human approval gate adds however long a human takes to respond, which is why you scope them narrowly to high-stakes or low-confidence actions rather than every step. Most production teams find that one or two targeted gates cover the risk surface without meaningfully affecting throughput.

How does this relate to AI governance frameworks?

Kill switches and oversight layers are the operational implementation of governance policy. A governance framework tells you what controls are required; the kill switch architecture is how those controls exist in a running system. If you are working toward ISO 42001 or a similar standard, documented runtime controls are a core audit requirement.

Stay ahead of the curve

No spam. Unsubscribe anytime. A resource by Prefactor.

Almost there — check your inbox to confirm your subscription.