- thor/engine.py: one incident per root cause. New causes held one cycle, symptoms attached
to the highest cause they relate to (same host, or cluster-wide effects for causes that
can stall the cluster), priority only rises, rate-limited refresh, cleared after 15 min.
- thor/checks/memory.py: node_vmstat_oom_kill + kernel oom-kill lines; global vs cgroup,
victim and CT, trigger cpuset; P3 / P2 (loop) / P1 (Ceph or other hosts stalling).
- thor/checks/symptoms.py: scrape timeouts, pvestatd timeouts, Ceph alerts switching on.
- thor/outbox.py: live actions to Tinker with backoff; shadow actions are only recorded.
- Migration 2: incidents, actions, observations.
- PromQL/LogQL regex escaping fixed (found by recording against the real Prometheus).
- tests/replay.py + tests/fixtures/t1.json: 2026-11-23 replayed through the real monitor:
exactly one ticket (P1 from the start: pvestatd timed out on three other hosts with the
first kill), 15 symptoms as Also seen, cleared 06:18, Loki's 06:00 outage delays only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- .gitea/workflows/ci.yml: flake8 + dash check, pytest (90% coverage floor), MariaDB
integration tests, bandit, pip-audit, gitleaks, actionlint, shellcheck, zizmor, semgrep;
main deploys through a signed webhook and waits for /health to report the commit.
- deploy/thor_deploy.sh: deploys an exact sha, installs units and nginx site when changed,
rolls back unless /health reports the sha with a working database. Sandbox-tested.
- deploy/bootstrap.sh: idempotent first install on CT 173.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Work in progress for thor#1 phase 1 (PR 1 of 6). Not yet pushed: CI workflow and deploy files still to add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>