Devin AI
660a186375
feat: enforce fail-closed defaults for unsafe tool execution
Fixes #4593
- Add field to BaseTool with documentation
- Propagate flag through CrewStructuredTool and @tool decorator
- Enforce fail-closed behavior in all tool execution paths:
- crew_agent_executor.py (native tool calling path)
- experimental/agent_executor.py (experimental executor path)
- tool_utils.py (ReAct text-based path, sync and async)
- Unsafe tools require a before_tool_call hook returning True to execute
- Deterministic error message for denied unsafe tool execution
- Add 15 regression tests covering allow/deny paths
Co-Authored-By: João <joao@crewai.com>
2026-02-25 19:40:15 +00:00
..
2026-01-30 17:10:00 -05:00
2026-02-25 13:13:31 -05:00
2026-02-19 14:07:28 -08:00
2026-02-20 18:21:05 -05:00
2025-10-20 14:10:19 -07:00
2025-12-04 16:53:19 -05:00
2026-02-04 20:34:08 -03:00
2025-12-05 13:23:26 -05:00
2026-02-25 19:40:15 +00:00
2025-12-04 10:27:52 -08:00
2026-02-24 09:59:01 -08:00
2025-11-26 21:37:55 -08:00
2026-02-13 21:34:37 -03:00
2025-11-29 16:55:24 -05:00
2025-11-05 07:19:09 -05:00
2026-02-13 21:34:37 -03:00
2025-10-20 14:10:19 -07:00
2026-02-13 21:34:37 -03:00
2025-12-04 13:34:29 -08:00
2025-12-05 13:23:26 -05:00
2026-02-25 13:13:31 -05:00
2025-11-29 16:55:24 -05:00
2026-02-25 13:13:31 -05:00
2025-10-20 14:10:19 -07:00
2026-01-23 15:13:25 -05:00
2025-12-25 21:04:10 -03:00
2026-01-22 17:44:03 -08:00
2026-01-23 15:13:25 -05:00
2025-10-20 14:10:19 -07:00
2026-02-13 21:34:37 -03:00
2025-12-01 18:56:56 -05:00
2026-02-16 18:41:03 -03:00
2025-10-20 14:10:19 -07:00
2026-02-04 15:40:22 -05:00
2026-01-23 15:13:25 -05:00
2026-01-20 21:44:45 -08:00
2025-10-20 14:10:19 -07:00
2025-11-24 17:35:12 -05:00
2026-02-18 03:27:24 -03:00
2025-10-20 14:10:19 -07:00
2026-02-13 21:34:37 -03:00
2026-02-15 21:54:42 -05:00
2025-10-20 14:10:19 -07:00
2026-01-23 15:13:25 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-29 16:55:24 -05:00
2025-11-29 16:55:24 -05:00
2026-02-03 10:10:33 -03:00
2026-02-03 09:06:48 -05:00
2025-12-11 12:03:33 -05:00
2025-10-20 14:10:19 -07:00