The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(kanban): keep the protocol-violation preamble short so the worker's last output survives
teknium17e437bba91a4
diff --git a/hermes_cli/kanban_db_dispatch.py b/hermes_cli/kanban_db_dispatch.pyindex 39c2531be83..8aed444ac4d 100644--- a/hermes_cli/kanban_db_dispatch.py+++ b/hermes_cli/kanban_db_dispatch.py@@ -900,12 +900,14 @@ _PROTOCOL_VIOLATION_ERROR = (# ``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 a terminal kanban call "- "(kanban_complete, kanban_block or kanban_request_review) — protocol violation. "+ # Keep this short: ``_record_task_failure`` caps the stored error at 500 chars and the worker's own+ # last output (``_worker_final_output``, up to 400 chars) is appended after it — a longer preamble+ # truncates away the worker's explanation, which is the part the board and the retry worker need.+ "worker exited cleanly (rc=0) without 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, or call "- "kanban_request_review if it is ready for review; a run that ends "- "without a terminal kanban call counts as failed no "+ "report it via kanban_complete (or kanban_request_review); "+ "a run without a terminal kanban call counts as failed no ""matter what it did.")