The source confirms an automatic, agent-only write to Codex global instructions, enabled by default and disabled only by an explicit environment opt-out. This supports a warning for agent configuration capability; the inspected source does not establish a separate credential attack or an install-time control-surface mutation.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
A completed sync by an agent identity, unless HQ_AGENT_CODEX_MATERIALIZE is set to 0.
Impact
The synced text becomes global Codex instructions for subsequent runs and can change agent behavior.
Mechanism
The runner reads the synced personal agent profile and capability documents, then writes their combined text to the Codex home AGENTS.md.
Evidence
dist/bin/sync-runner.jsdist/bin/sync-runner-post-sync-flags.jsdist/agent-codex-instructions.js