The default agent-sync path writes synced, behavior-bearing instructions into Codex's global instruction file, where they affect later runs; this meets the AI-agent control-surface rule for changing agent behavior beyond using the package. The credential requests inspected send tokens to the configured vault API and Cognito service for the package's sync and login functions, so the credential-exfiltration hints do not establish a separate attack.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
Running the `hq-sync-runner` command for an agent entity; enabled by default unless `HQ_AGENT_CODEX_MATERIALIZE=0`.
Impact
Synced instructions can steer Codex behavior beyond the sync tool's operation and persist across future runs.
Mechanism
Reads `agents-profile.md` and `agent-capabilities/*.md` under the sync root, composes their contents, and writes them to `~/.codex/AGENTS.md`.
Policy narrative
When the sync runner completes for an agent entity, it automatically copies the synced profile and capability instructions into `~/.codex/AGENTS.md`. Codex merges that file on every run, so the synced content can steer future agent behavior. The write is opt-out rather than requiring the user to request Codex instruction materialization.
Evidence
package.jsondist/bin/sync-runner.jsdist/bin/sync-runner-post-sync-flags.js