DIVE-1008: fix stale isolation unit-test source paths (green CI)
Self-hosted AI team: Claude Code, Codex and more, from your phone
Brought to you by:
fivedive
Originally created by: lodar
agent_isolation_unit.sh failed 2/15 on origin/main (breaking unit-tests CI). Root cause: write_admin_sudoers() and cmd_restart() were split out of cmd_agent.sh into cmd_agent_create.sh / cmd_agent_lifecycle.sh, but the security-invariant asserts still sed-extracted them from cmd_agent.sh → both greps matched empty → FAIL.
ALL=(root) NOPASSWD scoped to a fixed /usr/local/bin/5dive + systemctl start|stop|restart 5dive-* allowlist. No blanket ALL=(ALL) NOPASSWD:ALL, no systemd-run/journalctl/systemctl status root-escapes./bin/systemctl restart 5dive-agent@${name}.service where name is validated by require_agent (must be an existing registry key) and passed as argv to systemd-run — no shell eval, no caller-templated command string. No injection surface.Test-only: point the two sed extractions at the correct files + source the split defs. Now PASS=15 FAIL=0. Not bundled, no rebuild needed.
🤖 Generated with Claude Code
Ticket changed by: lodar