Skip to content

Commit 0f0dddd

Browse files
Super Userclaude
authored andcommitted
mios-daemon: point KANBAN_DB at the real hermes data path
The default was /var/lib/mios/hermes/kanban.db -- but the hermes CLI writes to its HERMES_HOME (.hermes subdir) per its own config: $ hermes config show Config: /var/lib/mios/hermes/.hermes/config.yaml Result: every kanban task created via landed in /var/lib/mios/hermes/.hermes/kanban.db, the daemon never saw any of them, and the SurrealDB kanban_shadow table stayed empty. The parent path is from a pre-.hermes-subdir layout that is no longer written by current Hermes. E2E verified after fix: hermes kanban create -> SQLite (.hermes/kanban.db) -> mios-daemon._collect_kanban_state -> SurrealDB kanban_shadow row (live with t_d1904abb during verification). Operator can override via MIOS_HERMES_KANBAN_DB env if a different deployment lays out hermes home elsewhere. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 93f8ed3 commit 0f0dddd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

usr/libexec/mios/mios-daemon

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,13 @@ def launch_verifier_loop() -> None:
766766
TASK_COLLECT_TICK_S = float(os.environ.get(
767767
"MIOS_DAEMON_TASK_COLLECT_TICK_S", "300")) # 5 min
768768
KANBAN_DB = Path(os.environ.get(
769-
"MIOS_HERMES_KANBAN_DB", "/var/lib/mios/hermes/kanban.db"))
769+
# The Hermes CLI writes kanban.db under HERMES_HOME (operator-
770+
# confirmed 2026-05-18: hermes config show -> Config:
771+
# /var/lib/mios/hermes/.hermes/config.yaml). The stale path
772+
# /var/lib/mios/hermes/kanban.db is from a pre-.hermes-subdir
773+
# layout and is no longer written -- but kept readable to
774+
# support legacy deployments.
775+
"MIOS_HERMES_KANBAN_DB", "/var/lib/mios/hermes/.hermes/kanban.db"))
770776
HERMES_SESSIONS_DIR_DAEMON = Path(os.environ.get(
771777
"MIOS_HERMES_SESSIONS_DIR", "/var/lib/mios/hermes/sessions"))
772778
SCRATCH_DIRS = [

0 commit comments

Comments
 (0)