mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 17:27:43 +01:00
revampit was renamed to evig on the box on 2026-09-02 (/opt/revampit -> /opt/evig,
revampit-app -> evig-app). The app repo caught up. This repo — which holds the
box register and the tooling that watches it — did not, and two of the stale
references were load-bearing:
- verify.sh ran `systemctl is-active revampit-app` for a unit that no longer
exists (`inactive`, exit 4), so the full-fleet sweep was permanently FAIL
and never once checked the app that replaced it. A sweep that always fails
is a sweep nobody reads.
- uptime-sweep.sh watched revampit.orangecat.ch, which is now a Caddy `redir`
block — a static 308 the sweep counts as up. That entry answers "is Caddy
alive", not "is the app alive", and would have reported up through an evig
outage. Pointed at evig.orangecat.ch, it probes /api/health for real.
The rest is register hygiene with no live consequence: the push-deploy hook
installed a command at /home/g/dev/revampit/scripts/selfhost-deploy-revampit.sh
(neither path exists any more), and three runner sandboxes listed a
/opt/revampit that is gone while omitting the /opt/evig that replaced it.
The automation, because a fix that only repairs today is worth 1x:
runtime-conformance-audit.sh now asks whether an enabled *-app.service still
has its guardrails — a memory cap and an OnFailure. A rename moves the unit
file; it does NOT move the .service.d/ drop-ins beside it. evig-app ran for two
days with MemoryMax=infinity on a shared box and no failure alert because its
drop-ins were still in the old unit's directory, and nothing noticed, because
these drop-ins are box state that no repo describes. Every other app unit on
the box carries both, which is what makes an exception a finding rather than a
preference. The audit already runs every 6h and alerts per finding, so this
class now pages instead of waiting to be stumbled over.
Evidence, on the real box:
# after restoring evig-app's drop-ins by hand
$ sudo bash runtime-conformance-audit.sh
checked 26 app dirs on node 24.20.0
findings=0 unreadable=0
# negative control: move the drop-ins away again
FINDING|evig|unit has no memory cap (MemoryMax=infinity) on a shared box
FINDING|evig|unit has no OnFailure= — it can die without alerting anyone
$ bash scripts/hetzner/verify.sh
OK evig systemd=active local=200 public=200
... 23 checks, exit 0
`npm run verify` green: tsc clean, eslint 0 errors / 3 warnings, 130/130 unit
test files, 150 home tests, 66 uptime-sweep tests, all ops suites.
Claude-Session: https://claude.ai/code/session_01LmyE2aLaXKB2V7WA3XQprm
Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>