rename: role badge stays 'manager'; unify harness unit name to hive-ag3nt

This commit is contained in:
damocles 2026-06-01 17:17:04 +02:00 committed by mara
commit e7e0675d22
6 changed files with 15 additions and 18 deletions

View file

@ -110,8 +110,8 @@ in
example = "manager";
description = ''
Whether this container runs as a sub-agent (`"agent"`, the
default invokes `hive-ag3nt serve`) or as the swarm's
manager (`"manager"` invokes `hive-root serve` and
default) or as the swarm's manager (`"manager"` both invoke
`hive serve`;
defaults the forge notification surface to mentions-only).
meta.rs flips this to `"manager"` for the manager container
@ -690,7 +690,7 @@ in
}
];
# Per-agent unix user. Runs the hive-ag3nt / hive-root harness +
# Per-agent unix user. Runs the hive harness +
# co-process daemons under a non-root principal. UID auto-assigned by
# NixOS. The container activation script (hive-agent-user-migrate)
# chowns the bind-mounted state dir — including credential files
@ -1277,14 +1277,12 @@ in
];
};
# Role-driven harness systemd unit: one binary, two unit names
# for log/ExecStartPre stability. Unit shape (PATH wrapper-dir
# trick, env vars, RuntimeDirectory, User=, standalone-eval
# fallbacks): docs/agent-hierarchy.md::Harness systemd unit
# shape (per-role). PATH /bin auto-append behaviour:
# docs/gotchas.md::systemd.services.*.path appends /bin to
# every entry.
systemd.services.${if config.hyperhive.role == "manager" then "hive-root" else "hive-ag3nt"} =
# Harness systemd unit. Unit shape (PATH wrapper-dir trick, env vars,
# RuntimeDirectory, User=, standalone-eval fallbacks):
# docs/agent-hierarchy.md::Harness systemd unit shape. PATH /bin
# auto-append behaviour: docs/gotchas.md::systemd.services.*.path
# appends /bin to every entry.
systemd.services.hive-ag3nt =
let
isManager = config.hyperhive.role == "manager";
binary = "hive";

View file

@ -2,7 +2,7 @@
{
imports = [ ./harness-base.nix ];
# Manager role: the role-driven `systemd.services.hive-root` plus
# Manager role: the `systemd.services.hive-ag3nt` unit plus
# the manager-only forge defaults (`keepSubscriptions = false`,
# `skipNotifyReasons = [ "subscribed" "participating" ]`) live in
# `harness-base.nix` under `lib.mkIf (config.hyperhive.role ==