Spencer
822e098d32
feat(policy): map --yolo to allowedTools wildcard policy
...
This PR maps the `--yolo` flag natively into a wildcard policy array
(`allowedTools: ["*"]`) and removes the concept of `ApprovalMode.YOLO` as a
distinct state in the application, fulfilling issue #11303 .
This removes the hardcoded `ApprovalMode.YOLO` state and its associated
UI/bypasses. The `PolicyEngine` now evaluates YOLO purely via data-driven rules.
- Removes `ApprovalMode.YOLO`
- Removes UI toggle (`Ctrl+Y`) and indicators for YOLO
- Removes `yolo.toml`
- Updates A2A server and CLI config logic to translate YOLO into a wildcard tool
- Rewrites policy engine tests to evaluate the wildcard
- Enforces enterprise `disableYoloMode` and `secureModeEnabled` controls
by actively preventing manual `--allowed-tools=*` bypasses.
Fixes #11303
2026-04-02 18:04:20 +00:00
..
2026-04-02 18:04:20 +00:00
2026-04-02 11:48:17 +00:00
2026-03-20 20:08:29 +00:00
2026-03-24 02:30:48 +00:00
2026-03-11 20:14:12 +00:00
2026-03-31 17:05:08 +00:00
2026-03-20 20:08:29 +00:00
2026-03-10 19:10:26 +00:00
2026-03-20 20:08:29 +00:00
2026-03-09 23:26:33 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 20:14:12 +00:00
2026-03-20 20:08:29 +00:00
2026-02-18 02:41:43 +00:00
2026-04-02 11:48:17 +00:00
2026-04-02 11:48:17 +00:00
2026-03-24 02:30:48 +00:00
2026-03-24 15:43:03 -07:00
2026-03-19 17:05:33 +00:00
2026-04-02 18:04:20 +00:00
2026-04-02 18:04:20 +00:00
2026-03-23 18:05:00 +00:00
2026-03-25 23:26:34 +00:00
2026-03-25 23:26:34 +00:00
2026-03-28 21:27:51 +00:00
2026-03-28 21:27:51 +00:00
2026-03-19 17:05:33 +00:00
2026-03-18 18:39:12 +00:00
2026-03-19 17:05:33 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 20:14:12 +00:00
2026-03-20 20:08:29 +00:00
2026-03-17 23:24:26 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-04 00:10:09 +00:00
2026-04-02 18:04:20 +00:00
2026-04-02 18:04:20 +00:00
2026-03-10 02:32:40 +00:00
2026-03-20 20:08:29 +00:00
2026-03-24 02:30:48 +00:00
2026-03-20 20:08:29 +00:00
2026-03-24 02:30:48 +00:00
2026-03-20 20:08:29 +00:00
2026-03-24 02:30:48 +00:00
2026-03-24 02:30:48 +00:00
2026-03-20 20:08:29 +00:00
2026-03-05 02:21:48 +00:00
2026-03-20 20:08:29 +00:00
2026-03-24 23:16:48 +00:00
2026-03-20 20:08:29 +00:00
2026-03-04 16:03:00 +00:00
2026-03-30 13:15:10 -07:00
2026-03-30 13:15:10 -07:00
2026-03-20 20:08:29 +00:00
2026-03-12 13:46:58 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 20:14:12 +00:00
2026-03-20 20:08:29 +00:00
2026-02-27 18:15:06 +00:00
2026-03-20 20:08:29 +00:00
2026-03-24 13:19:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-16 18:40:12 +00:00
2026-03-31 20:31:22 +00:00
2026-04-02 06:54:51 +00:00
2026-03-31 16:10:13 +00:00
2026-03-31 16:10:13 +00:00
2026-03-20 20:08:29 +00:00
2026-03-24 02:30:48 +00:00
2026-02-25 23:31:35 +00:00
2026-03-23 18:05:00 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-04-02 18:04:20 +00:00
2026-03-20 20:08:29 +00:00
2026-04-02 06:29:56 +00:00
2026-03-20 20:08:29 +00:00
2026-03-21 04:29:09 +00:00
2026-03-24 02:30:48 +00:00
2026-03-24 02:30:48 +00:00
2026-03-20 20:08:29 +00:00
2026-04-02 18:04:20 +00:00
2026-04-02 18:04:20 +00:00
2026-03-24 02:30:48 +00:00
2026-03-24 02:30:48 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 20:14:12 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 20:14:12 +00:00
2026-04-01 01:08:28 +00:00
2026-04-02 06:29:56 +00:00
2026-03-20 20:08:29 +00:00
2026-03-24 23:16:48 +00:00
2026-03-30 23:30:33 +00:00
2026-04-01 18:03:30 +00:00
2026-03-20 20:08:29 +00:00
2026-03-10 19:10:26 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 20:14:12 +00:00
2026-03-20 20:08:29 +00:00
2026-03-17 03:54:33 +00:00
2026-03-20 20:08:29 +00:00
2026-02-20 18:22:45 +00:00
2026-03-20 20:08:29 +00:00
2026-02-27 18:15:06 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 20:14:12 +00:00
2026-03-20 20:08:29 +00:00
2026-03-12 13:46:58 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-02-10 19:12:40 +00:00
2026-03-20 20:08:29 +00:00
2026-03-07 23:17:10 +00:00
2026-03-07 23:17:10 +00:00
2026-03-20 20:08:29 +00:00
2026-03-09 23:26:33 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 20:14:12 +00:00
2026-03-20 20:08:29 +00:00
2026-03-09 23:26:33 +00:00
2026-03-20 20:08:29 +00:00
2026-03-18 04:44:01 +00:00
2026-03-20 14:10:51 +00:00
2026-03-20 14:10:51 +00:00
2026-03-20 20:08:29 +00:00
2026-03-17 19:08:45 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 20:14:12 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-04-02 18:04:20 +00:00
2026-03-20 20:08:29 +00:00
2026-03-07 19:04:22 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-25 20:28:49 +00:00
2026-03-28 21:27:51 +00:00
2026-03-28 21:27:51 +00:00
2026-03-28 00:06:07 +00:00
2026-03-28 00:06:07 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-08 22:50:51 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-04 00:10:09 +00:00
2026-03-20 20:08:29 +00:00
2026-03-02 21:12:17 +00:00
2026-03-20 20:08:29 +00:00
2026-03-24 02:30:48 +00:00
2026-03-24 04:48:13 +00:00
2026-03-23 19:42:30 +00:00
2026-03-20 20:08:29 +00:00
2026-02-10 02:53:10 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-31 16:10:13 +00:00
2026-03-20 20:08:29 +00:00
2026-03-10 19:10:26 +00:00