- thor/web/api.py: /api/incidents/covering (thor#1 pre-check), /api/incidents, /api/incident/<key>,
machine keys by SHA-256 with optional source CIDRs, like Gandalf's (gandalf#68); 503 when the
database is away so callers fail open. covered=true only when there is a ticket to comment on;
shadow incidents are listed but never cover.
- thor/web/ui.py + templates: Needs attention (incidents, Thor itself, timeline-only, known
conditions seen again, unexplained symptoms), incident page (what happened, also seen, what
Thor sent or would have sent, ticket text), known conditions. Read-only; CSP with nonces;
Authelia identity shown only when it comes from NPM. Mobile nav drawer.
- web_template v1.2 (8286bb2) vendored and checked against upstream in CI.
- docs/contract.md: the /covering contract for the Gandalf and hwmonDaemon sessions.
- scripts/ui_demo.py + scripts/screenshots.py, and a CI job that renders every page with replay
data (desktop, mobile, dark, light) and uploads the screenshots.
- Fix: systemd-escaped cpusets (system-ceph\x2dosd.slice) were not recognised as Ceph; four of
the 11-23 kills came from the OSD slice. Found while reviewing the screenshots.
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>