Repository navigation
fix(agent): fail --live gate on unusable model replies - #6606
Conversation
…sable reply gaia agent test --live printed "All live gates passed" for a turn whose model output was never usable: three unparsable tool calls in a row, repeated cut-off replies, or a reply stream that kept ending early. The gate now fails on an unrecovered tool_call_parse_error or stream_cut_off at the end of the turn, and the agent sets the model-failed flag when it stops on the cut-off limit. The failure reason now includes the underlying error. Refs amd#6578
|
Verdict: Approve with suggestions
Real-world evidenceN/A: no evidence bundle was produced for this run. 🔍 Technical detailsIssues 🟡 No CLI evidence for a CLI-visible change. The rubric asks for the real 🟢
All of these look right for a "could not finish this task" notice, but none has a test. One assertion in 🟢 Cross-module import of a private constant. Checked, no issue
Strengths
|
…remedy A turn whose step-cap, loop-guard, or post-answer closing call parsed cleanly was still failed by an earlier unparsable reply. Unusable or cut-off replies now point at the model choice or max_tokens instead of Lemonade being down.
gaia agent test --liveprinted "All live gates passed" even when the model never gave a usable reply: three unparsable tool calls in a row, repeated cut-off replies, or a stream that kept ending early. Those turns now fail the gate with a reason that names the underlying error, so a broken model no longer looks healthy.Hitting the cut-off limit now also marks the turn failed in the Agent UI and the sidecar, and makes a scheduled run raise an error.
Refs #6578
Test plan
python -m pytest tests/unit/test_cli_agent.py tests/unit/agents/test_cut_off_reply_guard.py tests/unit/agents/test_parse_error_recovery.py tests/unit/agents/test_deepseek_tool_markup.py(175 passed)python util/lint.py --black --isort