harness: unify hive-ag3nt + hive-m1nd into one binary picking role from HIVE_ROLE (#598)

This commit is contained in:
damocles 2026-05-31 03:21:06 +02:00
commit dcaf1838e1
6 changed files with 717 additions and 840 deletions

View file

@ -28,9 +28,11 @@ tracing-subscriber.workspace = true
tempfile = "3"
[[bin]]
name = "hive-ag3nt"
path = "src/bin/hive-ag3nt.rs"
[[bin]]
name = "hive-m1nd"
path = "src/bin/hive-m1nd.rs"
# Unified harness binary (#598). Replaces the pre-#598 split into
# `hive-ag3nt` (sub-agent) + `hive-m1nd` (manager). Both code paths
# live here; the binary picks its role at startup from `HIVE_ROLE`
# (set by `harness-base.nix` from `hyperhive.role` — `"agent"` or
# `"manager"`). The privilege boundary is enforced server-side at
# the socket, so shipping both surfaces in one binary is safe.
name = "hive"
path = "src/bin/hive.rs"