Skip to content

Windows: prelaunch "blocked by policy" rejections do not expose the denying evaluator or a supported recovery path #59809

Open

Description

@hyeonseokhwang

Environment and evidence limits

  • Windows, PowerShell 7, Codex CLI tooling with an installed 0.162.1 executable.
  • We compared the installed executable with a retained standalone 0.162.1 copy and inspected official source at rust-v0.162.1 (commit 092d3acd6bec3e3a14bdc7e7a2810ab628ab759d). This does not establish which backend, effective policy, or binary handled each earlier incident.
  • This report contains observations, not a confirmed diagnosis or a minimal failing reproduction.

Observed behavior

  1. A normal exec_command request was rejected before shell/native process creation. Its intended work was offline Node.js preparation: hash existing local input files and create new JSON metadata files. It did not request a browser action or policy change.
  2. The visible tool error included exec_command failed: CreateProcess, Rejected, and the exact fragment rejected: blocked by policy. The displayed command was truncated (2383 chars truncated). No matched rule, evaluator identifier, full underlying error object, native process ID, or session handle was exposed.
  3. Separately, one permitted benign request, cmd.exe /d /c echo LI_POLICY_PROBE, returned exit 0 and the expected output. It did not expose the evaluator trace and does not establish why the other request was rejected.
  4. In a later attempt to load project-local policy through the normal seat startup procedure, the project trust entry and a project-local rules file were placed and read back. Launching the seat restart helper was then itself rejected by tool policy before the shell/helper started. Thus staging succeeded, but startup, effective loading, policy-check output, and the originally blocked operation remain unverified.

We preserved the stopped state. We have not completed the rejected restart through another interface or executor, and have not replayed the rejected operations.

Expected diagnostics / support request

Could the rejection expose a stable reason code, the denying policy layer/evaluator, and a sanitized explanation of whether a command rule was loaded and considered? Please document which supported diagnostic or permission-resolution procedure applies when a prelaunch rejection prevents the normal startup action needed to load project-local rules.

We cannot attribute these incidents to the Windows dangerous-command classifier from the available runtime evidence. Source predicates alone are insufficient. An explicit-file policy check would also not prove that an already-running session loaded that file.

Reproduction status

The original commands contain private workspace details and are not included here. We do not yet have a sanitized command that reproduces the failure. The harmless echo above is a successful control only. Please advise which bounded diagnostic records would help identify the effective evaluator without replaying the blocked operations or disclosing credentials and private command contents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIenhancementsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions