loopd: [heartbeat] table and summarise name check

Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
2026-10-03 14:00:57 -07:00
co-authored by ornith-1.5-35b-a3b
parent ab4fb65ccc
commit 6b7912399c
6 changed files with 162 additions and 1 deletions
+10
View File
@@ -58,6 +58,11 @@ fn run_selftest(path: &Path) -> ExitCode {
}
};
if let Err(e) = cfg.check_summarise(&loopd::tools::Registry::m5c()) {
eprintln!("loopd: {e}");
return ExitCode::from(1);
}
let client = Client::new(cfg);
match run_selftest_check(&client) {
Ok(()) => ExitCode::SUCCESS,
@@ -74,6 +79,11 @@ fn run_serve(path: &Path) -> ExitCode {
}
};
if let Err(e) = cfg.check_summarise(&loopd::tools::Registry::m5c()) {
eprintln!("loopd: {e}");
return ExitCode::from(1);
}
// One loopd per home (M5b spec, section 9a). The lock comes before the socket is touched and
// before the self-test, so a second copy neither takes the socket of the one that runs nor
// sends its slot a prompt. Held until the process ends.