Skip to content

Windows: authorized cleanup and read-only command-text diagnostic rejected before execution #50896

Open

Description

@GH66688

Environment

  • Codex Windows desktop package: 26.930.3930.0 (Get-AppxPackage readback).
  • Affected task context: approval_policy=never, sandbox_policy=danger-full-access.
  • Incident date: 2026-10-04, Asia/Shanghai.
  • No permission or policy changes; neither rejected request was retried through an alternative channel.

Observations

  1. A user-authorized recoverable directory move, hash verification and removal of the now-empty parent directory were submitted in one native PowerShell command. It was rejected by exec_command before process creation: CreateProcess ... rejected: blocked by policy. No cleanup occurred.
  2. The empty-directory removal did not use Force. A preceding directory enumeration in the same conditional expression did use Force to include hidden entries.
  3. A later read-only diagnostic request that would read public source and extract the previous command as text for character counts was also rejected before execution. It did not execute the cleanup command.
  4. The task record, focused runtime logs and four desktop log files did not expose the matched rule or a useful denial rationale.

Source-based hypothesis, not a confirmed internal trace

The public rust-v0.160.0 Windows dangerous-command scanner contains has_force_delete_cmdlet, which tests for a deletion command and a Force token within rough text segments. exec_policy.rs forbids a dangerous unmatched command when approvals are never. Complex PowerShell may fall back to the rough scanner. Please investigate whether unrelated enumeration parameters or quoted command names were misclassified. The inspected public source version is not asserted to identify every runtime component.

Requested resolution

Please identify the enforcing component and exact matched rule for these pre-launch denials, expose a useful explanation to the agent/user, and provide the supported review/recovery route for an already user-authorized recoverable cleanup. We are not requesting a global allow rule, disabling safeguards, or bypassing a denial.

References:

Personal paths, business documents, credentials and raw transcripts are omitted.

Correlation identifiers

  • Original cleanup tool call: call_WKZS6dy1owgj3joBrnVg7p7x (2026-10-04T14:30:42.307Z).
  • Read-only diagnostic rejection: call_bwnSb4gUxeyIDP9UXpI7moKT (2026-10-04T15:33:05.971Z).

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 4, 2026
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