Repository navigation
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.