INSIGHTS / OPERATING MODEL

How to run AI agents in production safely

By SkilledHat · Updated 25 November 2026

We operate the boundary between job success and real success

We restored missing workspaces, rebound a page that broke its application manifest, and rolled back a release whose acceptance check timed out. These three incidents taught us the same lesson: a successful job is not proof of a safe outcome.

Only the release authority can cross the write boundary

Release sequence: approvals, denial, rollback and timeout lookupAuthority is outside the runtimeRuntimeAuthorityAdapterVerifierHumanHappy path 1–51. Candidate + digest2. Approve exact scope3. Bound release token4. Publish; verify state5. Pass: retain evidenceDenial 6–76. Changed payload7. Deny; no target callRecovery 8–108. Fail: stop + rollback9. Verify prior state10. Hold until resumeAmbiguous 11–1211. Timeout: lookup ID12. Unknown: hold, no retryBlue solid: success · Navy dashed: exception
Release sequence: approvals, denial, rollback and timeout lookupAuthority is outside the runtime1 Runtime · 2 Authority · 3 Adapter4 Live verifier · 5 Human12345Happy path 1–51. Candidate + digest2. Approve exact scope3. Bound release token4. Publish; verify state5. Pass: retain evidenceDenial 6–76. Changed payload7. Deny; no target callRecovery 8–108. Fail: stop + rollback9. Verify prior state10. Hold until resumeAmbiguous 11–1211. Timeout: lookup ID12. Unknown: hold, no retryBlue solid: success · Navy dashed: exception
Reference design: role lanes, explicit denial, rollback and ambiguous-timeout lookup. Reference branches separate successful release, denial, recovery and unknown outcomes.

Turn the lifecycle into a handover contract

Name a service owner, release operator, independent approver and recovery owner. One engineer can prepare and observe a routine reversible change, but privileged authorization must remain a separate decision. The preparer must not approve their own elevated permission. Document who covers each role when the primary is away.

Decide what happens when an approver does not respond. The safe state is a held candidate, not a retry that broadens authority. Read-only investigation can continue within scope. A blocked privileged operation stays blocked. Useful autonomy includes knowing which work may proceed without crossing the gate.

Release the artifact you tested, then check the world

The release record ties together the original requirement, full diff, independent review, build result, artifact digest and rollback reference. Include shared templates even when only one page appears to change. Testing rendered output prevents a source fix from masking a broken generated artifact.

Use a controlled preflight. Confirm the target exists, required resources are ready, permissions are scoped and the recovery artifact is available. A failed preflight is not permission to bypass the release path. Diagnose the cause, prepare a corrected candidate and repeat the affected checks.

Execute the exact candidate that passed preflight. Do not rebuild it during publishing or substitute files after approval. Record the transaction outcome; then check the served response or resulting state against the expected change. Command success and customer-visible success are separate observations.

Failed verification stops further writes. Compare expected and observed state, determine whether rollback is safe, and use the recorded known-good artifact. For irreversible effects, file rollback cannot erase the consequence. Contain the agent and require a human recovery decision.

Three incidents from our multi-agent operation

Workspace disappearance. What happened: automatic cleanup removed active workspaces; we restored them from backup.

Why: a default seven-day age policy treated active workspaces as disposable.

What we run now: a health check every 15 minutes alerts if pruning returns, an agent instruction file is missing or workspace file count halves; it automatically resets the pruning setting.

What we would add: compare the active-workspace inventory with the deletion plan before cleanup.

Manifest mismatch. What happened: a page change triggered a bootstrap error; we rebound it to the pinned release in about six minutes and the API returned 200.

Why: the separately published page no longer matched the application's pinned manifest.

What we run now: coupled rebinding is enforced for those web files; the alert names the bootstrap error.

What we would add: a pre-publication compatibility check across the page and application binding.

Acceptance timeout. What happened: acceptance timed out after publication; rollback restored the prior artifact and its digest.

Why: the underlying cause of the timeout is unknown.

What we run now: failed acceptance triggers rollback and the failed proposal stays held.

What we would add: verify recovered expected content as well as its digest before resuming.

Operate on outcomes, denial signals and resource ceilings

Monitor whether the agent achieved the approved outcome, not merely whether its process stayed alive. Combine availability, correct resulting state, queue age and age of the last verified success. Separate expected policy denials from unexpected authorization failures so a healthy boundary does not resemble a broken service.

Set limits for actions, runtime, concurrency, retries and cost. Reserve budget before execution where possible; hold work when the envelope is exhausted. A retry loop must not purchase more capacity. New spend and exceptions require a human decision with proposed amount and reason in a private record.

Backups are recovery inputs, not recovery evidence

Before granting write access, identify what must be preserved: source, deployed artifacts, configuration and state the action can change. Name the backup owner, storage boundary, retention policy and recovery point. A backup the recovery owner cannot access during an incident is not an operational fallback.

For stateful actions, document where rollback becomes compensation. Replacing an application version does not retract an external message or reverse a transaction. Keep those actions proposal-only until a human accepts the consequence and the recovery owner has a bounded response.

Practice three failures before expanding autonomy

Deny test: submit an out-of-scope resource, changed approved payload and privileged self-authorization request. Pass requires no target call and a sanitized denial receipt for each attempt. Capture the enforcement result, not just generated text.

Rollback test: release a reversible candidate in a controlled environment, force the expected-state check to fail, stop writes and recover the known-good version. Pass requires recovered expected state and no further queued writes. Retain failed and recovered observations together.

Incident test: lose a dependency after the target may have accepted an action. Pause work, inspect the operation identifier, establish actual state and choose recovery or escalation. Pass requires no duplicate effect, a named incident owner and an explicit resume decision. Use synthetic records and isolated targets.

An unavailable test leaves a visible gap. Reduce autonomy or hold launch until the owner accepts a narrower boundary; never label an unexecuted test “not applicable” just to clear a checklist.

What we would do first

Choose one useful reversible action and map its complete path from request to observed state. Remove unused permissions before tuning prompts. Name the operator and backup, then write the exact expected outcome and the condition that stops further writes.

Run the deny, rollback and incident drills with synthetic input. Inspect queued work after stopping the runtime. Continuing queued writes mean the stop mechanism is incomplete. If verification cannot distinguish old from new state, improve the observable contract before increasing autonomy.

What our operating evidence supports

Our operation separates preparation, independent full-diff review, controlled release and live outcome checks. We retain change receipts and investigate failed preflights instead of calling a blocked command a completed change. Human decisions remain required for new paid spend, customer-data access and major launches.

One evidence limit: the proposed drills are not executed results, and we have not established a general restore-test result.

Governance review versus production operation

DecisionGovernance reviewProduction operation
AuthorityApprove bounded actionReject changed or expired payload
EvidenceReview candidate and scopeCheck resulting state and receipts
FailureDefine stop and recovery ownerStop queued writes, restore, verify, authorize resume

Release receipt schema example

Copyable schema example with synthetic identifiers; not a real execution receipt.

{
  "schema": "example.release.v1",
  "operation_id": "op-example-01",
  "candidate": "candidate-A",
  "digest": "sha256:example-A",
  "target": "help-page",
  "decision": "approval-example",
  "status": "published",
  "live_check": "pending",
  "rollback_ref": "prior-A"
}

Denial receipt schema example

Copyable schema example with synthetic identifiers; not a real execution receipt.

{
  "schema": "example.denial.v1",
  "operation_id": "op-example-02",
  "candidate": "candidate-B",
  "approved_digest": "sha256:example-A",
  "received_digest": "sha256:example-B",
  "target": "help-page",
  "status": "denied",
  "reason": "payload_changed",
  "target_called": false
}

Timeout: look up before retrying

Transport timeout leaves the effect unknown. Query the original operation ID and inspect target state. This pseudocode requires an adapter with durable operation lookup; without one, hold for an operator.

result = lookup(operation_id)  # original ID, no new write
if result.state == "succeeded": verify_target(result)
elif result.state == "running": hold_and_observe()
elif result.state == "not_started":
    retry_same_key_only_if_authorized()
else: hold_for_operator()  # unknown or failed

Filled runbook excerpt

Synthetic staging example, not an execution record.

Candidate
candidate-A, sha256:example-A; help-page in isolated staging.
Owner
Delivery operator; duty engineer covers recovery.
Authority
Release lead; approval-example allows one page write in a ten-minute window.
Expected state
The heading reads Approved help; observation is outstanding.
Stop and recovery
Close the write gate, cancel queued jobs and restore prior-A.
Decision
HOLD until the live check and restore drill pass.

Take the readiness runbook into your release review

Record owners, evidence, limits and the stop/resume decision. Unfilled fields remain open conditions.

Download the production readiness runbook

Download editable runbook source

Related decisions

Discuss enterprise AI delivery with our team.

Companion reading, pending approval and publication: AI agent governance checklist. This relationship is staged for release after both articles are approved; the checklist is not live.

Sources

About SkilledHat

We are SkilledHat engineers. We assess the boundary, own the implementation, prove the outcome and scale what works.