Repository navigation
Description
Summary
Codex repeatedly rejects a local, explicitly authorized simulation workflow before launching PowerShell. The only surfaced reason is "blocked by policy". Repeating explicit user confirmation did not change the result. Please identify the enforcing component/rule and provide an actionable supported resolution or fix an incorrect classification.
Environment (observed, not inferred)
- Date: 2026-10-16; user timezone Europe/Warsaw.
- Windows 11 Home, version 10.0.26200, build 26200.
- Installed Windows package: OpenAI.Codex 26.1007.9446.0.
- Bundled Codex engine version: not collected; package version is not an engine version.
- Local desktop execution, PowerShell, repository on drive D:.
- Local settings: approval_policy="never", approvals_reviewer="user", sandbox_mode="danger-full-access".
- Inspected user/project .rules files: 96 allow rules, no forbidden rules found.
- No custom local auto_review.policy or guardian_policy_config field found. This does not establish absence of managed/platform policy.
- Project checkpoint at diagnosis: 5dfeafc.
Observed sequence (do not rerun commands solely to reproduce this report)
- User requested an indoor drone SIM flight, recording, and live map refinement in RViz.
- Existing local services used loopback HTTP: atlas session service on port 8779 and deterministic SIM backend on port 8190.
- A proposed exec_command combined a POST to /api/start (saved atlas, refinement mode) with the project's existing local recording CLI.
- exec_command returned CreateProcess/Rejected before execution. No HTTP response, child process, new session ID or new recording was produced by the rejected action.
- The user explicitly confirmed this same SIM action twice. The same generic rejection persisted.
- Read-only shell commands, service GET requests, tests and Git synchronization continued to work.
Surfaced error, with private command text removed
exec_command failed: CreateProcess { message: "Rejected("<REDACTED_COMMAND> rejected: blocked by policy")" }
Application evidence
- Read-only GET requests to 8190 and 8779 returned HTTP 200.
- SIM backend: selected device e99_1, neutral/IDLE, video and ground truth ready, physical TX disabled.
- The previous R1 recording is sealed; no newer recording or R2 start artifact was found.
- A separate, earlier R1 flight failed after 89 seconds with HTTP timeouts and lost ORB tracking. Its shutdown validation failure is NOT the CreateProcess policy denial reported here.
- No attempt was made to replay the denied operation through a different shell, agent, GUI, or API route. No security settings or policies were changed.
Diagnostic limitations
- The exact per-denial timestamps and internal rule IDs were not exposed in the tool response.
- Diagnostic snapshot timestamp is included in policy-diagnostic-receipt.json; it is NOT asserted to be the denial timestamp.
- Two desktop log files for 2026-10-16 were searched. They did not contain the denied command's rationale. The unrelated earlier Git permission error and deprecated guardian setting warnings were not treated as causes.
- Local settings and successful GET requests do not prove that the rejected operation should bypass a legitimate higher-priority policy.
Requested resolution
Please expose the exact enforcing rule/category and reviewer rationale, clarify whether this is the Windows command classifier, managed execution policy, or another layer, and explain why explicit confirmation cannot resolve it. If classification is incorrect, fix it while retaining real unsafe-command controls. We are not requesting a broad allowlist or a safeguard bypass.
Potentially related report, NOT a confirmed duplicate
#54463
That report describes the same wrapper error but a different command pattern. Our diagnosis has not established its UseShellExecute classifier trigger.
Official reporting/reference pages
https://learn.chatgpt.com/docs/reference/troubleshooting
https://learn.chatgpt.com/docs/reference/slash-commands
https://learn.chatgpt.com/docs/sandboxing/auto-review
Curated diagnostics
The following files are embedded directly in this issue. The prepared ZIP is retained locally; no ZIP attachment is claimed. No full transcript, credentials, config.toml, videos, home map, or complete desktop logs are included.
policy-diagnostic-receipt.json
{
"checked_at_utc": "2026-10-16T04:19:01.160246+00:00",
"classification": "EXECUTION_POLICY_REJECTION_BEFORE_CREATEPROCESS_NOT_APP_HTTP",
"exact_tool_error": "CreateProcess Rejected: blocked by policy",
"specific_rule_or_rationale": "not exposed",
"user_confirmation": "provided twice; denial persisted",
"effective_local_settings": {
"approval_policy": "never",
"approvals_reviewer": "user",
"sandbox_mode": "danger-full-access"
},
"rules": {
"user_allow_rules": 90,
"repo_allow_rules": 6,
"forbidden_rules_found": 0
},
"desktop_log_search": {
"date": "2026-10-16",
"files_checked": 2,
"blocked_by_policy_matches": 0,
"auto_review_matches": 0,
"denied_matches": 2,
"denied_matches_relevance": "unrelated earlier git object-write analytics error, not this command"
},
"runtime": "HTTP8190/8779 healthy, last session R1 inactive FAILED, recorder idle, no R2 artifacts",
"limitations": [
"Local settings do not prove absence of platform or managed enforcement",
"Cannot identify rejected-action risk category from generic tool error",
"No retry via alternate shell/tool/agent/UI, no permission changes"
],
"independent_receipt": "policy-layer-diagnosis.json"
}runtime-checks.json
{
"source": "selected fields from existing read-only audit, not a fresh flight test",
"checks": [
{
"url": "http://127.0.0.1:8779/api/session",
"http_status": 200,
"session_phase": "FAILED",
"session_active": false,
"selected_device": null
},
{
"url": "http://127.0.0.1:8779/api/catalog",
"http_status": 200,
"session_phase": null,
"session_active": null,
"selected_device": null
},
{
"url": "http://127.0.0.1:8190/api/status",
"http_status": 200,
"session_phase": null,
"session_active": null,
"selected_device": "e99_1"
}
],
"no_R2_artifacts_found": true,
"latest_recording": "previous R1, sealed",
"app_and_OS": {
"package": "OpenAI.Codex",
"package_version": "26.1007.9446.0",
"OS": "Windows 11 Home",
"OS_version": "10.0.26200"
}
}tool-rejection.txt
Observed tool: functions.exec -> exec_command
Observed stage: CreateProcess rejection before requested command execution.
Error excerpt, private command body redacted:
exec_command failed: CreateProcess { message: "Rejected(\"<REDACTED_COMMAND> rejected: blocked by policy\")" }
User explicitly authorized the SIM start and recording twice in the affected chat.
The generic rejection persisted after both confirmations.
No policy rationale, rule ID, or action-specific risk classification was returned.
Exact per-denial time was not independently captured; do not treat a later diagnostic timestamp as that time.
This file is a curated excerpt of observed tool output, not a newly executed reproduction.
SHA256SUMS.txt
0a6a05fa960696a9ffdd27f0205e61eff543851ed70e7e050ebe67e7b57c5463 ISSUE.txt
78a116c0ca1d49dd5886c6ea65d658df7888183ea49dd4867b19eb8d9be8b46f policy-diagnostic-receipt.json
a1e57478eea20384cf089cadb2655424066cdbbfb3f04c25f89b9f410fa9e790 runtime-checks.json
5c881263021caec90b3a81df5ff8b145e1093fc1678b01fcec65341c2cc6a374 tool-rejection.txt
Submitted via GitHub CLI at the owner's explicit request. No in-app /feedback ID has been generated. Exact private command text and account-specific session identifiers are omitted.
Activity
github-actions commentedon Oct 16, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
CreateProcess: blocked by policy#53977Powered by Codex Action
JuliuszZawlocki commentedon Oct 18, 2026
Reproduced after the actual desktop/engine upgrade; sufficient RAM
Follow-up from the same reporter, 2026-10-18 (Europe/Warsaw). This is a new observation after the earlier stale-process checks, not a repeated assumption that the app updated.
Verified versions and resources
26.1013.40934, installedBuildVersion20770, release channelprod, status up_to_date.--version: codex-cli 0.163.0-alpha.10.2. Previous observation was 0.162.0-alpha.17.2; the binary directory also changed.New rejection
A combined PowerShell exec tool request would inspect the preserved container, start that existing SIM container, then read the local atlas catalog at
http://127.0.0.1:8779/api/catalog.The tool again rejected the command before process creation:
No action-specific rationale, rule ID, or reviewer trace was returned. No command output/environment values were returned from the rejected inspection. The SIM container remained stopped; no new refinement session, flight or recording was produced by it. Existing user authorization had not been revoked.
Subsequent selective read-only inspection, with no container start and no environment-value inspection, succeeded. It confirmed the preserved container, localhost-only port bindings, and retained workspace mount. This is not a successful reproduction of the start operation.
No alternate execution route, shell, agent, GUI or split execution was used to achieve the denied start. No security setting or binary was modified. A standalone HTTP host had started earlier; that is not a running ORB worker or flight.
Curated new diagnostic receipt
{ "date_local": "2026-10-18", "timezone": "Europe/Warsaw", "desktop_version": "26.1013.40934", "desktop_build": "20770", "updater_status": "up_to_date", "actual_engine_version": "0.163.0-alpha.10.2", "free_ram_gib_initial": 16.56, "free_ram_gib_after_docker_startup": 11.02, "required_free_ram_gib": 6, "docker_daemon": "started successfully", "sim_container": "preserved, Exited (255)", "denial_stage": "before CreateProcess", "denial_reason": "blocked by policy", "specific_rule_or_rationale": "not exposed", "new_flight": false, "new_recording": false }The original local
upgrade-policy-receipt.jsonhas SHA2567b3d9c1b8a4512ec7e7b0325c4c255b6ebf20794c7529d8b36954a53afe3c655. The curated JSON above adds the independently observed post-startup RAM value and omits local PIDs, paths and map data; it is not claimed to have that same SHA.Please investigate the exact Windows command-classification branch and expose the enforcing reason. A generic instruction to confirm again or merely restart/update no longer addresses this observation. We need a supported fix that retains actual unsafe-command controls, not a broad allowlist or bypass.
Version-matched static source investigation (two independent agents)
The public tag
rust-v0.163.0-alpha.10.2resolves to commit4ebc485ca321243727539187169425fcf972f2c4. This establishes the public source associated with the reported version label; it is not an assertion that a packaged executable has no additional build-specific changes.startcan match the URL-launch predicate. It need not be an actual shell command name or use that URL. Thus a Docker subcommand and an unrelated loopback GET fit a plausible false-positive predicate if whole-script fallback is selected.AskForApproval::NeverbecomesForbidden; supported interactive policy variants instead returnPrompt. This explains why another chat-level confirmation cannot by itself change aneverdecision, IF this is the effective branch.Otherdangerous-command match renders asblocked by policy, hiding the specific classifier reason.Scope of conclusion: version-matched static source identifies a concrete, plausible failure mechanism. We have not captured the effective parser origin, wrapper-trust decision, or rejecting-rule trace, so this is NOT proof that this exact branch caused the observed denial. The bundled runtime PowerShell wrapper's configured-shell identity also needs maintainer verification.
Why the upgrade did not establish a fix
PR #54076 was merged, but its
PowerShellLiteralclassification is absent from the source forrust-v0.163.0-alpha.10.2and stablerust-v0.163.0. It is present inrust-v0.164.0-alpha.3and the inspected main branch. The merge commit is not an ancestor of the installed-version tag (compare result: diverged, ahead5/behind63). Source inspection corroborates absence; release-number ordering alone does not establish inclusion.The PR is partial: it handles independently parsed literal commands and intentionally keeps conservative behavior for script state, pipelines, executable strings and wrappers. Consequently, we cannot recommend an alpha upgrade as a verified fix for this complex command, nor claim that splitting/rephrasing the rejected operation is an authorized solution.
Concrete maintainer-side resolution requested
startand a URL belonging to a separate local read operation in a compound script.never. Typed conversational confirmation is not equivalent to changing the active approval mode or resolving a real execution approval.No denied operation, inert reproduction containing the original command, local classifier test, policy edit or replacement binary was executed to collect this static analysis.
NonTrivialLiu commentedon Oct 22, 2026
This report illustrates why a generic “blocked by policy” response is insufficient for local simulation work. Please expose a privacy-safe diagnostic receipt: enforcing component, reason category, effective execution policy, whether a reviewer actually ran, whether a process started, and whether further human approval can resolve the block.
The reported
user/neversettings make it especially important not to label every pre-execution rejection “AutoReview.” Conversely, local settings alone should not be treated as proof that no higher-priority policy applies.A useful regression should distinguish the reported simulation-container start from the successful read-only checks, and verify that denial produces an actionable explanation without relaxing real command protections.
This is feedback on the evidence already in this issue, not a new reproduction. Repeatedly asking users to confirm an action without telling them which boundary rejected it is not a workable recovery design.