rename(162): MANAGER_NAME hm1nd -> root

This commit is contained in:
damocles 2026-06-01 16:59:26 +02:00 committed by mara
commit 37b5335c27

View file

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