Skip to content

The agent that grows with you

fix(kanban): sync terminal-knowledge copies that kanban_request_review callers hit

crazyiefedd14100f9cd
diff --git a/agent/turn_iteration_prep.py b/agent/turn_iteration_prep.py
index 865ce3ed927..5548dffbcc0 100644
--- a/agent/turn_iteration_prep.py
+++ b/agent/turn_iteration_prep.py
@@ -62,7 +62,8 @@ def _maybe_inject_iteration_budget_warning(agent: Any, messages: Any) -> bool:
if kanban_worker:
notice += (
" While tools are still available, call kanban_complete only if all task "
- "requirements are verified; otherwise persist a kanban_comment handoff and "
+ "requirements are verified, or kanban_request_review if it is ready for "
+ "review; otherwise persist a kanban_comment handoff and "
"continue. A diff or commit alone is not completion evidence."
)
# Only the current tool-result tail is mutable; an older turn may already be cached.
diff --git a/hermes_cli/kanban_db_dispatch.py b/hermes_cli/kanban_db_dispatch.py
index bb1fd931868..196c9778c60 100644
--- a/hermes_cli/kanban_db_dispatch.py
+++ b/hermes_cli/kanban_db_dispatch.py
@@ -896,13 +896,14 @@ def _protocol_violation_streak(conn: sqlite3.Connection, task_id: str) -> int:
_PROTOCOL_VIOLATION_ERROR = (
# Worker subprocess returned 0 but its task is still ``running`` in the DB — it exited without calling
- # ``kanban_complete`` / ``kanban_block``. Overwhelmingly the work itself succeeded and only the
+ # ``kanban_complete`` / ``kanban_block`` / ``kanban_request_review``. Overwhelmingly the work itself succeeded and only the
# paperwork was skipped, so a retry usually completes; the corrective sentence below is surfaced to the
# retry worker via the prior-attempt error in ``build_worker_context`` (guidance approach from #61817).
- "worker exited cleanly (rc=0) without calling "
- "kanban_complete or kanban_block — protocol violation. "
+ "worker exited cleanly (rc=0) without a terminal kanban call "
+ "(kanban_complete, kanban_block or kanban_request_review) — protocol violation. "
"If the prior run already did the work, verify it and "
- "report the result via kanban_complete; a run that ends "
+ "report the result via kanban_complete, or call "
+ "kanban_request_review if it is ready for review; a run that ends "
"without a terminal kanban call counts as failed no "
"matter what it did."
)