Repository navigation
fix(agent): send back an answer to a run request when nothing ran - #5753
Conversation
…t back once (amd#5735) Asked "use your shell tool to run echo %TIME%", local Qwen3.6 sometimes answered "13:42:05.89" at 20:42 with no tool call, or answered "run pwd" from the cwd in its prompt. Nothing flagged it: the grounding checks only caught answers that claimed "I ran ...". A new grounding gate sees the request instead: a message that opens with "run"/"execute", or asks to use the shell, terminal or command line, and a turn where nothing ran. The answer goes back once ("run it now, or say that you didn't"); a second made-up answer ships with the "not confirmed" note. Questions about running things, a pasted README's "Run npm install" line, and answers that say the command didn't run are left alone.
|
Verdict: Request changes This adds a check that catches the agent inventing a command's output when it was asked to run something and ran nothing. That's a real hole, and the shell-request half of the check is solid. The problem is the other half: any message that starts with "run" or "execute" now counts as a request to run a shell command. Ordinary requests get flagged even when the agent did the work with the right tool.
Real-world evidenceN/A: no evidence bundle was produced for this run. This is an agent-loop change with no CLI, API or UI surface that could be run without inference here, so the verdict rests on static review. I checked the false positives above by running the PR's own pattern and its "did a command run" test against those messages and tool names. The test suite couldn't run in this environment because dependencies weren't installed. 🔍 Technical details🟡 Opening "run/execute" branch over-matches, and the evidence check is limited to exec-named tools ( The
In each case the correction ("ran nothing this turn… cannot be its output") is untrue. A second identical answer ships with the false
Either way, add the four rows above to 🟢 "I haven't run it", "I don't have a shell tool" and "I'm not able to execute commands" don't match, so an honest refusal gets one wasted correction round. Consider adding 🟢 Mid-file imports in the test ( Hoisting these imports to the top removes the five Strengths
|
…s a non-shell one "Run a web search", "Run a query on my sales table" and "Run me through how RAG works" opened with "run" and were flagged although the right tool (or no tool) answered them. An opening "run"/"execute" now counts only for a quoted command, a known program or "the command/script/tests/build", and is answered by any tool that ran; an explicit "use your shell" request still needs a shell run. "I haven't run it" and "I'm not able to execute" count as saying it didn't run.
|
Fixed in 7eba39f: an opening "run"/"execute" now counts only for a command-shaped request (a quoted command, a known program, or "the command/script/tests/build"), and any tool that ran answers it. An explicit "use your shell/terminal" request still needs a shell run. The four examples from the review are now in the "not flagged" tests, along with "I haven't run it", "I don't have a shell tool" and "I'm not able to execute" as honest refusals. The test imports are hoisted. The |
|
Local eval on this branch (7eba39f, Gemma-4-E4B, Sonnet 4.6 as judge) shows no regression from the new check.
🔍 Technical detailsCompared against |
## Why this matters v0.25.2 is a bug-fix release on top of v0.25.1: setup and install no longer stop at the first failed step, shell and file access handle Windows paths and text encodings, the Agent UI and desktop app stop showing misleading states, and document search, email and skills each lose a handful of rough edges. 55 commits since v0.25.1; notes are in `docs/releases/v0.25.2.mdx` and credit 15 outside contributors. ## Test plan - [x] `python util/validate_release_notes.py docs/releases/v0.25.2.mdx --tag v0.25.2` passes - [x] `mintlify validate` (from `docs/`) passes - [x] `python util/check_doc_links.py --internal-only`, `python util/check_doc_versions.py` and `node installer/version/bump-ui-version.mjs --check` pass - [x] `python util/check_component_core_api.py --release-version 0.25.2` passes - [x] `pytest tests/unit/test_docs_json_release.py tests/unit/test_check_component_core_api.py tests/unit/test_release_tag.py tests/unit/test_hub_core_version_gate.py`: 156 passed - [ ] CI green on the merge commit - [ ] `release_train_dryrun.yml` passes on that commit before the RC tag ## Evals to re-run on the RC tag LLM-affecting PRs merged without per-PR evals; run these on `v0.25.2-rc1`: - `gaia_shell` and shell/safety (amd#5794, amd#5751, amd#5768) - `gaia_honesty` (amd#5753) - `gaia_skills_tasks` and `gaia_skills_lifecycle` (amd#5422, amd#5755) - `rag_retrieval` and `rag_quality` (amd#5742, amd#5754, amd#5761, amd#5817, amd#5812) - email scenarios (amd#5767, amd#5811) - `tool_selection` and `error_recovery` (amd#5732) - Claude provider thinking replay (amd#5072) - memory categories (amd#5818 merged; amd#5756 has not) ## Release checklist - [ ] Freeze main, wait for green CI on the exact commit, pass `release_train_dryrun.yml`, then push `v0.25.2-rc1` - [ ] Extend the changelog if main gains commits before the tag
Asked "use your shell tool to run echo %TIME%", local Qwen3.6 sometimes answered "13:42:05.89" at 20:42 with no tool call. It also answered "run pwd" from the cwd in its prompt. Nothing flagged it, because the grounding checks only catch answers that claim "I ran …". A new grounding gate looks at the request instead: a message that opens with "run"/"execute", or asks to use the shell, terminal or command line, and a turn where nothing ran. The answer goes back once ("run it now, or say that you didn't"); a second made-up answer ships with the "not confirmed" note. Questions about running things, a pasted README's "Run npm install" line, and answers that say the command didn't run are left alone.
Closes #5735
Test plan
python -m pytest tests/unit/agents/test_grounding_request.py tests/unit/agents/test_grounding.py(includes two runs of the real agent loop with a scripted model that makes up the output)gaia_shell,gaia_honesty. A local run is in progress; results will be posted here.