fix: migrate CLI kanban gate + remaining mocks to 5-value judge contract
Follow-up to the salvaged transport-failure auto-pause (#54387): the PR branch predates the CLI completion gate merged in #67985, so that new judge_goal consumer (hermes_cli/kanban.py) needed the 5-value unpack too — otherwise it would fail open again via the swallowed ValueError. Also migrates the two remaining 4-value mocks in tests/cli/test_cli_goal_interrupt.py flagged on the earlier PR #27760.
This commit is contained in:
@@ -2016,10 +2016,11 @@ def _cmd_complete(args: argparse.Namespace) -> int:
|
||||
reason = ""
|
||||
try:
|
||||
# judge_goal returns (verdict, reason, parse_failed,
|
||||
# wait_directive) — see hermes_cli/goals.py. Unpacking
|
||||
# fewer raises ValueError into the fail-open handler
|
||||
# below, silently disabling the gate.
|
||||
verdict, reason, _, _ = judge_goal(
|
||||
# wait_directive, transport_failed) — see
|
||||
# hermes_cli/goals.py. Unpacking fewer raises
|
||||
# ValueError into the fail-open handler below,
|
||||
# silently disabling the gate.
|
||||
verdict, reason, _, _, _ = judge_goal(
|
||||
goal=f"{task.title}\n\n{task.body or ''}".strip(),
|
||||
last_response=(summary or args.result or "").strip(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user