Repository navigation
Description
Codex CLI pre-process policy rejection without a rule or justification
Observed behavior
On Windows, Codex CLI 0.164.0 rejected an authorized local maintenance command before creating the PowerShell process. At 2026-10-28T01:21:29.211544Z, the tool reported exec_command failed: CreateProcess ... rejected: blocked by policy. The returned error did not name the policy source, matching rule, or justification. The long command was truncated in the error, so we do not have a complete command input from that error for a faithful policy replay.
The invocation header reported model glm-5.3, provider ZAI, approval never, sandbox danger-full-access, and reasoning effort max. These header values are observations, not proof that the rejected action was permitted by every effective policy layer. The executable reported codex-cli 0.164.0; SHA256 was 6f267830b029ee25d9339864aa867cd45de9f8fd4c5ea007d2e63c13a0c66d36.
Existing evidence and limits
The intended command would acquire maintenance locks, stop selected services, take a cold backup, and install a prepared package. The rejection occurred before service mutation. Independent read-only checks found all original runtime files unchanged and the original service processes still running. The CLI subsequently exited normally after writing its failure report; this exit did not mean deployment succeeded.
A static codex execpolicy check using the existing user rule file and only the observed PowerShell executable/-NoProfile/-Command prefix returned no matching rules. It did not include the full command body or all managed layers, so it does not establish permission or identify this refusal's source. A presence-only check found no Windows system requirements.toml at the documented ProgramData location. Other policy sources have not been excluded. No configuration or rules were changed, and no denied maintenance command was retried.
No minimal reproduction has been established. The retained private evidence can identify the original UTC event and thread through an appropriate private support route, without uploading the raw session by default.
The verified original executable also completed --help, doctor --help, and debug --help with exit code 0. Those help surfaces did not document an exact refusal-event selector or decision-audit export. The doctor help described broad installation, configuration, authentication, and runtime diagnostics; the debug help listed models, app-server, prompt-input, and help. We did not run a doctor report or any debug subcommand. This limited help inspection does not establish that no other host interface exists.
Requested help
What supported diagnostic or audit entry point can identify the policy source, matching rule, and justification for this original pre-process refusal? If this event belongs to a different host component, please identify the supported intake for that component. We need the documented resolution path for the actual denial before scheduling another installation attempt.
Official reporting references
The official Troubleshooting documentation describes feedback from an existing chat and Codex GitHub issue reporting. The official Open Source documentation identifies openai/codex/issues as the Codex bug-report channel and asks for the component and version.
These are general reporting channels. They do not establish that the Codex maintainers own this machine's effective policy, that a support case has been accepted, or that any deployment retry is allowed.
Activity
github-actions commentedon Oct 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Arnika1993 commentedon Oct 30, 2026
I experienced a closely related pre-process policy rejection on Windows 10 (build 19045), using Codex CLI 0.163.0.
Original incident:
The recorded session context immediately preceding the rejection included:
The attempted operation was local, offline documentation/evidence-package preparation. It was rejected before execution.
The error provided no policy identifier, matching rule, or actionable review procedure. I have not established whether this is the same underlying cause as the original issue.
The rejected operation was not retried or bypassed. Diagnostics have also been submitted through Codex feedback.
Could the maintainers identify the policy component responsible for this rejection and the officially supported diagnostic or review mechanism?
I am not requesting a security bypass or relaxation of policy controls.