This is a reachable, feature-flagged write to Codex's global instruction file from synced overlay content, which creates an agent configuration risk. The source does not show that the content steers the agent toward harmful behavior, so this warrants a warning rather than a block.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
Post-sync in hq-sync-runner when the identity claim is agent and the codexMaterialize feature flag is enabled.
Impact
The synced content can affect Codex behavior across projects using that home directory; the reviewed source does not establish that the content is hostile.
Mechanism
The package combines the HQ profile and capability documents, then replaces ~/.codex/AGENTS.md with the generated content.
Evidence
dist/bin/sync-runner.jsdist/agent-codex-instructions.js~/.codex/AGENTS.md