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 · healthy rev n + start command needs PAYMENT_API_URL (unset)
Cloud Monitoring
policy: restart_count Δ > 1 / min in demo-apps (Terraform) webhook_tokenauth → /hooks/gcm
Cloudflare Tunnel incident.jainosoft.com · token on the hook Keycloak sign-in on the UI
drills/bad-deploy.sh ships "release 2026.12.1" with a CI change-cause annotation
copilot · service-account-copilot
1 · incident dedup + cooldown
2 · investigate read tools, one per step
3 · hypothesis evidence · confidence
4 · propose fix rollback / restart only
5 · wait for a human same call every 8 s
6 · verify every replica ready
7 · postmortem blameless, from the timeline
timeline Postgres + 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_events rollout_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 → consumed only an mcp-admin can approve; bound to the exact call
the on-call admin (alice)
reads the hypothesis + evidence, approves in the console Keycloak · 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)
· · · · ·