mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 22:12:23 +00:00
b2e0ae3fdb
Implement safety layers for command execution: ExecutionIntent classifies commands as: - ObservationOnly: Pure read (status, logs, metrics) - SideEffects: May change state (restart, write, delete) NonInteractiveOnly enforces safe command forms: - Blocks interactive commands (vim, top without -b, etc) - Blocks unbounded streaming (tail -f without limit) - Suggests safe alternatives in error messages Add phantom execution detection: - Catches when model claims actions without using tools - Skips check when tools actually succeeded (fixes false positives) Includes comprehensive tests for: - Intent classification accuracy - Interactive command blocking - Strict resolution validation