fix(agent): respect permitted web retrieval guidance - #39905
Conversation
|
Thanks for tracing this to the model-specific execution guidance. The core premise is confirmed on current main: Problems
Suggested changes
This is an automated hermes-sweeper review. |
|
Refreshed onto current
Fresh verification: 257 passed, 1 skipped across the four touched suites; Ruff, py_compile, Windows-footgun, and whitespace checks passed. |
fa82089 to
c0628ee
Compare
|
Rebased onto current Root cause: identical to the #71184 drift seen elsewhere — the branch Verification (clean-HOME, CI-equivalent env):
Net diff vs |
c0628ee to
a4a0ee3
Compare
# Conflicts: # tests/agent/test_prompt_builder.py # tests/tools/test_browser_cdp_tool.py
Summary
web_searchfor current facts with permitted retrieval/search wording.web_search/web_extractare only examples when permitted or available.Fixes #39797.
Verification
.venv/bin/python -m py_compile agent/prompt_builder.py agent/system_prompt.py tools/browser_tool.py tools/browser_cdp_tool.py tests/agent/test_prompt_builder.py tests/agent/test_system_prompt.py tests/tools/test_browser_hardening.py tests/tools/test_browser_cdp_tool.py.venv/bin/python -m pytest tests/agent/test_prompt_builder.py tests/agent/test_system_prompt.py tests/tools/test_browser_hardening.py tests/tools/test_browser_cdp_tool.py -q -o addopts= --tb=short/opt/homebrew/bin/ruff check agent/prompt_builder.py agent/system_prompt.py tools/browser_tool.py tools/browser_cdp_tool.py tests/agent/test_prompt_builder.py tests/agent/test_system_prompt.py tests/tools/test_browser_hardening.py tests/tools/test_browser_cdp_tool.pygit diff --checkrg -n 'prefer web_search|use web_search|use web_extract|prefer web_extract|prefer web_search or web_extract' agent tools -g '*.py'