Status: accepted 2026-11-04 by the owner ("keeping a working copy of config makes a lot of sense"); built.
The daemon exits when its config is refused: at load (it does not parse, or
Validate refuses it), or when a mesh fails to start from it. Under systemd
that is a restart loop with every mesh down, including the one the machine is
reached over. Whoever edited the file then needs another way in to fix it.
On 2026-11-04 the owner edited k11's config to move Home Assistant from a service to a LAN host (ADR-068). The daemon did not come back, k11 left the home mesh, and it was reached only over the relay, from the office: it waited until he was home. "We need to figure out a way to prevent bad config killing shrooms."
Services were made non-fatal for the same reason earlier (Validate says
nothing optional may stand between a machine and its own mesh), and LAN hosts
the same day (ADR-068's note). That covers the optional parts. This covers
the rest: any edit at all.
<config>.last-good, beside it, with the config's
permissions (it holds the mesh keys), written atomically, only when it
changed.<config>.refused: its sha256, the reason) and exits as before; systemd's
restart seconds later starts on the last good copy. The record only applies
to that exact file: any edit since and it is tried again.shrooms status says so first, above everything that looks healthy:
which config runs, which was refused and why. The status JSON carries
config_refused and config_running.