mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 01:18:39 +00:00
Let profiles allow individual operations across all 12 bundled multi-action tools, such as reading files without allowing writes or listing scheduled tasks without allowing deletion. Share action contracts across runtime policy, Agent Editor, text prompts, and native schemas. Preserve existing whole-tool policies and legacy memory IDs; only explicit permission edits persist the editor's projection. Check aliases, defaults, browser batches, reset flags, and parallel operations at execution. Apply action permissions to automatic browser context and skill hints. Validation: 742 focused tests passed. Live Docker checks verified allowed reads, denied writes through native/legacy/parallel dispatch, blocked scheduler deletion, and editor save/reload.
1.1 KiB
1.1 KiB
Tool Access Plugin DOX
Purpose
- Own the always-enabled project/profile tool-policy configuration and execution gate.
Ownership
helpers/tool_policy.pyowns shared resolution and catalog behavior.hooks.pynormalizes scoped configuration.extensions/python/tool_execute_before/rejects blocked execution.
Local Contracts
- This plugin has no independent settings form; the generic plugin settings
shell exposes its scoped configuration index, while Agent Editor writes
sparse profile
config.jsonfiles and the runtime remains authoritative. - Custom configuration stores independent
defaultandmcp_defaultfallbacks; explicit canonical IDs remain shared inallowedandblocked. - Required final-response capability is never disabled.
- Forward the complete execution arguments to shared policy resolution so action defaults, aliases, browser batches, reset flags, and parallel operations cannot bypass permissions. Unified memory retains the permissions of its former individual tools.
Verification
- Run
tests/test_tool_policy.pyandtests/test_tool_action_policy.py.
Child DOX Index
No child DOX files.