jif
ed1b92fa45
Add opt-in synchronous Guardian review for native tool calls ( #57433 )
...
## What changed
- Add `CoreToolRuntime::requires_guardian_review` to review opted-in function calls before dispatch and stop execution when review rejects the call.
- Deliver proposed calls as native review evidence, preserving encrypted argument metadata. When hooks rewrite arguments, review the updated arguments and discard the original encrypted replay content.
- Deduplicate native call evidence against reviewer history and include paired evidence outputs in input budgets.
- Keep review accounting and metrics for native calls without emitting action-specific client assessment events, and omit approval payloads from debug output.
## Testing
Extend regression coverage for rewritten native calls across review retries, denied calls that never execute their handlers, oversized native evidence, and review metrics without client events.
GitOrigin-RevId: c3b22c0220344581c2b38f233001abaed49cba34
2026-10-27 11:37:24 +00:00
..
2026-10-26 21:07:09 +00:00
2026-10-14 07:13:22 +00:00
2026-10-27 05:52:01 +00:00
2026-10-23 14:59:40 +00:00
2026-10-27 11:37:24 +00:00
2026-10-27 11:05:48 +00:00
2026-10-26 20:02:45 +00:00
2026-10-26 21:05:47 +00:00
2026-10-27 10:05:37 +00:00
2026-10-26 18:13:00 +00:00
2026-10-26 20:02:45 +00:00
2026-10-12 11:24:22 +00:00
2026-10-26 20:26:32 +00:00
2026-10-15 19:51:22 +00:00
2026-10-22 19:36:47 +00:00
2026-10-26 18:06:07 +00:00
2026-10-26 21:08:15 +00:00
2026-10-27 04:46:24 +00:00
2026-10-26 18:06:07 +00:00
2026-10-26 18:14:57 +00:00
2026-10-20 15:43:19 +00:00
2026-10-26 21:36:35 +00:00
2026-10-26 21:36:35 +00:00
2026-10-27 05:52:01 +00:00
2026-10-27 05:52:01 +00:00
2026-10-26 18:22:11 +00:00
2026-10-19 21:43:19 +00:00
2026-10-27 05:52:01 +00:00
2026-10-27 05:52:01 +00:00
2026-10-26 21:08:15 +00:00
2026-10-26 21:55:00 +00:00
2026-10-27 11:37:24 +00:00
2026-10-20 14:14:59 +00:00
2026-10-19 15:15:17 +00:00
2026-10-26 22:23:59 +00:00
2026-10-27 05:52:01 +00:00
2026-10-26 19:19:10 +00:00
2026-10-27 05:52:01 +00:00
2026-10-26 20:26:59 +00:00
2026-10-27 05:52:01 +00:00
2026-10-27 11:37:24 +00:00
2026-10-27 05:52:01 +00:00
2026-10-27 00:52:31 +00:00
2026-10-22 19:36:47 +00:00
2026-10-22 19:36:47 +00:00
2026-10-21 19:53:00 +00:00
2026-10-13 17:22:34 +00:00
2026-10-26 20:40:53 +00:00
2026-10-27 11:37:24 +00:00
2026-10-21 02:41:05 +00:00
2026-10-26 19:21:08 +00:00
2026-10-26 18:06:07 +00:00
2026-10-22 19:36:47 +00:00
2026-10-26 18:31:21 +00:00
2026-10-27 08:06:10 +00:00
2026-10-26 20:40:53 +00:00
2026-10-22 19:36:47 +00:00
2026-10-23 15:00:06 +00:00
2026-10-22 19:36:47 +00:00
2026-10-27 00:08:07 +00:00
2026-10-27 08:06:10 +00:00
2026-10-27 01:50:46 +00:00
2026-10-27 04:39:28 +00:00
2026-10-26 18:22:40 +00:00
2026-10-27 05:52:01 +00:00
2026-10-26 22:11:01 +00:00
2026-10-27 01:50:46 +00:00
2026-10-27 11:37:24 +00:00
2026-10-23 11:43:14 +00:00
2026-10-19 16:56:42 +00:00
2026-10-26 19:37:32 +00:00
2026-10-27 04:52:09 +00:00
2026-10-26 23:55:28 +00:00
2026-10-26 18:22:11 +00:00
2026-10-27 05:52:01 +00:00
2026-10-27 05:52:01 +00:00
2026-10-22 04:59:19 +00:00
2026-10-27 05:52:01 +00:00
2026-10-19 21:01:44 +00:00
2026-10-26 20:16:30 +00:00
2026-10-22 00:19:02 +00:00
2026-10-12 17:52:12 +00:00
2026-10-26 20:44:30 +00:00
2026-10-26 21:07:36 +00:00
2026-10-26 19:21:08 +00:00
2026-10-27 08:05:46 +00:00
2026-10-13 22:40:57 +00:00
2026-10-27 05:52:01 +00:00
2026-10-16 06:06:54 +00:00
2026-10-27 05:52:01 +00:00
2026-10-27 05:52:01 +00:00
2026-10-22 19:36:47 +00:00
2026-10-22 17:02:32 +00:00
2026-10-26 22:05:00 +00:00
2026-10-26 22:11:01 +00:00
2026-10-26 22:11:01 +00:00
2026-10-26 21:47:10 +00:00
2026-10-27 05:52:01 +00:00