Make app tool hint defaults pessimistic for app policies (#17232)

## Summary
- default missing app tool destructive/open-world hints to true for app
policies
- add regression tests for missing MCP annotations under restrictive app
config
This commit is contained in:
colby-oai authored and GitHub committed 2026-04-17 13:27:49 -04:00
1 parent cfc23eee3d
commit ea84537369
2 files changed
+58 -2

No files matched your search

+2 -2
View File
@@ -680,10 +680,10 @@ fn app_tool_policy_from_apps_config(
});
let destructive_hint = annotations
.and_then(|annotations| annotations.destructive_hint)
.unwrap_or(false);
.unwrap_or(true);
let open_world_hint = annotations
.and_then(|annotations| annotations.open_world_hint)
.unwrap_or(false);
.unwrap_or(true);
let enabled =
(destructive_enabled || !destructive_hint) && (open_world_enabled || !open_world_hint);