Skip to content

Auto-approve web_search in Ask first without a classifier - #949

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-search-allow-maple
Sep 16, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-search-allow-maple

Conversation

@AnthonyRonning

Copy link
Copy Markdown
Contributor

Summary

Ask first no longer prompts for web_search. The Maple Agent harness auto-approves those tool calls without sending them to a classifier.

Allow all already auto-approved every tool, including search, so that path is unchanged.

open_url is unchanged: Ask first still classifies fetches (and still auto-approves search-derived URLs).

Why this is the right layer

web_search was not going to a classifier today. The web classifier is only for open_url; Ask first just fell through to a permission card. This change matches web_search by tool name in automatically_handle_permissions and approves it the same way as local file reads.

web_search stays in Goose ask_before so Maple still sees the ActionRequired instead of letting tool annotations skip Maple. Goose security warnings (prompt) still reach the user.

Test plan

  • cargo test -p maple-agent --locked --lib web_permission::tests
  • cargo test -p maple-agent --locked --lib maple_permission_file_forces
  • cargo test -p maple-agent --locked --lib explicit_web_ask_before
  • cargo clippy -p maple-agent --all-targets --locked -- -D warnings
  • No GUI run (Ask first should execute web_search without a permission card; Allow all should still auto-run it)

Ask first previously showed a permission card for every web_search call.
The web classifier is only for open_url; search just fell through to the
user prompt. Allow all already auto-approved every tool, including search.

Handle plain web_search ActionRequireds in the Maple harness the same way
as local file reads: approve them immediately, skip the classifier, and
keep Goose security warnings on the prompt path. web_search stays in the
Goose ask_before list so Maple still sees the request instead of letting
tool annotations bypass it.
@AnthonyRonning
AnthonyRonning merged commit 28283cb into master Sep 16, 2026
27 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-search-allow-maple branch September 16, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant