Skip to content

Windows: native application acceptance blocked before execution with no actionable approval path #54942

Open

Description

@gwhaley6886

Issue

A local Windows desktop application's release transition is blocked by an unexplained Codex execution rejection:

exec_command failed: CreateProcess; rejected: blocked by policy

The operation is a bounded native acceptance run of an owner-developed Electron application, followed by verification of its executable, backend, and interface. Promotion is conditional on genuine runtime acceptance; we are not asking to skip that requirement.

Reported environment and observed behavior

The local Windows Codex session reports approval_policy: never and danger-full-access. No enforcing rule, rule source, or supported scoped approval mechanism was returned. These settings do not establish which control caused the rejection.

Source editing, builds, and isolated tests have succeeded. The affected native acceptance operation has not been retried through alternative launchers. No security protections were disabled to work around this rejection.

The retained rejection and subsequent local reports establish the blocked invocation and the absence of an exposed approval path. A fresh minimal reproduction has not been established, and no new launch attempt was made for this public report.

Requested diagnostic and resolution guidance

Please identify the supported diagnostic and resolution procedure for this rejection. In particular:

  • How can the enforcing control and the scope of this specific rejection be established?
  • Is there a supported mechanism for authorizing the bounded native acceptance operation, or a documented reason it cannot be authorized in this execution context?
  • If private execution-host correlation is necessary, please provide a private channel for the retained invocation identifiers and sanitized diagnostic evidence.

We want either permitted execution or an actionable explanation, not instructions to disable safeguards or bypass an identified restriction.

Related symptom reports

Related reports include #53982 and #54543. Those involve different operations; a shared root cause has not been established.

Version and privacy limitations

Current desktop-app and bundled execution-component versions have not been freshly verified for this report. The exact current Windows build is also not included as a verified fact.

No private files, credentials, email address, local filesystem paths, conversation identifiers, raw logs, or conversation contents are attached. Retained private correlation evidence can be supplied through an appropriate private channel after review.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 17, 2026
  2. gwhaley6886 commented on Oct 18, 2026

    @gwhaley6886
    Author

    Follow-up: app version now verified locally; acceptance still blocked

    The latest read-only local delivery inspection reports Codex desktop app version 26.1013.3656.0. This is the version at that inspection; the app version at the original rejected invocation, bundled execution-component version, and exact Windows build remain unverified. This is not evidence that this version introduced the rejection.

    Since the original report, one frozen application candidate was prepared with the required interface changes and its matching backend. It passed seven isolated packaged-interface checks, four publication checks, and four artifact/configuration checks. Those are not native acceptance, and the candidate has not been launched, installed, or promoted. No shortcut or running-application changes were made.

    The remaining unavailable operation is genuine native acceptance of that exact candidate and its backend, followed by ordinary shortcut verification under the existing guarded release procedure. The local investigation found no documented owner-only exception in that procedure; its attach mode would also perform a later launch, so it was not used as a purported no-launch path. No denied operation was retried through another launcher, and no security settings were changed.

    Please advise on the supported diagnostic or scoped-authorization route for the original pre-execution CreateProcess; rejected: blocked by policy response. In particular, does the retained rejection concern the submitted command representation, the execution surface, or the intended operation? We are not assuming that one rejected invocation establishes a general Windows ban on running the application.

    The only existing response is the automated possible-duplicate notice. A common cause with those reports has not been established. The original private invocation identifiers and sanitized command evidence are retained locally and can be supplied through an appropriate private channel after review. No private paths, identifiers, archives, or credentials are attached here.

  3. gwhaley6886 commented on Oct 18, 2026

    @gwhaley6886
    Author

    New evidence: original invocation recovered; no local rule matched; historical inline quoting defect distinguished from the rejection

    A bounded, non-executing local investigation recovered the original submitted tool request and retained rejection. This updates the earlier description; it does not establish a general prohibition on native application launches or identify a fix.

    Original event

    • Submitted: 2026-10-06T02:58:45.289Z; rejected: 2026-10-06T02:58:45.440Z.
    • Tool: tools.exec_command inside a functions.exec call.
    • The submitted command was a large node --input-type=module -e "..." expression. Its intended operations included a Node child-process call to Windows PowerShell to start an existing desktop shortcut, followed by loopback application checks and a local audit receipt.
    • workdir, shell, login, sandbox_permissions, and approval-specific call arguments were omitted. Incident turn context separately supplied the project directory, approval_policy: never, and danger-full-access.
    • The rejection identifies a host-supplied native pwsh.exe -Command wrapper. The recorded output itself contains a truncation marker: the complete host-translated argument vector was not retained.
    • The runtime version in September 19 session-creation metadata is not evidence of the exact engine used on October 6.

    Current non-executing diagnostics

    • Currently inspected CLI: codex-cli 0.163.0-alpha.10.2; desktop package: 26.1013.3656.0. These are not asserted to be the incident versions.
    • The inspected existing local rule file has 42 allow rules, zero prompt rules, and zero forbidden rules. No applicable managed requirements file or hook decision was exposed in the checked locations; this does not rule out other controls.
    • codex execpolicy check, using the supplied existing rules, the recorded outer executable and -Command, and the original decoded command string, returned {"matchedRules":[]}. This is not an explicit allow decision and does not reproduce the missing host translation or incident-time policy.
    • A non-executing PowerShell parse of the original submitted string produced eight command elements instead of the intended four. The JavaScript -e argument ended after 355 characters, with the intended nested command and the remaining JavaScript split into additional elements. This proves malformed quoting in the historical inline request, not that quoting caused the policy rejection.
    • The current file-based native-smoke procedures already use spawn(executable, argumentArray, options) rather than the historical inline command. No corresponding current release-code defect was established. No corrected/alternative launch was attempted, and nothing was installed or promoted.

    Additional public-source diagnostic lead — not incident attribution
    The public codex-rs/core/src/exec_policy.rs at commit 8c076942cb70fba8e5c4732c23f1faabc4aed484 contains both an unmatched-command fallback classifier (render_decision_for_unmatched_command_for_platform) and construction of the same rejected: blocked by policy wording (derive_forbidden_reason / dangerous_command_rejection_reason). This is consistent with a runtime decision not being explained by a no-match result from a supplied-rules-only check. We have not linked this public commit to the incident binary or established that this path caused this rejection.

    Source: https://github.com/openai/codex/blob/8c076942cb70fba8e5c4732c23f1faabc4aed484/codex-rs/core/src/exec_policy.rs

    Specific request
    Please identify the actual evaluator and evaluated argument vector for this incident, including whether command normalization or an unmatched-command heuristic was involved, the decision and justification, and the supported scoped review mechanism. If correlation requires the original invocation identifiers, please provide an appropriate private channel. Also clarify how to assess the current existing native-smoke procedure without treating the malformed historical request as a blanket ban or routing around a restriction.

    The local investigation supplies no justification for changing permissions merely because approval_policy is never. No allow rules, privileges, security settings, application files, shortcuts, services, research records, or worker operations were changed. No private paths, usernames, call/session identifiers, raw command payload, or logs are posted here.

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