Skip to content

Operations: on-call, SLOs and runbooks 🟑 BETA

Use the runbooks in this chapter for the six recurring operational events, and close each one only after its verification table passes.

The admin operating loop

Where the operational view lives

The Analytics β†’ Operations panels read the same database tables the commands below query: ops_deploy_markers records a boot, ops_request_metrics records request classes and error classes, and llm_metrics records one row per turn with first-token timing. The panels are a view, not a separate source of truth.

Ownership

Area Owner
Deploy and rollback platform on-call
Data restore platform on-call with data owner approval
Secrets rotation security on-call
LLM provider platform on-call with provider contact
Tenant isolation security on-call

Severity and response times

Use the incident record to classify severity and response time; a number that is not in an approved record is not a promise. Record the decision with the evidence under /tmp.

Who can deploy at 2 a.m.

Only owners listed in the deployment approval record may push to the ALM remote and deploy. Pull requests and the mirrored Forgejo CI never publish documentation or binaries; the CI/CD workflow does.

Alert routing

Alerts route to the owning role named above. An alert without an owner is an open item in the incident record, not a silent notification.

Runbooks

Runbook Use when
Deploy and rollback A release must ship or be reverted
Restore backup PostgreSQL or OtterIO data is damaged
Rotate secrets A Vault secret or provider token must change
Disable a tenant One bot, tenant, app or channel must be isolated
LLM provider outage Completions fail or slow down
Disk, migration, queue Disk is full, a migration failed or a queue is stuck

When to use

Open the matching runbook, follow its steps in order and record the observed result in its verification table. Do not improvise a command that the runbook does not contain.

Before you start

  • Take a snapshot before any change: sudo incus snapshot create <container> pre-change-$(date +%Y%m%d%H%M%S).
  • Keep output under /tmp; never write a credential or internal address into the repository.
  • Check whether another change is in flight, and never restart botserver from a subagent session.

Verify

Check Command Pass condition
Health curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/health 200
Containers sudo incus list --format csv expected services up
Logs grep -E "ERROR|WARN" botserver.log \| tail -20 no new errors
Snapshot sudo incus snapshot list <container> pre-change snapshot exists

Roll back

πŸ”΄ Every runbook has its own rollback step. If two rollbacks happen without a diagnosis, escalate to the incident commander.

Postmortem template

Section Content
Impact Who was affected and for how long
Timeline (UTC) Detection, change, mitigation, recovery
Root cause The mechanism, not the symptom
Detection gap What should have alerted earlier
What worked / did not Evidence from the run
Action items Owner and issue for each item

Game day record

A rehearsal is recorded like an incident, with the runbook name, the commands run and the observed results. An untested runbook is not ready for 2 a.m.

Summary

Read the panel, open the runbook, snapshot, act, verify, roll back if needed, record.

See also