Repository navigation
Auto-approve web_search in Ask first without a classifier - #949
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_urlis unchanged: Ask first still classifies fetches (and still auto-approves search-derived URLs).Why this is the right layer
web_searchwas not going to a classifier today. The web classifier is only foropen_url; Ask first just fell through to a permission card. This change matchesweb_searchby tool name inautomatically_handle_permissionsand approves it the same way as local file reads.web_searchstays in Gooseask_beforeso Maple still sees theActionRequiredinstead 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::testscargo test -p maple-agent --locked --lib maple_permission_file_forcescargo test -p maple-agent --locked --lib explicit_web_ask_beforecargo clippy -p maple-agent --all-targets --locked -- -D warningsweb_searchwithout a permission card; Allow all should still auto-run it)