Add a computer-use-only Guardian v2 review scope (#40480)

## What changed

- Add `features.guardianv2.review_scope.computer_use_only` to restrict asynchronous classification and fast approvals to browser and computer-use REPL tools.
- Keep other tools on the synchronous approval path without letting them age or reuse scores from in-scope calls.
- Give this scope precedence over `sandboxed_exec_commands` when both options are enabled.

## Testing

- Cover configuration precedence, direct and code-mode tool detection, fast-approval isolation, and end-to-end approval routing for browser, computer-use, and unrelated MCP servers.

GitOrigin-RevId: bfd9ab6abdbd90634b265d354e038724b1e81d65
This commit is contained in:
jif authored and copyberry committed 2026-08-24 21:33:32 +00:00
1 parent d21794d6ba
commit 219c203417
8 files changed
+289 -29

No files matched your search

+4
View File
@@ -1447,6 +1447,10 @@
"additionalProperties": false,
"description": "Optional tool-call categories available to the Guardian v2 classifier.",
"properties": {
"computer_use_only": {
"description": "Restrict asynchronous classification and fast approvals to browser and computer-use tools.",
"type": "boolean"
},
"sandboxed_exec_commands": {
"description": "Include sandboxed shell command calls in Guardian v2 classification.",
"type": "boolean"