feat(#2569): add the harness-local todo store

This commit is contained in:
damocles 2026-07-20 22:19:23 +02:00
commit 993e0bbd4a
3 changed files with 302 additions and 0 deletions

View file

@ -40,6 +40,14 @@ pub fn harness_dir() -> PathBuf {
hive_sh4re::paths::harness_dir()
}
/// Harness-local todo store (loose-ends v2). A dedicated sqlite db under
/// the harness dir — the todos are mutable per-agent state the harness
/// owns, kept out of the append-only `hyperhive-events.sqlite` sink.
#[must_use]
pub fn todos_db() -> PathBuf {
harness_dir().join("hyperhive-todos.sqlite")
}
/// Per-turn config dir for the regenerated claude-{mcp-config,settings,
/// system-prompt} files the harness drops before each turn. Set by
/// systemd via `RuntimeDirectory = "hive-config"`: a per-service runtime