fix: address argus+mara review on #1243 — stale docs, MANAGER_DEFAULT refs, ruth migration

This commit is contained in:
damocles 2026-06-04 11:39:01 +02:00 committed by mara
commit e58ead4329
7 changed files with 64 additions and 37 deletions

View file

@ -12,16 +12,14 @@
//! }
//! ```
//!
//! An absent entry (or an absent file) means "use the harness role
//! default" — agents get `messaging + meta + inbox`, the manager gets
//! all groups. `render_flake` in `meta.rs` reads this file and
//! injects `HIVE_TOOL_GROUPS` into each agent's systemd service env;
//! agents with no entry get no env var and the harness falls back.
//! An absent entry (or an absent file) means "use the harness default"
//! (`AGENT_DEFAULT`: `messaging + meta + inbox + execution`). `render_flake`
//! in `meta.rs` reads this file and injects `HIVE_TOOL_GROUPS` into each
//! agent's systemd service env; agents with no entry get no env var and the
//! harness falls back to `AGENT_DEFAULT`.
//!
//! Write path: `set_groups` is called from the dashboard action handler
//! that the operator uses to grant/revoke tool groups per agent.
//! The manager may also request group changes via an approval; hive-c0re
//! applies the change on approval, commits the file, and cascades a rebuild.
use std::collections::BTreeMap;
use std::path::PathBuf;