mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-12 18:11:51 +08:00
c6627d32e2
create_agent writes central-DB state (agent_groups, container_configs, agent_destinations) and scaffolds host filesystem state, but the only gate lived inside the untrusted container and is bypassed by writing the outbound system row directly (the "host re-checks permission" comment was false). Authorize host-side by CLI scope: trusted owner agent groups (global scope) create sub-agents directly; confined groups require admin approval via requestApproval. Adds regression tests for the branch. Alternative to #2383 (which denies confined groups outright); co-authored from that work. Co-Authored-By: hinotoi-agent <paperlantern.agent@gmail.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>