Skip to content

The agent that grows with you

refactor(kanban): import VALID_STATUSES from the workflow so kanban_db does not grow

kshitijk4poor0b61278197e5
diff --git a/hermes_cli/kanban_db.py b/hermes_cli/kanban_db.py
index ce622333c32..8992fc39807 100644
--- a/hermes_cli/kanban_db.py
+++ b/hermes_cli/kanban_db.py
@@ -29,7 +29,7 @@ from dataclasses import dataclass
from pathlib import Path
from typing import Any, Iterable, Optional
-from hermes_cli import kanban_workflow
+from hermes_cli.kanban_workflow import DEFAULT_STATUSES as VALID_STATUSES
from toolsets import get_toolset_names
_log = logging.getLogger(__name__)
@@ -104,8 +104,6 @@ def _git_out(cwd: Path, *args: str, timeout: int = 30) -> Optional[str]:
# --- Constants ---
-# Derived from the one workflow definition (``kanban_workflow``).
-VALID_STATUSES = kanban_workflow.DEFAULT_STATUSES
VALID_INITIAL_STATUSES = {"running", "blocked"}
# Typed block reasons (routing in ``_route_block``); ``None`` = legacy un-typed.