The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(kanban): use unknown fallback for worker failure_reason and add test
webtecnicac52f8262b1bb
diff --git a/tests/hermes_cli/test_kanban_goal_mode.py b/tests/hermes_cli/test_kanban_goal_mode.pyindex c46730f878e..a31554775c4 100644--- a/tests/hermes_cli/test_kanban_goal_mode.py+++ b/tests/hermes_cli/test_kanban_goal_mode.py@@ -173,6 +173,26 @@ def test_loop_stops_on_worker_failed_flag(monkeypatch):assert res["reason"] == "worker failed: context_window_exceeded"+def test_loop_stops_on_worker_failed_flag_default_reason(monkeypatch):+ """Regression #91264: worker returning {'failed': True} without failure_reason+ uses 'unknown' as fallback."""+ _patch_judge(monkeypatch, ["continue", "continue"])++ res = goals.run_kanban_goal_loop(+ task_id="t1",+ goal_text="do the thing",+ run_turn=lambda p: {+ "response": "crashed without reason",+ "failed": True,+ },+ task_status_fn=lambda: "running",+ block_fn=lambda r: pytest.fail("should not block"),+ first_response="first attempt",+ )+ assert res["outcome"] == "stopped"+ assert res["reason"] == "worker failed: unknown"++