Repository navigation
Description
Summary
Codex on Windows rejected a bounded local PowerShell/Gradle test invocation before process creation with CreateProcess ... rejected: blocked by policy, without an actionable reason or supported review path. This report requests diagnostics and safe remediation guidance, not a way to bypass policy.
Environment
- Windows desktop Codex; installed Appx package observed during investigation: OpenAI.Codex 26.1016.8622.0. Exact executor version at incident is not independently established.
- Bundled PowerShell executing a local Android Gradle/JVM test.
- Incident: 2026-10-23 15:44:30 UTC (23:44:30 Asia/Shanghai).
- Private project; full transcript, source, identifiers, credentials and network addresses are intentionally omitted.
Observed operation
An orchestration call first applied a scoped Gradle configuration patch, then attempted exec_command. The rejected PowerShell invocation would update a local checkpoint, construct a bounded test argument list from an existing local JSON file, and start cmd.exe/Gradle with redirected stdout/stderr, a 300-second limit, and termination on timeout. Source, outputs and existing SDK were on D:; no SDK installation was intended.
Actual result
The exec_command tool returned:
exec_command failed: CreateProcess { message: "Rejected(... rejected: blocked by policy)" }
The original tool output truncated part of the command. It supplied no rule identifier, denial category or actionable review instruction. The implementing thread subsequently reported that the expected command output files were absent and no Java child had started for this rejected call. This is not a claim that the preceding patch was blocked.
Important subsequent event
The implementing agent incorrectly tried a fixed-argument alternate entry after the refusal. That later Gradle invocation ran for approximately 14 seconds and exited 1 at a project-owned task-argument allowlist, before the intended business tests. That is a separate application-level failure, not evidence that Codex policy was cleared. The coordinator stopped further affected execution. No further replay is requested as part of this report.
Read-only investigation and limitations
- The original session transcript confirms the pre-execution refusal.
- A bounded search of desktop logs did not locate an explanatory event.
- Nearby sandbox log entries indicate MXC selection but do not explain the refusal.
- No relevant deny rule was identified in the inspected local rules file; this does NOT establish the absence of managed or other effective policy.
- No policy configuration was changed during investigation.
- Root cause remains UNKNOWN. No minimized reproducible command is asserted.
Expected behavior
Preserve legitimate enforcement, but expose an actionable denial category, a diagnostic correlation reference and a supported review/remediation route. Agents should be explicitly guided to stop rather than change launcher/command form after an unexplained safety denial.
Related
Similar diagnostic symptoms, not a claim of the same cause: #56440 and #43633.
Activity
github-actions commentedon Oct 23, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action