Skip to content

Windows desktop: diagnostic guidance for "CreateProcess / blocked by policy" #53034

Open

Description

@RuI386

Observed behavior

On Windows, a local synthetic validation launch through Codex desktop on 2026-10-10 at approximately 13:11:26 UTC+08:00 returned CreateProcess / blocked by policy.

The available error output is truncated and does not identify a specific rejecting rule or error code. The installed version has not been verified for this report.

A subsequent attempt to use in-app feedback reported that feedback permissions could not be verified. It is not known whether these two failures are related, and there is no confirmed successful in-app submission.

Request for diagnostic guidance

What is the supported way to obtain a minimal diagnostic record identifying the component or policy that rejected this launch, and determine the conditions under which the intended local validation is permitted to run?

This is a request for diagnosis and a supported resolution, not a request to bypass safeguards. Please indicate which minimal, non-sensitive diagnostic fields are required and where they can be obtained, especially when in-app feedback is unavailable.

Disclosure scope

This consultation intentionally includes no account identifiers, business data, commands, conversation contents, screenshots, logs, credentials, or authorization codes.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 11, 2026
  2. jjones447 commented on Oct 12, 2026

    @jjones447

    [pc2-codex-13] Additional retained Windows desktop observation for the diagnostic question in this existing issue; no duplicate issue or new reproduction.

    On 2026-10-06 at 03:14:17.591 UTC, an authorized read-only HTTPS/static-asset verification command submitted through exec_command was rejected before CreateProcess with “rejected: blocked by policy” (result recorded at 03:14:17.767 UTC). No child process or planned HTTP request ran. The retained execution context reported approval_policy=never / danger-full-access / disabled filesystem permission profile, but these supplied settings do not prove the effective managed policy or identify the rejecting layer. The shell-wrapper diagnostic was truncated; the complete original tool arguments are retained privately. The desktop app version has not been independently verified, and a CLI version is not being substituted for it.

    The same operation has not been retried, split into another helper, moved to another browser/host, or run with altered rules/credentials. No current-config result is being claimed as the historical decision. A separate browser-only transport-closed observation is already reported at #25848; we do not infer a common cause.

    Please provide the supported minimum private correlation route for the original timestamp/session/turn/tool-call record, and which diagnostic fields can identify (1) enforcement layer and rule/decision ID, (2) intended deny versus defect, and (3) an allowed bounded verification procedure if applicable. If an affected-chat feedback/session submission is required, please specify the minimum content and identifier needed; raw transcripts may contain customer/private source data and have not been published or shared automatically.

    Official managed-configuration/troubleshooting guidance establishes that enforced requirements can constrain local execution and that shared logs must be reviewed, but does not establish the cause of this specific historical rejection: https://learn.chatgpt.com/docs/enterprise/managed-configuration ; https://learn.chatgpt.com/docs/reference/troubleshooting . This is a supported diagnosis/remediation request, not a request to bypass a denial. No account/client identifiers, endpoints, paths, secrets, raw command or private logs are included. [pc2-codex-13]

  3. michidat-hub commented on Oct 16, 2026

    @michidat-hub

    Additional Windows desktop observation for the diagnostic question in this issue (not a new reproduction attempt):

    • Original rejection: 2026-10-15 04:11:03 UTC, tool call call_fb6af76be07a4e7893bcb0bcc9ccf9c8, session 01a12bba-074a-7143-96ba-cf384897dd02, turn 01a13dc0-16f7-7161-865a-974a383ceba2.
    • A composite local PowerShell command to start an isolated Node server and run a browser validation was refused before process creation: exec_command failed: CreateProcess ... rejected: blocked by policy. The recorded result does not name the deciding rule or enforcement layer.
    • The originating turn reports approval_policy=never, sandbox_policy=danger-full-access, and permission_profile=disabled. There was no approval prompt or auto-review rationale in the record.
    • A read-only codex execpolicy check of the exact original invocation against the user-level local .rules file returned matchedRules: []. This checks only that local file; it does not clear managed or desktop policy.
    • No system %ProgramData%\OpenAI\Codex\requirements.toml directory was present, and the desktop app logs for that date did not contain this call ID or the phrase blocked by policy. Neither observation rules out a remote or other policy layer.

    Could a maintainer identify the supported private correlation route for this call and tell us how to obtain the deciding policy/rule and an allowed bounded validation procedure? We are not asking to bypass the denial. No command body, project files, raw transcripts, credentials, or personal paths are attached.

  4. michidat-hub commented on Oct 16, 2026

    @michidat-hub

    Follow-up diagnostic detail from a read-only inspection of the original rejected invocation (no rerun): the submitted PowerShell command contained both a Start-Process operation and a loopback HTTP URL for the owned local validation server. It did not contain UseShellExecute or a browser executable name. This combination may be relevant to the command-text matching discussed in #43633, but we have not established that it caused this denial. Could a maintainer correlate the already supplied call/session/turn with the actual deciding rule and advise the supported normal validation route? No command body, private path, source file, credential, or raw log is attached.

  5. michidat-hub commented on Oct 16, 2026

    @michidat-hub

    A new read-only diagnostic was itself rejected before process creation with the same blocked by policy shape. Its PowerShell script would only read the privately retained JSONL record and report positions of two literal search strings, Start-Process and http://127.0.0.1; it did not invoke Start-Process, open the URL, or launch a browser. No stdout/exit code was produced. This is consistent with the flattened-token Windows classifier in codex-rs/shell-command/src/command_safety/windows_dangerous_commands.rs and the behavior discussed in #40060 and #52543. It is not an instrumented trace proving that the earlier Red3D launch was denied by that exact branch, although the original command also contains both elements and had approval_policy=never. Please advise the supported resolution for the affected scheduled task and a way to obtain the deciding reason without triggering the same text classifier. No raw command, private path, transcript, credential, or source file is shared.

  6. emmakrystal0-stack commented on Oct 18, 2026

    @emmakrystal0-stack

    Additional redacted Windows desktop diagnostic (2026-10-18), submitted with the user's permission.

    • Installed desktop package: 26.1013.4894.0. The local bundled Codex executable reports 0.163.0-alpha.10.2; this alone does not identify the exact enforcing component.
    • An authorized local GUI application launch and a loopback connection probe were combined in one PowerShell invocation. The tool rejected it before execution with CreateProcess ... rejected: blocked by policy, without a rule ID or actionable approval route.
    • The execution context reports approval_policy=never and danger-full-access.
    • A subsequent read-only check found the application running without its required debugging argument and no listener on the configured port. This explains the current connection failure, but not the earlier policy decision.
    • A targeted search of same-day desktop logs found no rejection detail. A targeted scan of the local user rules file found two allow decisions and no deny decision. The standard machine-level requirements file was absent. These findings do not exclude other enforcement layers.

    The flat-token Windows classifier discussed in #40060 is a plausible source-level explanation because the original invocation contained a local launch and an unrelated loopback URL. We have no instrumented attribution to that rule in this installed runtime. No safety rules were weakened, and the denied launch was not split or moved to another launcher to evade the refusal.

    Could a maintainer identify the supported private correlation route and provide a supported remediation or permitted verification procedure? No customer documents, source URLs, account names, credentials, screenshots, raw transcripts or full logs are included.

  7. emmakrystal0-stack commented on Oct 18, 2026

    @emmakrystal0-stack

    Follow-up to my 2026-10-18 diagnostic: read-only analysis now uses the original retained invocation and the published rust-v0.163.0-alpha.10.2 source, matching the version reported by the executable paths of the currently running Codex processes.

    PowerShell Parser.ParseInput reports zero syntax errors. The launch CommandAst contains no URL; the only URL-bearing CommandAst is a separate Python connection probe. Offline token examination of the unchanged original script satisfies the flat-token URL-plus-launch predicate at windows_dangerous_commands.rs lines 35–50. The same tag maps a dangerous unmatched command with AskForApproval::Never to Forbidden, and DangerousCommandMatch::Other to the generic error.

    This establishes that the original command has the reported cross-command false-positive shape in the matching published classifier. It is not an instrumented execution trace of the original policy decision, nor a run of the original command. No policy configuration, executable, or launcher was changed. Please advise a supported product fix or exact review path.

  8. popolvuh-lyn commented on Oct 30, 2026

    @popolvuh-lyn

    Additional request for diagnostic guidance; the blocked action has not been retried.

    The intended, user-approved operation was an offline project-local initialization using an already-installed Node executable: validate a public manifest, create an independent local service key/configuration inside the project's own directory, then exit. The intent did not include starting a service or making network requests.

    The execution assistant reported “CreateProcess … rejected: blocked by policy”, no process start, and no exit code. This is a retained assistant summary; the original rejected tool request/response, decision or rule identifier, exact rejection timestamp, installed client version and effective enforcement layer are unavailable. We cannot attribute this case to automatic review, Windows permissions, or any proposed classifier or rule-matching mechanism.

    A later authorized read-only check confirmed that the retained receipt file matched its previously recorded SHA-256 and found no initialization output directory. It did not retry initialization, execute Node, read private keys, or change permissions. Missing output files alone do not prove that no process ever existed.

    Could a maintainer clarify the supported minimum route to obtain the non-sensitive per-call rejection reason, or the normal permitted handling of this offline local-initialization intent when historical details are not exposed? If private correlation is required, please specify the minimum fields and the appropriate private channel rather than requiring a full session transcript.

    No project name, domain, private path, command body, account/session identifier, source code, credentials, user files or logs are included. We have not changed security rules, switched executors, or rerun the denied action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions