Skip to content

Windows desktop: local QA app Start-Process rejected before PowerShell creation without policy provenance #55721

Open

Description

@330114067

Component and installed environment

  • Codex Windows desktop, observed October 2026.
  • Currently inspected Windows Appx package: 26.1013.4894.0.
  • Currently inspected bundled CLI: 0.163.0-alpha.10.2. This is a current observation, not attestation of the binary that evaluated the historical request.
  • Windows version reported by the diagnostic app-server: 10.0.26200.
  • Subscription details are not included in this public report.

Observed problem

An explicitly authorized local QA desktop-app launch was rejected by exec_command before PowerShell was created:

exec_command failed: CreateProcess ... Rejected(... rejected: blocked by policy)

The surfaced result did not include a numeric OS error, matched rule, policy ID, decision source, or actionable remediation.

The desktop process was not created. IPC and page readiness were not reached. This is not a demonstrated application-startup failure.

Intended command shape (not a minimized runnable reproducer)

The single original PowerShell -Command string contained:

  1. Four process-local environment assignments for the test connection and isolated data locations.
  2. Creation of the dedicated test directory, piped to Out-Null.
  3. Start-Process for the existing local QA desktop executable, specifying its working directory, visible window, stdout/stderr file parameters, PassThru, and stop-on-error.
  4. A JSON projection of returned process metadata.

The original command does not contain a delete command. No alternative executable request, split-command workaround, proxy, or encoded command was attempted after the refusal.

Recorded permissions and checks

The rejected turn recorded:

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

Read-only follow-up checks:

  • PowerShell Parser.ParseInput of the unchanged original command as DATA: zero syntax errors, seven top-level statements.
  • Stdout/stderr handling uses Start-Process -RedirectStandardOutput/-RedirectStandardError, not PowerShell redirection operators.
  • Official codex execpolicy check against the visible existing user rules, using the whole original PowerShell argv: {"matchedRules":[]}, exit 0.
  • The visible user file has 57 allow entries and no prompt/forbidden entries. Inspected project/ancestor/machine rule directories were absent.
  • A standalone read-only app-server probe from the original working directory returned configRequirements/read: requirements=null; this does not establish the original live execution-tool policy.
  • No matching Windows CodeIntegrity, AppLocker or Defender event was found in the inspected incident window. Absence of a logged event is not proof that every OS mechanism is excluded.

These checks do not prove that compound-command handling caused the rejection or that a built-in, managed, or execution-service policy is absent. The normal rules checker is not being presented as a full effective-policy verdict.

Existing private feedback

A sanitized in-app feedback/upload report completed successfully, with logs disabled, no attachments and no original conversation attached. Its returned correlation ID is not an independently verified support-ticket number or unlock decision.

The private correlation details and original Call ID can be shared through a maintainer-provided private support channel. They are intentionally not published here.

Requested maintainer response

  1. How can the original Call ID be privately correlated with the winning policy decision?
  2. Which component, policy/rule ID or internal rejection mechanism can produce this response for the described non-deleting launch under the recorded mode?
  3. Is this intended enforcement, a command-classification issue, configuration propagation, or another tool implementation problem?
  4. Is there an applicable official fixed build? Please identify its version and supported rollout/rollback path.
  5. If configuration or admin action is required, which exact owner/control should be used, and how should effective release be verified without bypassing safeguards?

We request a formal supported resolution, not removal of organization/OS protections or an alternate route around the refusal. Please provide an actionable decision reason or the canonical issue and applicable remediation.

Related diagnostic-gap reports: #51791 and #54610. A shared cause is not established; force-delete explanations in those discussions are not assumed to apply to this command.

Privacy and current status

No credentials, account contact details, source code, original commands, private paths, business data, raw logs, session IDs or Call IDs are included. No security setting or product source was modified. Native acceptance remains NOT_RUN. This report was prepared and submitted with the affected user's explicit request to pursue official support.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 21, 2026
  2. github-actions commented on Oct 21, 2026

    @github-actions
    Contributor
  3. 330114067 commented on Oct 21, 2026

    @330114067
    Author

    Read-only follow-up after the duplicate pointers to #54942 and #55177: I inspected the public source tag matching the currently installed bundled CLI, rust-v0.163.0-alpha.10.2. No new native execution request or workaround was attempted.

    There is now a concrete source-level explanation to check, rather than only a generic policy-provenance question:

    1. codex-rs/shell-command/src/command_safety/powershell_tree_sitter.rs (blob a904e9249d8e76eb237c13a2654d098218d8facc, lines 4-14, 43-52, 127-169) lowers only a deliberately small literal CST subset. The original script includes environment assignments, variable/property references and an object projection, outside that subset.
    2. codex-rs/core/src/exec_policy.rs, lines 876-903, falls back to the original argv when lowering does not produce plain commands.
    3. codex-rs/shell-command/src/command_safety/windows_dangerous_commands.rs (blob cc1ae671c831130dd33d11bac690d3052430b6dd, lines 20-55 and the URL helper) scans a flat best-effort shlex token sequence. A URL anywhere in those words plus a token containing Start-Process is classified as dangerous. In this case the HTTP URL is process-local connection configuration; the Start-Process target is a local executable, not that URL.
    4. codex-rs/core/src/exec_policy.rs, lines 770-806, maps an unmatched dangerous command to Forbidden with Never, versus Prompt with OnRequest. Lines 1058-1118 can render DangerousCommandMatch::Other as the same generic blocked by policy message.

    Source links:

    Important limits: this is inspection of the currently installed version's matching public tag, NOT attestation of the binary that decided the historical request, and not a recovered evaluator trace. The original normalized candidates and winning decision remain unavailable. The earlier standalone execpolicy check remains only a local rule-file result; it is not claimed to exercise the full built-in heuristic.

    Could maintainers please confirm:

    • Does this opaque-script + URL/configuration + local process-start path explain the original refusal, and how can its runtime decision be privately correlated?
    • Is a user-reviewed OnRequest approval the supported resolution for this exact scoped local action in Desktop, and how should the effective setting/review opportunity be established without overriding any managed/platform rule?
    • Is the URL association behavior intentional or an overbroad classification, and is there a relevant official fixed build?

    We have NOT removed/moved the URL, split or rewritten the executable command, created a proxy launcher, added a blanket allow rule, changed configuration, or retried the native launch. No private paths, raw command, original correlation identifiers, credentials, or logs are included. Native acceptance remains NOT_RUN pending a verified supported resolution.

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