diff --git a/hive-c0re/src/lifecycle.rs b/hive-c0re/src/lifecycle.rs index 69178473..49821d2b 100644 --- a/hive-c0re/src/lifecycle.rs +++ b/hive-c0re/src/lifecycle.rs @@ -11,10 +11,10 @@ use tokio::process::Command; pub const AGENT_PREFIX: &str = "h-"; pub const MAX_AGENT_NAME: usize = 9; /// Container name of the manager. Lives in the same path scheme as sub-agents -/// (`/var/lib/hyperhive/agents/hm1nd/`, `/var/lib/hyperhive/applied/hm1nd/`), +/// (`/var/lib/hyperhive/agents/root/`, `/var/lib/hyperhive/applied/root/`), /// but its container has no `h-` prefix and extends a different -/// nixosConfiguration (`manager`, not `agent-base`). -pub const MANAGER_NAME: &str = "hm1nd"; +/// nixosConfiguration (`root`, not `agent-base`). +pub const MANAGER_NAME: &str = "root"; /// Mount point of the per-agent runtime directory inside the container. pub const CONTAINER_RUNTIME_MOUNT: &str = "/run/hive"; @@ -23,7 +23,7 @@ pub const CONTAINER_RUNTIME_MOUNT: &str = "/run/hive"; /// container. The harness service runs as a non-root unix user /// whose home is `/home//`, so the mount path varies per /// agent — `container_claude_mount(name)` returns -/// `/home//.claude` for sub-agents and `/home/hm1nd/.claude` +/// `/home//.claude` for sub-agents and `/home/root/.claude` /// for the manager. `claude` inside the container reads /// `$HOME/.claude` and the service environment sets `HOME` to the /// same path, so the OAuth session survives container restarts. @@ -1035,7 +1035,7 @@ async fn systemd_daemon_reload() -> Result<()> { /// `systemd-nspawn` command. /// Where in the container's filesystem the manager sees its agents tree. /// Matches the `/agents` path that pre-Phase-8 hosts declared via -/// `containers.hm1nd.bindMounts."/agents"`. +/// `containers.root.bindMounts."/agents"`. pub const CONTAINER_MANAGER_AGENTS_MOUNT: &str = "/agents"; /// Where the manager sees the applied trees of every agent, read-only. @@ -1252,7 +1252,7 @@ async fn run(args: &[&str]) -> Result<()> { // Convention: `nixos-container ...` — the // verb is `args[0]` (kind) and the container is `args[1]` - // (h- | hm1nd | hive-matrix | ...) for every long-running + // (h- | root | hive-matrix | ...) for every long-running // case we care about. Strip the `h-` prefix for sub-agents so the // build_logs row's `agent` column matches the agent's bare name // (`alice` rather than `h-alice`) — that's what the dashboard