From d074b25fac09a64f91a2e2126acfe6d74c53f948 Mon Sep 17 00:00:00 2001 From: lexis Date: Fri, 29 May 2026 22:08:14 +0200 Subject: [PATCH] =?UTF-8?q?docs(agent-hierarchy):=20mark=20section=20D=20d?= =?UTF-8?q?one=20=E2=80=94=20legacy=20/state=20mount=20dropped=20(#604)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/agent-hierarchy.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/agent-hierarchy.md b/docs/agent-hierarchy.md index 665f2d5e..36ae505c 100644 --- a/docs/agent-hierarchy.md +++ b/docs/agent-hierarchy.md @@ -145,14 +145,16 @@ Tree-shape version: - `request_update_meta_inputs` is the only path that actually writes `flake.lock`, gated by the cap; everyone else stays RO. -### D — drop legacy `/state` for manager +### D — drop legacy `/state` for manager ✓ done (#604) -`lifecycle.rs::notes_mount` currently ternary's `/state` for the -manager and `/agents//state` for everyone else (because the -manager pre-dates the per-agent state-dir layout). Milestone bullet: -unify on `/agents//state` for everyone. One-time `mv` of -`/var/lib/hyperhive/manager/state` → `/var/lib/hyperhive/agents/manager/state` -in `migrate.rs` (idempotent, marker-guarded). +`lifecycle.rs` no longer binds `/state` for the manager. +`HYPERHIVE_STATE_DIR` is now injected uniformly via +`systemd.globalEnvironment` in `meta.rs` for every container +(manager included), so all token/state paths resolve through +`$HYPERHIVE_STATE_DIR`. The harness-base shell scripts +(tea-login, forge-avatar-sync, matrix-avatar-sync) simplified +from glob+for loops to a direct `$HYPERHIVE_STATE_DIR/` +read. ### E — prompt + tools