jif
93beee910d
Add conservative restriction helpers for tool policies ( #38183 )
...
## What changed
- Add `restrict_to` helpers that combine parent and requested `WebSearchMode`
and `AppToolApproval` values without granting access beyond either policy.
- Treat `Auto` and `Writes` approval modes as incomparable, falling back to
`Prompt` when they are combined.
## Testing
- Cover every pair of web search and app tool approval modes.
GitOrigin-RevId: 41b3da5ace2fbdaab667c4b834bc2051a8e5e9cf
2026-08-12 12:53:07 +00:00
..
2026-08-12 12:15:47 +00:00
2026-08-11 23:31:26 +00:00
2026-07-23 00:02:15 +00:00
2026-08-05 18:09:26 +00:00
2026-08-11 23:31:26 +00:00
2026-08-11 01:05:48 +00:00
2026-08-03 17:29:42 +00:00
2026-06-02 13:18:59 -07:00
2026-08-10 11:22:55 +00:00
2026-08-11 13:52:48 +00:00
2026-08-11 13:52:48 +00:00
2026-08-07 23:43:14 +00:00
2026-08-10 11:22:55 +00:00
2026-07-27 18:41:09 +00:00
2026-08-09 00:57:15 +00:00
2026-08-09 00:57:15 +00:00
2026-06-16 11:17:41 -04:00
2026-07-16 09:00:51 +00:00
2026-08-11 23:31:26 +00:00
2026-04-17 21:44:47 -07:00
2026-07-31 16:28:22 +00:00
2026-08-03 18:51:46 +00:00
2026-06-25 22:15:50 +01:00
2026-08-12 12:53:07 +00:00
2026-08-12 12:53:07 +00:00
2026-07-27 18:41:09 +00:00
2026-07-27 18:41:09 +00:00
2026-07-27 18:41:09 +00:00
2026-07-20 13:45:29 +00:00
2026-04-30 14:26:14 -07:00
2026-05-22 17:54:07 -07:00
2026-03-25 12:57:42 -07:00
2026-04-08 13:49:06 +01:00
2026-08-04 19:28:37 +00:00
2026-07-21 18:23:26 +00:00
2026-07-21 18:23:26 +00:00
2026-08-11 10:20:54 +00:00
2026-08-11 10:20:54 +00:00
2026-08-03 17:29:42 +00:00
2026-08-10 11:22:55 +00:00
2026-08-07 17:44:05 +00:00
2026-08-05 04:00:50 +00:00
2026-06-02 13:18:59 -07:00
2026-06-02 13:18:59 -07:00
2026-07-23 00:02:15 +00:00
2026-08-01 17:43:03 +00:00
2026-08-01 17:43:03 +00:00
2026-04-28 17:07:16 +02:00
2026-07-21 18:23:26 +00:00