codexmate
codexmate copied to clipboard
feat(plugins): enforce sandbox isolation for third-party plugins
Requirements
Third-party plugins must run in an isolated child process with no access to main process memory. A malicious plugin with process.exit() should not crash the host. Plugin crashes must not affect main process stability.
Verification
- Write a test plugin that calls
process.exit(1)on load - Load the plugin and trigger its execution
- Verify main process stays alive (no crash, no uncaught exception)
- Verify plugin failure is logged and the plugin is marked as failed
- After recovery, verify the plugin can be reloaded and executed normally
Closing — plugin sandbox is premature. The plugin system is local-only with no third-party ecosystem yet. Revisit if/when external plugins are supported.