Incident copilot · from an alert to a verified fix and a postmortem, with a human on the fix

Cloud Monitoring alert → webhook → the copilot (its own Keycloak identity) investigates through the MCP gateway and the LLM door → proposes a rollback → project 1's approval gate holds it until an admin approves → executes, verifies, drafts the postmortem · live timeline in Postgres, streamed to a React UI
THE SERVICE · namespace demo-apps THE COPILOT · incident.jainosoft.com · namespace incident THE PLATFORM · projects 1 and 2 · people shop-web (Deployment) rev n-1 nginx · healthyrev n + start command needs PAYMENT_API_URL (unset) Cloud Monitoring policy: restart_count Δ > 1 / minin demo-apps (Terraform)webhook_tokenauth → /hooks/gcm Cloudflare Tunnelincident.jainosoft.com · token on the hookKeycloak sign-in on the UI drills/bad-deploy.shships "release 2026.12.1" with aCI change-cause annotation copilot · service-account-copilot 1 · incidentdedup + cooldown 2 · investigateread tools, one per step 3 · hypothesisevidence · confidence 4 · propose fixrollback / restart only 5 · wait for a humansame call every 8 s 6 · verifyevery replica ready 7 · postmortemblameless, from the timeline timelinePostgres + NOTIFY → SSE React UI: list, status stepper, clocks (to acknowledge,to mitigate), live timeline, postmortem · restart-safe:open incidents resume from Postgres no write access of its own · every fix approved MCP gateway · project 1 CEL: mcp-user → read tools;mcp-remediator → restart / rollback only list_pods · pod_logs · recent_eventsrollout_history (new)rollback_deployment (new, @guarded)audit ledger for every call LLM door · project 2 Gemini 3.8 Flash (pinned) · guards ·50k tokens/hour per identity · ledger~12k tokens, $0.015 an incident approval gate · project 1 APPROVAL REQUIRED: request A-…console.jainosoft.com/approvals/A-… pending → approved → consumedonly an mcp-admin can approve;bound to the exact call the on-call admin (alice) reads the hypothesis + evidence,approves in the consoleKeycloak · mcp-admin what the copilot cannot do run migrations, scale, stop instances (CEL denies) · act outside demo-apps (the server refuses) skip the approval (bound to caller + tool + arguments) · overspend (the door answers 429) least privilege for an agent: it can ask, a person decides MEASURED (recorded run) ·····
bhavishyajain545 · gcp-ai-incident-copilot