Skip to content

Windows Agent Build Blocked by Unidentified Policy #43629

Open

Description

@romelferdous

Error: exec_command failed: CreateProcess; rejected: blocked by policy
Call: call_SUPxi9zq78LDiVQgPZwFUq7G
Time: 2026-09-07T01:56:05.816Z
Please identify the enforcing rule and authorized resolution.

Activity

  1. added
    bug
    windows-os
    sandbox
    tool-calls
    on Sep 8, 2026
  2. github-actions commented on Sep 8, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. rob-reynolds commented on Sep 15, 2026

    @rob-reynolds

    Unexplained pre-execution rejection of authorized file restoration

    Additional occurrence in the VS Code extension 26.5908.31748 on Windows x64. Suspected approval-review issue, not a confirmed root cause.

    Observed

    On Windows, an explicitly authorized source restoration was rejected twice by the agent shell tool exec_command, before PowerShell process creation. The returned error contained:

    exec_command failed: CreateProcess
    Rejected("...powershell.exe -NoProfile -Command ... rejected: blocked by policy")
    

    The session reports danger-full-access / unrestricted filesystem and approval policy never. No elevation override was requested. The user explicitly authorized the restoration, then reaffirmed full access. No more specific policy reason was returned.

    Intended operation

    1. Verify SHA-256 of nine current files and their preserved backups.
    2. Verify the preserved replacement DOCX against an expected SHA-256.
    3. Copy that DOCX over one reviewed file.
    4. Remove two exact, individually named, already archived files.

    No recursive deletion, wildcard target, raw git, credential access, network transfer, or lifecycle-record editing was requested. Content lifecycle locks were acquired through the supported manager before each attempt. After rejection, status showed no edits; the locks were released without completion.

    Other filesystem operations, including a separately reviewed cleanup using the same shell tool, succeeded in this session. This is not evidence of a general inability to write the workspace.

    Expected

    An authorized, bounded restoration should execute if allowed. If a separate safety rule prohibits it despite the displayed permission settings, provide an actionable explanation identifying the restriction and supported resolution.

    Actual and impact

    Generic blocked by policy before process creation, with no actionable reason. The agent cannot distinguish a legitimate restriction from a review false positive and cannot finish the authorized restoration. An operator-run script has been prepared; the agent has not used another execution route to evade the rejection.

    Investigation requested

    • Identify which approval/review layer issued this rejection.
    • Determine whether this specific command was correctly classified.
    • Explain why unrestricted access does not resolve it, and improve the error if that behavior is intentional.
    • Identify a supported recovery that preserves safety review.

    This report intentionally omits customer names, clinical content, full local paths and conversation identifiers. Exact command evidence remains local and can be provided privately if needed. The rejection alone does not establish that PowerShell, the content lifecycle manager, or the language tools are defective.

    Follow-up: repeated refusal and permission checks

    The operator successfully performed the original restoration directly in PowerShell. A later agent request to remove one exact, SHA-256-verified, backed-up obsolete CEL file was again rejected before process creation with blocked by policy. Other authorized file overwrites and supported artifact generation continued to succeed.

    Read-only checks found:

    • The target file is not read-only.
    • File and parent-directory ACLs grant Authenticated Users Modify access, with no deny entry shown.
    • The session still declares unrestricted filesystem access / danger-full-access and approval_policy = never.
    • Neither the workspace nor user Codex config contains approval_policy, approvals_reviewer, or sandbox_mode overrides.

    The current documentation describes automatic approval reviews for interactive approval policies: https://learn.chatgpt.com/docs/agent-approvals-security . The observed rejection does not identify the internal rejecting component, so we cannot establish that the documented auto-review feature is responsible. No settings have been changed to route around the refusal.

    Please identify the actual enforcing layer/rule and a supported resolution. Is this a configuration mismatch, intentional additional enforcement, or a false positive? The generic error is insufficient to tell the operator what to fix.

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

    bugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions