The sync runner writes synced overlay content into Codex's global instructions file automatically by default, creating an agent-control risk that merits a warning. The inspected credential flows target Cognito and GitHub as expected, and the prepare hook only runs Husky.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
A sync completes for an agent identity; the behavior is on by default unless HQ_AGENT_CODEX_MATERIALIZE is exactly 0.
Impact
Synced content can change the agent's global operating instructions without a separate user command for that write.
Mechanism
The runner gathers the synced profile and capability documents, composes them, then writes and renames the result to ~/.codex/AGENTS.md, which Codex reads on later runs.
Evidence
dist/bin/sync-runner.jsdist/bin/sync-runner-post-sync-flags.jsdist/agent-codex-instructions.js~/.codex/AGENTS.mdpersonal/agents-profile.mdpersonal/knowledge/public/agent-capabilities/*.md