The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(kanban): gateway owner fixtures create their board via create_board
Tekniumba1c4075261f
diff --git a/tests/gateway/fixtures/kanban_owner_probe.py b/tests/gateway/fixtures/kanban_owner_probe.pyindex c88efab1f60..699a75c1b82 100644--- a/tests/gateway/fixtures/kanban_owner_probe.py+++ b/tests/gateway/fixtures/kanban_owner_probe.py@@ -89,6 +89,7 @@ def main():# Pin the installed launcher to this checkout for base/fixed argv comparisons.dispatch._resolve_hermes_argv = lambda: [sys.executable, '-m', 'hermes_cli.main']os.environ['HERMES_KANBAN_CRASH_GRACE_SECONDS'] = '0'+ kb.create_board('owned') # explicit creation; connect() never creates a board (#43243)with closing(connect(board='owned')) as conn:tid = kb.create_task(conn, title='KANBAN_TASK_SENTINEL', body='Acceptance: finish owned card', assignee='default',workspace_kind='dir', workspace_path=str(workspace), skills=['owned-skill'],diff --git a/tests/gateway/fixtures/kanban_recovery_probe.py b/tests/gateway/fixtures/kanban_recovery_probe.pyindex d44ec0cf659..727e268176d 100644--- a/tests/gateway/fixtures/kanban_recovery_probe.py+++ b/tests/gateway/fixtures/kanban_recovery_probe.py@@ -100,6 +100,8 @@ def main():pinned = kb.pin_first_board_resolution()pinned.__enter__()try:+ # Board identity is board.json (#43243): create it explicitly; under the pin its DB is board_path.+ kb.create_board('owned')with closing(connect(board='owned')) as conn:tid = kb.create_task(conn, title='RECOVERY_TASK', assignee='assigned' if mode == 'cross_profile' else 'default',workspace_kind='dir', workspace_path=str(workspace), goal_mode=True, goal_max_turns=2)diff --git a/tests/gateway/test_session_kanban.py b/tests/gateway/test_session_kanban.pyindex 061d226418b..c89b1da81cb 100644--- a/tests/gateway/test_session_kanban.py+++ b/tests/gateway/test_session_kanban.py@@ -20,6 +20,7 @@ def test_claim_freezes_task_policy_and_rejects_forgery(tmp_path, monkeypatch):workspace = tmp_path / 'workspace'workspace.mkdir()from contextlib import closing+ kb.create_board('owned') # explicit creation; connect() never creates a board (#43243)with closing(connect(board='owned')) as conn:task_id = kb.create_task(conn, title='Owned acceptance', body='Goal criteria', assignee='default',workspace_kind='dir', workspace_path=str(workspace), skills=['owned-skill'], goal_mode=True,@@ -83,6 +84,7 @@ def test_late_launcher_cannot_stamp_replacement_claim(tmp_path, monkeypatch):monkeypatch.setenv('HERMES_KANBAN_HOME', str(tmp_path))monkeypatch.delenv('HERMES_KANBAN_DB', raising=False)monkeypatch.delenv('HERMES_DELEGATED_CHILD', raising=False)+ kb.create_board('owned') # explicit creation; connect() never creates a board (#43243)with closing(connect(board='owned')) as conn:tid = kb.create_task(conn, title='Owned race', assignee='default')old = kb.claim_task(conn, tid)@@ -111,6 +113,7 @@ def test_claim_reclaimed_before_admission_marker_is_refused(tmp_path, monkeypatcmonkeypatch.setattr('hermes_cli.profiles.resolve_profile_env', lambda name: str(tmp_path) if name == 'default' else str(tmp_path / name))workspace = tmp_path / 'workspace'workspace.mkdir()+ kb.create_board('owned') # explicit creation; connect() never creates a board (#43243)with closing(connect(board='owned')) as conn:task_id = kb.create_task(conn, title='Owned race', assignee='default', workspace_kind='dir', workspace_path=str(workspace))kb.recompute_ready(conn)diff --git a/tests/hermes_cli/test_kanban_worker_spawn_toolsets.py b/tests/hermes_cli/test_kanban_worker_spawn_toolsets.pyindex 669f079a9ee..026ae441c18 100644--- a/tests/hermes_cli/test_kanban_worker_spawn_toolsets.py+++ b/tests/hermes_cli/test_kanban_worker_spawn_toolsets.py@@ -183,6 +183,7 @@ def test_worker_toolsets_come_from_the_assignee_profile_not_the_parent_config(tmmonkeypatch.setattr("hermes_cli.profiles.resolve_profile_env", lambda name: str(profile))workspace = tmp_path / "workspace"workspace.mkdir()+ kb.create_board("owned") # explicit creation; connect() never creates a board (#43243)with closing(connect(board="owned")) as conn:task_id = kb.create_task(conn, title="t", body="b", assignee="elias",workspace_kind="dir", workspace_path=str(workspace))