The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(kanban): state gc retention semantics for 0 and negative values
kshitijk4poor4937999dd2b6
diff --git a/hermes_cli/kanban_db.py b/hermes_cli/kanban_db.pyindex c0cbb959d4b..e646fd812e5 100644--- a/hermes_cli/kanban_db.py+++ b/hermes_cli/kanban_db.py@@ -4277,7 +4277,11 @@ _NEGATIVE_RETENTION_MSG = "older_than_seconds must be >= 0, got {!r}: a negativedef gc_events(conn: sqlite3.Connection, *, older_than_seconds: int = 30 * 24 * 3600) -> int:- """Prune old done/archived events, retaining decomposition identity until task deletion."""+ """Prune old done/archived events, retaining decomposition identity until task deletion.++ ``older_than_seconds=0`` means everything older than now; the CLI maps+ ``--event-retention-days 0`` to "disabled" before calling this.+ """older_than_seconds = int(older_than_seconds)if older_than_seconds < 0:raise ValueError(_NEGATIVE_RETENTION_MSG.format(older_than_seconds))@@ -4291,7 +4295,11 @@ def gc_events(conn: sqlite3.Connection, *, older_than_seconds: int = 30 * 24 * 3def gc_worker_logs(*, older_than_seconds: int = 30 * 24 * 3600, board: Optional[str] = None) -> int:- """Delete worker log files older than the cutoff on one board; returns the count."""+ """Delete worker log files older than the cutoff on one board; returns the count.++ ``older_than_seconds=0`` means everything older than now; the CLI maps+ ``--log-retention-days 0`` to "disabled" before calling this.+ """older_than_seconds = int(older_than_seconds)if older_than_seconds < 0:raise ValueError(_NEGATIVE_RETENTION_MSG.format(older_than_seconds))diff --git a/website/docs/user-guide/features/kanban.md b/website/docs/user-guide/features/kanban.mdindex d8311c9217a..7eb9ac85ea1 100644--- a/website/docs/user-guide/features/kanban.md+++ b/website/docs/user-guide/features/kanban.md@@ -985,7 +985,7 @@ hermes kanban context <id> # what a worker seeshermes kanban specify [<id> | --all] [--tenant T] # flesh out a triage-column idea[--author NAME] [--json] # into a full spec and promote to todohermes kanban gc [--event-retention-days N] # workspaces + old events + old logs- [--log-retention-days N]+ [--log-retention-days N] # (negative N is rejected; 0 disables that sweep)```All commands are also available as a slash command in the interactive CLI and in the messaging gateway (see [`/kanban` slash command](#kanban-slash-command) below).