Skip to content

Windows Codex returns “blocked by policy” without an actionable reason #57623

Open

Description

@wxmbmbwxm

On Windows, the current Codex desktop package is 26.1023.6123.0 and its CLI is 0.164.0. Local isolated test setup, a diagnostic request, and a cleanup request have each received “blocked by policy”; the specific decision and whether the incidents share a cause are unknown. The current session uses approval_policy=never and sandbox_mode=danger-full-access; the settings and version at each earlier rejection have not been verified. What supported diagnostics or fixes are available?

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 28, 2026
  2. binaryfire commented on Oct 29, 2026

    @binaryfire

    This is happening even in YOLO mode with Full Access permissions. Very frustrating

  3. yyh201816 commented on Oct 31, 2026

    @yyh201816

    Additional per-call evidence from a separate owner-authorized incident. The visible symptom matches this issue; we have not established that the underlying cause is the same.

    Environment

    • Codex desktop 26.1027.3384.0 on Windows 11 Pro, build 10.0.26300, x64.
    • Current installed/running Codex executable: 0.166.0-alpha.5.1. The running processes predate both rejections. An older thread header records 0.165.0-alpha.1.2; that header should not be treated as the affected runtime version.
    • Effective thread context: approval_policy=never, danger-full-access.

    Observed behavior
    Two exec_command calls were rejected at process creation while preparing a local Python deployment helper via a PowerShell literal here-string and Set-Content. The calls only attempted to write the local file; neither would execute the helper or start any remote service at that point. The user had explicitly authorized the deployment.

    The only returned explanation was CreateProcess Rejected / blocked by policy. No rule identifier, detailed reason, or actionable review entry was supplied. The local file was not created.

    Calls for internal trace correlation

    • 2026-10-31T02:40:07.942Z — call_823a0c9f7f864d6e9ff502741703c746
    • 2026-10-31T02:51:49.655Z — call_10b0a57b0e0e4ea09d64d9e6e263e88a

    The second draft removed firewall operations and required verified backup, isolated rehearsal, source-writer shutdown, and database validation before the helper could later activate anything. Its creation was still rejected.

    Read-only diagnostics

    • Both exact PowerShell command strings parse without syntax errors.
    • Read-only execpolicy checks against both original commands and the exact bundled PowerShell executable path reported matchedRules=[]; local default.rules contains only three unrelated allow rules.
    • The documented app-server startup configuration diagnostic returned configRequirements.requirements=null.
    • No local hooks.json was present in the checked user/project/system locations, and no inline hooks setting appeared in the checked config.toml files.
    • No corresponding local review-feedback record or explanatory Windows security event was found.
    • Other read-only commands and independent preparation work continue to run.

    Scope and uncertainty
    We cannot identify the rejecting layer from the evidence available to the agent. We are not claiming the denial came from Auto-review or that the action was necessarily a false positive. We have not disabled safeguards, retried through another tool, or changed permission settings.

    Request
    Please trace these two calls, identify the rejecting policy layer and reason, and provide the supported review or remediation route. If this is a required denial, please make the actionable explanation visible to the user and agent rather than returning the generic message alone.

    This report intentionally excludes server addresses, credentials, private keys, database content, project source, and the conversation transcript. A complete chat transcript should not be attached because it contains credentials.

  4. 1843773386 commented on Nov 4, 2026

    @1843773386

    Withdrawn by the author.

  5. Godmode-n1tr0 commented on Nov 10, 2026

    @Godmode-n1tr0

    Additional per-call evidence from our own TEST deployment. The visible symptom matches this issue; the underlying policy/cause has not been established.

    Environment and recorded permissions

    Codex Desktop on Windows, local delegated execution (not Codex Cloud), PowerShell 7.6.9. The exact Desktop and Windows build at the incident were not retained.

    The turn_context immediately before the rejected call records:

    {
      "sandbox_policy": { "type": "danger-full-access" },
      "permission_profile": { "type": "disabled" },
      "approval_policy": "never"
    }

    Intended action and actual result

    One user-authorized HTTPS GET /health/ready against our own internal TEST API, with normal TLS verification. The API implements individual/legal-entity registration, email confirmation, sign-in and licensing.

    The PowerShell wrapper verified the retained curl binary and would launch one child with a bounded timeout. This was a readiness read. No replacement/simplified reproduction command has been executed.

    The tool returned exec_command failed: CreateProcess ... rejected: blocked by policy before PowerShell/curl started. The retained receipt records no process, HTTP status, curl exit status, or DNS/TLS observation. The original tool response already contained a truncation marker, so it is not a complete command transcript.

    Correlation identifiers

    • Submitted: 2026-11-06T21:15:24.721Z
    • Terminal: 2026-11-06T21:15:25.275Z
    • Parent chat: 01a1401b-e384-7a23-84d6-9533441b2e58
    • Executor session: 01a1b24d-9b3e-7983-b0c6-05dd83551a34
    • Turn: 01a1b2b5-9c8c-7f40-b62d-958363a63e83
    • Call: call_6ed2c254f1114f5e82a006830ef8970b
    • A separate /feedback ID is not available in the retained evidence; the executor session ID above is not asserted to be that feedback ID.

    Read-only inspection on 2026-11-10

    The current chat permits network access. User config.toml has sandbox_mode = "danger-full-access" and windows.sandbox = "elevated", but no explicit features.network_proxy, permission-profile/domain rules, or allow_local_binding. The configured Windows implementation does not prove it enforced the original call under the disabled profile.

    No HTTP_PROXY/HTTPS_PROXY/ALL_PROXY/NO_PROXY values were present in the inspection process. CODEX_HOME/.sandbox/sandbox.log was absent at the inspected default home. These current observations do not establish the historical managed/effective policy or whether a proxy was active for this call.

    Request

    Could maintainers trace this exact event and identify the rejecting layer/rule or decision ID, confirm whether managed networking was active, and provide the supported diagnostic/remediation route for the original Desktop executor?

    We have not changed permission enforcement, weakened TLS, or retried the denied action through another executor. We are not asserting that this was Auto-review, a network-proxy denial, or a false positive.

    The sanitized excerpt below includes the retained rejection and context records. It excludes the full transcript, credentials, application environment, private API hostname/IPs and project source.

    Sanitized retained event (JSON)
    {
      "schemaVersion": 1,
      "preparedAtUtc": "2026-11-10T14:21:31.214567Z",
      "scope": "Sanitized retained diagnostic evidence only; no command execution or network retry.",
      "parentThreadId": "01a1401b-e384-7a23-84d6-9533441b2e58",
      "executorSessionId": "01a1b24d-9b3e-7983-b0c6-05dd83551a34",
      "feedbackSessionId": "NOT_AVAILABLE_IN_RETAINED_EVIDENCE; do not substitute the executor session id",
      "sourceTranscriptFilename": "rollout-2026-11-07T00-19-53-01a1b24d-9b3e-7983-b0c6-05dd83551a34.jsonl",
      "records": [
        {
          "sourceLine": 616,
          "timestamp": "2026-11-06T21:13:29.021Z",
          "recordType": "turn_context",
          "payloadType": null,
          "turn_id": "01a1b2b5-9c8c-7f40-b62d-958363a63e83",
          "approval_policy": "never",
          "sandbox_policy": {
            "type": "danger-full-access"
          },
          "permission_profile": {
            "type": "disabled"
          }
        },
        {
          "sourceLine": 645,
          "timestamp": "2026-11-06T21:15:24.615Z",
          "recordType": "response_item",
          "payloadType": "custom_tool_call",
          "call_id": "call_6ed2c254f1114f5e82a006830ef8970b",
          "tool": "exec"
        },
        {
          "sourceLine": 647,
          "timestamp": "2026-11-06T21:15:25.276Z",
          "recordType": "response_item",
          "payloadType": "custom_tool_call_output",
          "call_id": "call_6ed2c254f1114f5e82a006830ef8970b",
          "tool": null
        }
      ],
      "attempt": {
        "submittedUtc": "2026-11-06T21:15:24.721Z",
        "terminalUtc": "2026-11-06T21:15:25.275Z",
        "tool": "Windows exec_command",
        "shell": "PowerShell 7.6.9",
        "processCreated": false,
        "httpStatus": null,
        "dnsOrTlsObservation": false,
        "refusalStage": "CREATEPROCESS",
        "refusalMessage": "blocked by policy",
        "policyProviderAndRule": "UNKNOWN",
        "exactRetainedToolRejection": "exec_command failed: CreateProcess { message: \"Rejected(\\\"`\\\\\\\"C:\\\\\\\\\\\\\\\\Program Files\\\\\\\\\\\\\\\\PowerShell\\\\\\\\\\\\\\\\7\\\\\\\\\\\\\\\\pwsh.exe\\\\\\\" -Command '$curl = '\\\\\\\"'C:/Windows/System32/curl.exe'\\\\n\\\\\\\"'$curlLock = [IO.File]::Open($curl,[IO.FileMode]::Open,[IO.FileAccess]::Read,[IO.FileShare]::Read)\\\\ntry {\\\\n    if ((Get-FileHash -LiteralPath $curl).Hash -cne '\\\\\\\"'3345339164CF384EFF527B6C3160FEA8D849A4231EC6CA80513E3A739E505168') { throw 'RETAINED_CURL…672 chars truncated…gnostics.Process]::Start($info)\\\\n    try {\\\\n        if (-not $p.WaitForExit(20000)) {\\\\n            if (-not $p.HasExited) { $p.Kill() }\\\\n            [void]$p.WaitForExit(5000)\\\\n            throw '\\\\\\\"'OWNED_CURL_TIMEOUT'\\\\n        }\\\\n        [pscustomobject]@{ utc = [DateTimeOffset]::UtcNow.ToString('o'); curlExit = \\\\\\\"'$p.ExitCode }\\\\n    } finally { $p.Dispose() }\\\\n} finally { $curlLock.Dispose() }\\\\n'` rejected: blocked by policy\\\")\" }",
        "toolOutputAlreadyTruncated": true
      },
      "requestedOperation": {
        "method": "GET",
        "target": "https://<internal-test-api-host>/health/ready",
        "privateHostnameRedacted": true,
        "purpose": "Read readiness of owner's TEST API for registration, email confirmation, sign-in and licensing",
        "normalTlsValidationRequired": true,
        "wrapper": "PowerShell wrapper checks retained curl binary hash and launches a bounded child process. The retained error includes only a truncated command; no simplified replacement was executed."
      },
      "currentConfigurationObservation": {
        "observationDate": "2026-11-10",
        "currentChatNetworkEnabled": true,
        "userConfigSandboxMode": "danger-full-access",
        "userConfigWindowsSandboxImplementation": "elevated",
        "featuresNetworkProxyExplicitlyConfigured": false,
        "permissionProfilesOrDomainRulesExplicitlyConfigured": false,
        "allowLocalBindingExplicitlyConfigured": false,
        "proxyEnvironmentVariablesPresentInCurrentInspectionProcess": false,
        "sandboxLogAtDefaultCodexHomeExists": false,
        "historicalEffectiveManagedNetworkPolicy": "UNKNOWN",
        "fullEffectivePolicyChainEstablished": false
      },
      "excludedFromAttachment": [
        "full transcript",
        "conversation contents",
        "raw tool input",
        "secrets and credential values",
        "application environment",
        "private API hostname and IPs"
      ],
      "primaryReportSha256": "08511D5BCA43F31AEFDD72C734DCE9756AF4386F0ED5A7F2A83CAE8454118478"
    }
  6. tiendungeaknop-deptrai commented on Nov 16, 2026

    @tiendungeaknop-deptrai

    Additional sanitized evidence for the same visible Windows symptom; a shared underlying cause is not established.

    • Recorded denial: 2026-11-15T16:17:08.063376Z, CreateProcess ... rejected: blocked by policy, before process creation. The retained event does not expose a rule/reviewer ID or which subcommand was denied.
    • Operation: an explicitly authorized public-cloud pricing read/preparation combined with standard Windows UAC/S4U registration for an independent, finite STOP watchdog. No process or cloud allocation started. We have not retried, split, changed shells/executors, disabled safeguards, or elevated an equivalent command to evade the decision.
    • Current selected-host package: Windows desktop26.1111.2228.0, bundled Codex0.169.0-alpha.11.1. These versions were read later; the binary at the historical incident is not independently pinned. Current task context reports danger-full-access/approval_policy=never; this does not establish the historical full effective policy chain.
    • Read-only inspection: no default machine managed-requirements file/registry override was observed; the daily sandbox log has no matching rejection entry. A bounded original-log lookup did not recover the exact call ID. These negatives do not exclude cloud/account/other policy and are not proof of a false positive.
    • Official feedback/upload acknowledged the sanitized report with tracking reference no-active-thread-01a1e28d-bf59-79a1-9170-3297cd714475, promptHash:null. Explicit includeLogs:false, extraLogFiles:null, threadId:null: no conversation transcript, credential, media, private command or project/host identifiers were uploaded. That acknowledgement is not administrative execution permission.

    Could the Codex team route this tracking reference/timestamp to the actual policy-owning team, identify the governing decision or supported diagnostic correlation path, and return a bounded ALLOW/DENY or officially supported process-start/review route for this class of authorized operation? A required DENY with an actionable reason is an acceptable administrative outcome. We are not requesting a general safety bypass or treating silence as permission. No new duplicate issue is being opened; the original operation remains held.

    Official support-channel access update (2026-11-16 05:49 UTC): The documented Help Center route is the interactive support chat at help.openai.com. Standard HTTPS reads from the affected host of both the root and the official contact-support article returned HTTP 403 Forbidden. The read-only web surface can show the public instructions but cannot open an authenticated support-chat conversation; no interactive support/case tool is exposed in this execution context. No challenge was bypassed, no private session material extracted, and no unsupported Intercom API was called. No support case ID, human/team acknowledgement or administrative decision has been obtained. Could the maintainers route the existing feedback reference to the competent policy-owning/support team or provide an officially supported case-intake path accessible to this runner? This is the same incident, not a second feedback submission, and no denied operation has been retried.

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