Repository navigation
Releases
Releases · yeegz/hostmortem
Hostmortem v0.2.2
[0.2.2] - 2026-11-24
Fixed
- Improve contrast for report scores and ruled-out verdicts, and make
horizontally scrolling tables reachable by keyboard. - Use readable text and link colors when printing HTML reports.
Hostmortem v0.2.1
[0.2.1] - 2026-11-24
Changed
hm reportandhm explain --htmlhave a new look that matches the
project site: graphite panels in layers, each incident and hypothesis
on a raised, bevelled card, tables in recessed panels, verdicts as
keycap-style labels (phosphor green supported, steel possible,
struck-through ruled out), status lights in the coverage table, event
citations as chips, and a hatched panel for what could not be seen.
Printing switches to dark ink on white.- New mark and icon: one phosphor trace that spikes at the fault, breaks at
a dashed reboot gap and carries on (docs/brand/icon.svg). It appears in
the report header as inline SVG, so the strict CSP
(default-src 'none') is unchanged.
Hostmortem v0.2.0
[0.2.0] - 2026-11-24
The usability release: install with one command, record a first real
incident in about ten seconds, and share the result as one HTML file.
(eBPF, previously planned as v0.2, moves to v0.3.)
Added
install.sh, published with each release:
curl -fsSL https://github.com/yeegz/hostmortem/releases/latest/download/install.sh | sudo sh.
It picks the.debfor this architecture, checks it againstSHA256SUMS
and stops on a mismatch, installs it with apt, enableshmd, and adds the
user who ran sudo to thehostmortemgroup. Re-running it upgrades in
place.HM_VERSION,HM_DEB_DIR(offline) andHM_NO_STARTadjust it.hm drill: starts a harmless process namedhm-drill, whichhmdalways
watches, then SIGKILLs it. The running agent records the exit through its
normal path, so a fresh install produces a real incident to explain.hm report [-o FILE] [--incident ID] [--redact]: one self-contained HTML
file with the host's coverage, its boots and every incident's diagnosis.
No scripts, no network requests (strict CSP);--redactreplaces IP and MAC
addresses so the file can be sent to someone else (ADR-0011).- Packages for more systems: built on Ubuntu 22.04, so they install on
Ubuntu 22.04 and 24.04, Debian 12 and 13, and Raspberry Pi OS (bookworm,
arm64). 0.1.0 needed glibc 2.38. - CI tests the documented install path on every push: the
.debis
installed in clean Debian 12/13 and Ubuntu 22.04/24.04 containers, and on
fresh Ubuntu 22.04 and 24.04 VMs (amd64 and arm64) with systemd, where
scripts/install-smoke.shinstalls, runshm drillas a normal user,
rendershm report, upgrades from the published 0.1.0, and purges. - 7 new tests (92 in all), including a live-agent drill end-to-end test.
Fixed
- In 0.1.0 the systemd service never stayed up. The unit's seccomp
filter denied the read-onlyadjtimex()hmd calls to read clock-sync state,
so systemd killed hmd with SIGSYS at start and restarted it in a loop. Seen
on fresh Ubuntu 24.04 (systemd 255) and Debian 12 (systemd 252) VMs. The
0.1.0 package test ran hmd by hand as the service user, not through the
unit, so it missed this; the new fresh-VM test starts the real service. The
unit now allows that one call, dropsProtectClock=(setting the clock was
already impossible: no CAP_SYS_TIME in the bounding set), and makes any
other filtered call fail with EPERM instead of killing the recorder.
If you installed 0.1.0, upgrade: re-run the installer. - An upgrade left the old
hmdrunning until the next reboot;postinstnow
restarts a running agent. sudo hm explainopened the agent's store read-write as root; it now opens
it read-only, so it can never leave root-owned WAL files behind.hmsays how to get read access (group or sudo) when the store exists but
is unreadable, instead of "no store".- An incident now commits in the same transaction as the events that opened
it. Before, a crash between the batch commit and the incident write kept the
evidence but lost the incident (ADR-0010).
Packages
hostmortem_0.2.0_amd64.deb, hostmortem_0.2.0_arm64.deb, install.sh and
SHA256SUMS covering all three.
Hostmortem v0.1.0
[0.1.0] - 2026-11-14
Added
hmdagent: procfs/PSI sampler, rtnetlink collector (initial dump, ENOBUFS
resync),/dev/kmsgreader, active probes (getaddrinfo vs direct UDP DNS,
ICMP, TCP connect), process and cgroup-OOM watch.- Bounded two-lane MPSC queue; every drop is counted and recorded as a
pipeline.dropevent. - SQLite store in WAL mode with idempotent ingest, startup quick_check and
recovery, numbered migrations, retention, and backup via VACUUM INTO. - Deterministic detector (incidents survive reboots) and 12 playbooks with
for/against/missing evidence, a citation gate, and an explicit "unknown". hmCLI:status,timeline,incidents,explain(text, JSON,
self-contained HTML),doctor,export --redact,ingest(synthetic stores
only),backup.- Real-fault lab (11 scenarios in network namespaces, including a real cgroup
OOM kill, CPU saturation and a restart loop), nested-QEMU hard-reset
test, 13 synthetic scenario fixtures, 6 libFuzzer targets, sanitizer presets,
CI on amd64 and arm64. - Release workflow: on a
v*tag, CI builds, tests, packages and install-tests
amd64 and arm64.debs and publishes them with SHA-256 sums. - Debian package:
hostmortemsystem user, hardened systemd unit
(systemd-analyze securityexposure 2.2), conffile, and a purge that removes
the store.
Fixed (found by our own tests)
- Durability:
synchronous=NORMALlost a whole boot of evidence on a VM
hard reset; nowsynchronous=FULLwith batched, spaced commits (ADR-0009). - kmsg parser threw on a line ending at
NETDEV WATCHDOG, which would have
stopped kernel-log collection (found by libFuzzer). - An upstream DNS outage could look "local" (probes now paired by nearest time).
- A latency spike could be hidden by window medians.
- Boot ordinals skipped numbers (
INSERT OR IGNOREon AUTOINCREMENT). - The store could be created world-readable when hmd was started by hand
(hmd now sets umask 027). - CPU starvation only opened an incident at ≥ 80 % PSI in one sample; a real
saturation peaked at 77.7 %. Now 3 samples in a row at ≥ 50 %, matching the
playbook. - The process watch said nothing when the cgroup v2 tree was invisible; it now
reportsprocess.cgroupunavailable with a reason.
Packages
hostmortem_0.1.0_amd64.deb and hostmortem_0.1.0_arm64.deb for Ubuntu 24.04
and other distributions with glibc ≥ 2.38, plus SHA256SUMS. Install with
sudo apt install ./hostmortem_0.1.0_<arch>.deb, then
sudo systemctl enable --now hmd.
Known limits
- No eBPF yet (v0.2): retransmissions are host-wide; exit codes and signals
aren't visible. - Hard reset tested in a VM, not as a physical power cut; no Raspberry Pi or
x86 hardware measurements yet. - At 50,000 events/s offered, this arm64 VM drops events (all counted), because
every commit is fsynced. 20,000 events/s: 0 dropped.