Ledger entries still installed on the host: leftovers from a previous
aborted run. The ledger only ever records harness installs, so purging
these is always safe: user-installed services are never in it.
Purge a test’s own services from the host, dependents before
dependencies (reverse install order). Failures are non-fatal: a
not-installed service is a no-op. Callers guarantee these services are
harness-owned (never user-installed), so purging is always safe.
Root of the host-test sandbox. Everything a host run reads or writes that
isn’t a quadlet symlink lives under here, on real disk: service data
(services/), the preferences sandbox (config/), the ledger, and run
reports (reports/). It’s ~/.local/share/services-test/ (honouring
XDG_DATA_HOME), a sibling of the real ~/.local/share/services/, so the
whole test footprint is one folder you can rm -rf. None if $HOME is
unset.