move hive-sh4re's harness_dir() into hive-agent-sock, drop the dev-fallback derivation

This commit is contained in:
damocles 2026-08-09 18:59:46 +02:00 committed by mara
commit 7ba492b965
6 changed files with 49 additions and 42 deletions

View file

@ -31,13 +31,13 @@ pub fn state_dir() -> PathBuf {
/// (`hyperhive-events.sqlite`, `hyperhive-turn-stats.sqlite`,
/// `hyperhive-model`) so they do not appear inside the agent-visible
/// `/agents/{label}/state` tree. Delegates to the shared canonical
/// resolver in `hive_sh4re::paths` so the harness + every out-of-process
/// MCP daemon resolve this identically (reads `HYPERHIVE_HARNESS_DIR`,
/// then a `harness/` sibling of `HYPERHIVE_STATE_DIR`, then
/// `/agents/{HIVE_LABEL}/harness`).
/// resolver in `hive_agent_sock::paths` so the harness + every
/// out-of-process MCP daemon resolve this identically (reads
/// `HYPERHIVE_HARNESS_DIR`, always injected by the meta flake — panics
/// if it's unset rather than silently deriving a fallback path).
#[must_use]
pub fn harness_dir() -> PathBuf {
hive_sh4re::paths::harness_dir()
hive_agent_sock::paths::harness_dir()
}
/// Consolidated harness-local state db — todos + reminders + the questions