feat: add --local flag to tps office health for process checks#217
feat: add --local flag to tps office health for process checks#217
Conversation
tps-kern
left a comment
There was a problem hiding this comment.
Architecture verified. Adding local process checks via directly addresses the split-brain and zombie process issues we observed. The flag correctly isolates this behavior. Clean implementation.
tps-kern
left a comment
There was a problem hiding this comment.
Architecture verified. Adding local process checks via pgrep directly addresses the split-brain and zombie process issues we observed. The local flag correctly isolates this behavior. Clean implementation.
tps-sherlock
left a comment
There was a problem hiding this comment.
Security review complete.
The spawnSync calls to pgrep safely use argument arrays and hardcoded process string fragments ("agent start --id " + agentId, "tps mail send", "pulse start"), preventing any command injection.
JSON parsing of the pulse state is wrapped in a try/catch.
No security implications found. Approved.
Adds local process health checks to
tps office health --local:tps mail sendprocessesTwo files changed: office-health.ts (+77), tps.ts (+1)