mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 03:58:09 +00:00
Accepted WhatsApp senders could persistently relax their own tool policy and toggle instance-wide plugins using ordinary chat authorization. Add a separate admin_numbers allowlist, empty by default, and derive administrative access from the normalized sender of each inbound message. Keep allowed-number and group checks in force. Require administration at the WhatsApp plugin-toggle and tool-policy mutation boundaries while preserving read-only menus and ordinary chat controls. Gate built-in profile creation and browser-runtime changes before shared command execution. Use the shared argument parser for profile creation checks and preserve existing profile selection and custom overrides. Expose the administrator list in settings and document the new defaults. Add regressions for denied writes, real policy persistence and runtime decisions, normalized sender identities, revocation, administrative commands, and independent frontend access-list editing. Validation: - Conda framework: 165 tests and 62 subtests passed. - Docker framework: 12 focused tests and 32 subtests passed. - Node bridge and configuration store: all 4 tests passed. - WebUI: administrator field renders, parses and clears independently. - JavaScript syntax and git diff checks passed. - Restarted the bound Docker instance and verified HTTP 200. Live WhatsApp delivery was not exercised. Synthetic events and disposable policy files cover the authorization paths without changing live access lists or sending test messages to WhatsApp users.