5.2 min
from the bad release to the Cloud Monitoring alert (restart_count, 60 s alignment); the copilot acknowledged in about a second
29 s
from the alert to a hypothesis with evidence and a rollback proposal (pods, the failing log, rollout history, events)
11 s
from the admin's approval to every replica ready again (rollback executed through the gated tool, verified by the copilot)
$0.014
what the copilot spent at the LLM door for the whole incident, postmortem included
0
fixes the copilot could apply on its own: it holds a role that may only request a restart or rollback; the gate waits for a person
| step | what happens | where |
| alert | Terraform-managed policy on kubernetes.io/container/restart_count in demo-apps → webhook_tokenauth channel → /hooks/gcm?token=…; deduplicated, with a cooldown for the alert's own re-notifications | Cloud Monitoring |
| investigate | as service-account-copilot: list_pods, pod_logs, rollout_history (new: image, command, change-cause per revision), recent_events; one tool per step | MCP gateway |
| hypothesis | Gemini 3.8 Flash through the door: summary, impact, hypothesis, evidence, confidence, and a proposal or null | LLM door |
| approval | rollback_deployment answers APPROVAL REQUIRED: request A-…; the copilot re-sends the same call every 8 s; an admin approves in the console | project 1 gate |
| fix + verify | the approved call replaces the pod template with the previous revision's; the copilot checks every replica is ready | MCP gateway |
| postmortem | blameless Markdown from the timeline, for a person to edit | LLM door |
| symptom | cause | fix |
| an empty incident appeared after the fix | Cloud Monitoring's closed notification went through the "open" path | a close only annotates the incident it belongs to |
| a duplicate incident minutes after recovery | restart metrics lag the fix; the policy re-notified | 30-minute cooldown per alert key |
| rollback would have kept the crash | a merge patch keeps fields the bad revision added | JSON patch replace /spec/template, like rollout undo |
<PERSON> in the postmortem | the door's guard masks names in answers | the prompt uses roles, not names |
| a resumed incident got 429 | the copilot is one tenant: 50k tokens per hour | ~12k tokens an incident; documented capacity |