From 6206fdd85d583fbeb6b8f44b61f484d0e355ab05 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 05:38:22 +0200 Subject: [PATCH] mind-body launch: units are named by instance and turn only (ruling mind-unit-names) mind-persona@.service and mind-self@.service; the run label no longer enters the unit name, and only the instance is validated. Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/launch.rs | 78 ++++++++++++++++++++++------------ 1 file changed, 50 insertions(+), 28 deletions(-) diff --git a/crates/mind-body/src/launch.rs b/crates/mind-body/src/launch.rs index cdd312a..9074fd0 100644 --- a/crates/mind-body/src/launch.rs +++ b/crates/mind-body/src/launch.rs @@ -33,6 +33,7 @@ pub const START_GRACE_S: i64 = 120; /// Starts the unit that carries a run, and says whether it is still running. /// Nothing here stops a unit. pub trait Launcher { + // The label names the run asked about; SystemdLauncher names its unit by instance and turn alone (ruling mind-unit-names). fn start(&self, instance: &Slug, turn: RunTurn, label: &Label) -> Result<()>; fn alive(&self, instance: &Slug, turn: RunTurn, label: &Label) -> bool; } @@ -71,8 +72,9 @@ impl Systemctl for RealSystemctl { } /// Her units under systemd, templated by instance: -/// `mind-persona@: