mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 13:35:12 +09:00
A VPS resized from 1 vCPU/1 GB to 4 vCPU/8 GB with a 60 GB volume attached, and the panel never mentioned any of it. Not a stale cache: a resize forces a power-off, so the process and its in-memory spec cache die and the next boot reads the truth. The gap is that nothing ever persisted the PREVIOUS numbers, so there was nothing to compare against — and the reboot that causes the change is what destroys the only copy of the baseline. Adds host_snapshots: capture specs + per-filesystem inventory at boot, diff against the last row, and emit host.specs_changed / host.storage_advisory on a real delta. Advisories fire on state transitions only, so an unfixed fstab entry does not nag on every restart. Repairs a divergence this exposed: resource_tier_service measured the first of /var/lib/serverkit,/var/lib/docker,/ while capacity_service hardcoded /. Both now use host_inventory_service.data_path(), and local headroom reports which mountpoint it measured. Notifications render in the existing bell UI, so no frontend change is needed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>