Operations runbook — Operator manual | AI Agent Builder

Operations runbook

How to investigate an infrastructure alarm and verify recovery for the affected component.

5 min read · Updated November 30, 2026

Open the notification and note the environment, component and time. Select CloudWatch alarm to see the metric, threshold and state history. Use CloudWatch logs, when available, to inspect the same time window. These consoles require AWS access for the installation.

Open Operations from the notification or email to inspect the 15 minutes ending at the alert time. The first search includes all log levels for the component. To follow a request across services, select All log sources, enter the request or trace ID and search. Each row identifies its source. Extend the window to look further back, or choose Use current time to investigate a recurrence.

For an Infrastructure recovered notification, check the current metric and confirm that affected requests succeed and queued work has caught up. The OK state describes the metric at the time shown in the notification. If the condition persists or recurs, give the platform operator the alarm name, environment, time window and observed impact.

Admin

Global operators can find the installed Lambda timeout, database warning thresholds and backup recipients in Platform → Operations → Alert settings for this installation.

For an alarm ending in admin-api-duration, CloudWatch evaluates the maximum AWS/Lambda Duration in one 5-minute period. A single invocation reaching 80% of the configured timeout can trigger it. The threshold in milliseconds is timeout in seconds × 1000 × 0.8. For example, a 30 s timeout would give a 24,000 ms threshold. Open CloudWatch alarm to see the installed value.

  1. Find the ALARM transition before the OK event and check the graph's time zone. Compare the peak with the threshold and check for subsequent invocations. Missing data is treated as non-breaching.
  2. Find admin.lambda.request_timing and Lambda REPORT records in the Admin API logs for that interval. Compare cold and warm invocations. Review secretsMs, moduleImportMs and initializationMs for startup costs. Avoid adding Init Duration again to first-request totals. Correlate slow requests with database or provider timings. If the alarm has no trace source, continue with metrics and logs.
  3. Confirm subsequent invocations ran below the threshold and the affected operation succeeds. Escalate a recurrence or a condition lasting two evaluation windows with timestamps, the observed maximum and request IDs.
Other Admin API signalsTrigger
Lambda errors / throttlesSum of errors ≥5 or any throttle in one 5-minute period
HTTP 5xx / gateway latency≥5% 5xx with at least 20 requests, or p95 ≥10 s, in 2 of 3 five-minute periods

For a duration alarm, compare request timings with database and provider latency. If slow requests follow a deployment, compare cold and warm invocations. For throttling, check concurrent invocations. For errors, compare failed HTTP requests with Lambda errors in the same window.

Runtime

Availability alarms when the lower of the two healthy-target counts falls below 1 in 2 of 3 one-minute periods. Missing data counts as breaching. Other signals use 2 of 3 five-minute periods: target 5xx rate ≥5% with at least 20 requests, ECS CPU or memory ≥85%, or ≥3 widget stream failures requiring action. Check rollout events if the running task count fell.

Check service events, running tasks and the health of both chat and MCP targets. Compare CPU and memory with traffic and errors. After recovery, verify requests to both services.

Database

Over 2 of 3 five-minute periods, alarms evaluate ACU utilization ≥90%, CPU ≥85%, mean read or write latency ≥100 ms, maximum connections ≥80 or minimum free memory <128 MiB. Connection and memory thresholds are configurable. Compare the installed threshold with writer capacity and normal load.

Review writer availability, connections, free memory and capacity together. Inspect connection pool usage and slow queries when saturation persists.

Scheduler

Periods are five minutes. Heartbeat alarms when the count is below 1 for two consecutive periods, including missing data. Other triggers are maximum scheduling lag ≥300 s for two periods, ≥5 failures in one period or ≥3 runtime-unavailable events in each of two consecutive periods. For execution and control queues, check the consumer if a dead-letter queue contains a message for one minute or the oldest message reaches 300 s in two consecutive five-minute periods.

Identify the affected queue or scheduler. Check worker health, the age of the oldest message and processing receipts. Before replaying a failed job, verify which external actions already completed.

Delivery

PathSignal to investigate
Event outboxesOldest age ≥300 s in 2 of 3 five-minute periods. The conversation metric includes unpublished rows with a failed publication attempt
Operations workerHeartbeat below 1 for 3 five-minute periods, including missing data
Inbox bridgeOldest message ≥300 s for 2 five-minute periods, or ≥1 dead letter in one minute
Application delivery≥1 problem event, consumer error or dead letter, or oldest message ≥900 s in one period
OAuth refreshNo completed cycle for 3 five-minute periods, ≥1 failure or budget overrun in each of 2 periods, or ≥1 reauthorization request in one period

Request fresh consent when OAuth requires reauthorization. Backup email can still arrive during an inbox backlog.

Compare backup email delivery with the notification inbox. Check worker heartbeat, queue age and pending events. If messages reached a dead-letter queue, diagnose the delivery failure before redriving them. Use event timestamps to reconstruct delayed transitions.

Storage

In 2 of 3 five-minute periods, the alarm triggers for ≥5 server errors or a client-error rate ≥10% with at least 20 requests.

Compare storage request errors with application logs for the same period. For a rise in client errors, check for missing objects or permission changes. For server errors, check regional service health.