The automatic postinstall mutation of agent configuration is a concrete guarded lifecycle capability, but source inspection shows it is restricted to removing identified legacy Ethos entries. This warrants a warning under the agent integration policy, with no evidence supporting a block.
Static reason
One or more suspicious static signals were detected.
Trigger
Installing the package with npm runs postinstall.
Impact
This changes existing agent configuration without a separate cleanup command, but inspected behavior is limited to retired package-owned entries; no confirmed attack was identified.
Mechanism
It loads the cleanup module, removes a matching CLI-owned hook and named legacy skills from supported agent configuration locations, unless disabled through environment variables.
Evidence
package.jsonpostinstall.cjsdist/scripts/cleanup-agent-state.jsdist/lib/hooks-installer.jsdist/skills-installer/install.js