Skip to content

Windows Codex exec: opaque 'blocked by policy' during rollback ZIP verification (request for supported diagnosis) #56623

Open

Description

@smartprimedanillo-byte

Environment

  • Windows; Codex Desktop / executor exec. Exact app version and Windows build at the incident time have not been verified.
  • Original failure: 2026-10-22T23:17:15.891Z (20:17:15.891 America/Sao_Paulo).
  • Session ID: 01a1326b-964e-7682-9ba9-725484f43e89
  • Call ID: call_11ff5541adc14fe59966d6bd25a506fb

Observed behavior

The executor directly returned blocked by policy for a composite PowerShell invocation intended to extract a previously prepared rollback ZIP and verify its integrity in a local Windows development workflow.

The recorded call envelope is completed, but no child PID, exit code, explicit CreateProcess phase, or matched policy rule was provided. The evidence does not establish that the PowerShell process ever ran. The command combined several actions, so we cannot identify which suboperation, if any, caused the rejection. We have not retried the denied command.

Local read-only findings

  • %USERPROFILE%\.codex\rules\default.rules contained just two explicit allow prefix rules (git push and one local Node command). No visible forbidden rule in that file.
  • %ProgramData%\OpenAI\Codex\requirements.toml was not present at the inspected path. This does not rule out managed/cloud policy.
  • Rotated %USERPROFILE%\.codex\.sandbox\sandbox.YYYY-MM-DD.log files exist for October 21–24. A literal search of those files found numerous mxc entries but did not find blocked by policy, CreateProcess, forbidden, or denied. The unrotated .sandbox\sandbox.log was absent.
  • The original rejection was found in the session transcript and correlated to the call ID above.

Expected behavior

If this operation is disallowed, Codex should identify the denying mechanism or provide a supported way for an administrator/user to obtain an actionable reason or request formal review. No request to bypass restrictions.

Questions

  1. How can we determine whether this particular rejection came from .rules/execpolicy, managed requirements/Agent Security, or Windows sandbox process-launch enforcement?
  2. Is the original call's exact denying rule/stage available through a diagnostic API or /feedback? Which metadata should be supplied?
  3. What is the supported review route when codex execpolicy check for visible rules is not conclusive and the default sandbox log is rotated or absent?

Privacy and safety

Only sanitized metadata is supplied. No credentials, business data, ZIP contents, file-system transcripts, or application logs are included. The objective is diagnostic guidance; production services and security settings have not been modified.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 24, 2026
  2. smartprimedanillo-byte commented on Oct 24, 2026

    @smartprimedanillo-byte
    Author

    Reviewed the five reports suggested by the duplicate-detection bot (#56227, #55914, #56513, #56590, #56440). They describe a similar opaque policy rejection, but none establishes the cause of this specific rollback-ZIP call. Keeping this issue open pending maintainer triage; please link/close it as a duplicate if a common tracked cause is confirmed.

    For this incident, DENIAL_STAGE and POLICY_SOURCE remain UNKNOWN; the completed call envelope is not proof of process launch. We have not retried, split, or rerouted the rejected ZIP extraction/verification. We are requesting a supported diagnostic correlation/review route using the session ID, call ID and timestamp already in the issue. Which private channel can accept a sanitized original-call record and the relevant rotated sandbox log, and can a maintainer retrieve an enforcing-layer or decision identifier from those IDs? No bypass or policy change is requested.

  3. smartprimedanillo-byte commented on Nov 1, 2026

    @smartprimedanillo-byte
    Author

    Additional independently recorded event; a common cause with the original rollback-ZIP incident is NOT established.

    On 2026-11-01 at 18:35:17.430Z (15:35:17 BRT), a composite Windows executor call was rejected with blocked by policy. The intended operation was current read-only preflight followed by requesting legitimate local Windows UAC for an explicitly approved synthetic-only test window. No production changes, real OAuth/credentials, campaign writes or security-policy changes were requested. No UAC launch/entry receipt, scenario directories or test certificate were created. We did not retry, split or reroute the rejected operation.

    Verified transcript identifiers:

    • Session: 01a16b7a-55d5-7491-81fc-88ad508dc0d8
    • Outer exec Call ID: call_4cfaad7bbcaf4d858174efe9a4ae7bfd
    • Call timestamp: 18:35:17.354Z; rejection timestamp: 18:35:17.430Z.

    The executor reported a CreateProcess rejection envelope, but the enforcing rule/layer and precise denial stage remain unknown; the composite call does not establish which suboperation was denied. Read-only inspection after the event observed Codex Desktop package 26.1027.3384.0 and Windows 11 Pro 10.0.26200/build26200. The current default.rules contains two allow rules only. The rotated sandbox.2026-11-01.log has no literal blocked by policy or explicit deny/forbidden match. This does not exclude managed requirements or other enforcement.

    Can a maintainer retrieve the denying decision identifier from these IDs, or provide an official review/private diagnostic route? We are not requesting a bypass or changing protections. The original ZIP event remains separate; no additional issue or monitoring job has been created. Only sanitized metadata is included here; no commands, credentials, business data or raw logs are attached.

  4. smartprimedanillo-byte commented on Nov 6, 2026

    @smartprimedanillo-byte
    Author

    Additional independent Windows executor denial; a common cause with the original rollback-ZIP event or the 2026-11-01 UAC event is not established. Please treat this as a separate diagnostic data point, not as proof that the same rule matched.

    On 2026-11-06 at 11:36:57.897Z (08:36:57 BRT), a single composite PowerShell request to verify and clean up an isolated Product Ads Task Scheduler fixture was rejected before a PowerShell PID or exit code was returned: exec_command failed: CreateProcess { message: "Rejected(... blocked by policy)" }. We did not retry, split, reroute, or change policy/Smart App Control.

    Identifiers from the original transcript:

    • Session: 01a16b7a-55d5-7491-81fc-88ad508dc0d8
    • Outer exec Call ID: call_f90ca6dcd90c44c6a30b473743c0c760
    • Call timestamp: 11:36:57.542Z; denial timestamp: 11:36:57.897Z.

    The intended operation was limited to rechecking the identity of synthetic fixture run 6ddad057320f4d5d82c05fcf21aabbbd, stopping its own Node PID 26760, and removing only its three named TEMP fixture files and empty root. Because the request was composite, we cannot attribute the rejection to a substep. Read-only checks at 13:18:17.974Z still found PID 26760 with the original birth time and matching executable/command hashes; its task was absent and it had no listening socket. No production bot or Mercado Livre operation was involved. We are withholding the full command line, SID, and local path from this public comment.

    Can a maintainer identify the enforcing layer, matched rule or decision ID for this Call ID, and provide an expressly admitted procedure for cleaning only this orphaned fixture? Which private support channel should receive the sanitized original-call record and any additional logs? We are not asking to bypass policy or to treat this event as a certificate for deployment. The existing issue monitor remains unchanged; no duplicate issue was created.

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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions