Skip to content

Windows 0.154.0-alpha.6.2: pre-process policy denial lacks rule diagnostic despite unmatched user execpolicy rules #50979

Open

Description

@Recklessfrags

Impact

A user-authorized local harness acceptance setup was rejected before process creation. The production queue trial and downstream project acceptance remain unexecuted.

Environment and event

  • Windows desktop app observed: 26.908.9136.0
  • Bundled CLI: 0.154.0-alpha.6.2
  • UTC: 2026-10-04T12:53:13.406Z
  • Task/session: 01a0f749-bd10-7ec3-9fd4-7039bf093710
  • Tool call: call_a439b61639ff452baa9704bd51acd2a8
  • Tool: exec_command / CreateProcess
  • Error excerpt (command omitted): rejected: blocked by policy
  • Recorded invocation context: approval_policy Never; DangerFullAccess
  • Arguments: cmd and max_output_tokens; no escalation request
  • Original command SHA-256: a196ebc67d23fb024f75d7bdc788082d57d93f6cd18bb3a06a1ab9e74e8d4e8a

No policy rule, reason, or diagnostic ID was returned. No grants, descriptors, producer runs, bridge polls, or fenced acknowledgments were created by the rejected invocation.

Completed diagnostics and limits

  1. Read-only execpolicy evaluation of the original command wrapper against user default.rules returned exit 0 and {"matchedRules":[]} with empty stderr. This did not execute the command or establish the result of inner PowerShell heuristic evaluation.
  2. Bounded local log inspection found the tool-call event but no enforcement rationale.
  3. Exact-release source review identified possible prefix-policy and Windows command-safety paths, but did not establish which rejected this invocation.
  4. A harmless output-only control containing the suspected lexical pattern did not reproduce the denial. The heuristic hypothesis is unconfirmed. No reliable minimal reproducer has been established.
  5. Attribution to Auto-review is unconfirmed and was withdrawn.
  6. The rejected setup has not been retried through another interpreter, worker, or modified permission route.

Requested resolution

Please identify the enforcement component and applicable rule for the event above, or provide a supported way to obtain that diagnostic. Please advise the supported remediation for this user-authorized operation while retaining policy enforcement. This is not a request for an enforcement bypass.

Related reports and privacy

Similar observable symptoms are reported in #50745 and #50896; a shared root cause is not established. This report adds the exact older CLI version and negative rule-evaluation/control results.

Authentication material, full conversation history, raw local logs, personal paths, and the full original command are omitted. The original event and command remain locally available for a separately reviewed private diagnostic request. No full-session attachment is included.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 4, 2026
  2. Recklessfrags commented on Oct 6, 2026

    @Recklessfrags
    Author

    Additional independent occurrence on 2026-10-06 between 03:36:14Z and 03:37:19Z: tools.exec_command rejected a scoped Blackjack repository edit/install/test batch before process creation with only "blocked by policy". This is a separate product task, not a replay of the original harness setup. No decision/rule id or exact denied call identifier was exposed. Read-only reconciliation found the checkout unchanged and expected outputs absent.

    Static inspection found no delete/move, destructive computed path, authority change, credentials, or executable shell interpolation. The batch did combine fixed-path source edits, npm ci and tests with semicolon sequencing. That construction has partial-failure hazards, but it does not establish the cause of the pre-execution rejection. No corrected replay or alternative executor has been attempted. The exact original arguments and exposed response have been preserved locally; no secrets are included in this public update.

    Please provide a supported way to identify the responsible decision/rule and its clearance condition. A generic denial currently prevents distinguishing command-construction validation from a denied effect; renewed user authorization is already available and is not being treated as clearance.

  3. Recklessfrags commented on Oct 6, 2026

    @Recklessfrags
    Author

    Read-only follow-up recovered the exact native rejection from the worker rollout:

    • Timestamp: 2026-10-06T03:36:55.804Z
    • Call ID: call_1hpgVgf3gwCki5YqpLiKJpTY
    • Thread: 01a10cf0-eed7-7133-ba83-15602451dbfe
    • Turn: 01a10f47-d994-7d72-b8d6-b71cc41a9bdf

    The installed CLI execpolicy check, applied read-only to the full original shell argument vector and local rule files, returned matchedRules: []. Worker and coordinator persisted permission state both report disabled sandbox and never approval. This does not identify or clear another enforcement layer. A bounded log query around the event returned no decision rationale. The original denied effect has not been replayed. These identifiers should make a platform-side trace possible; please identify the rejecting component and supported remediation.

  4. Recklessfrags commented on Oct 6, 2026

    @Recklessfrags
    Author

    Distinct startup failure to keep separate from the two pre-process policy rejections above:

    A single read-only research-discovery participant launch on2026-10-06T13:38:28.8688325Z actually started the installed npm Codex CLI0.151.0 and exited1 after156ms. No thread ID, JSON events, command/read events or final message. This is NOT the same observed failure class as CreateProcess 'blocked by policy', and we do not infer a shared cause.

    Invocation used Node24.16.0 and @openai/codex/bin/codex.js exec with a pinned local nine-file snapshot, --sandbox read-only, --ephemeral, --ignore-user-config, --ignore-rules, --skip-git-repo-check, --json, gpt-6-astra/xhigh. These describe the failed invocation, not a recommended workaround. It was the first and only launch; no retry occurred.

    Exact stderr, with user path normalized:
    WARNING: failed to clean up stale arg0 temp dirs: Access is denied. (os error 5)
    WARNING: proceeding, even though we could not create PATH aliases: Access is denied. (os error 5) at path "%USERPROFILE%\.codex\tmp\arg0\codex-arg0dV29MV"
    Error: Access is denied. (os error 5)

    Untouched stderr SHA256:8f4d8a69442f906541e8de6338af2378c843c5c7d953d41f661cef96634674aa. Empty event-file SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.
    Read-only ACL inspection of arg0 shows local user/SYSTEM/Administrators FullControl, CodexSandboxUsers ReadAndExecute/Synchronize. Current coordinator shell identity is the normal user at medium integrity; this does not reconstruct the failed worker's token. Therefore ACL contents alone do not prove the final failure cause.

    Please identify the supported way to diagnose the exact startup operation and run a fresh read-only participant under the Windows host without weakening policy or editing sandbox ACLs. No ACL/config changes, alternate-executor retry or new research attempt has been made. The experiment slot remains consumed and behavior unobserved.
    Public evidence receipt: https://github.com/Recklessfrags/lean-agent-workflow/pull/14

  5. Recklessfrags commented on Oct 6, 2026

    @Recklessfrags
    Author

    New static evidence for the pre-process rejection

    Follow-up to #50979 (comment).

    Exact incident

    • call_1hpgVgf3gwCki5YqpLiKJpTY at 2026-10-06T03:36:55.804Z
    • Original command UTF-8 SHA256: 0a3e5c39a19eaaa8fe8af02fbe906650734a4a4502c3b741f7fc73b3aa4c105a
    • Exposed error: CreateProcess rejection, “blocked by policy”. No edit, install, or test process started; the original effect has not been retried.

    The call identifier was already published in the linked incident comment. Additional correlation identifiers remain there. No original payload, local user paths, private repository names, credentials, thread IDs, or turn IDs are included in this addendum.

    The full original command parses with zero PowerShell Parser errors. Its command AST contains python, npm ci, npm test, Get-Content and git diff. A GitHub receipt URL and the prose word “start” occur in a single-quoted here-string containing Python source; they are not a start/start-process call.

    In upstream source commit b5bffd3ec4db487e7e3dec59663875b0ef7b72ca, the Windows dangerous-command fallback flattens the script with shlex and matches any URL plus any bare launch keyword, including “start”. An independent model of the pinned Rust shlex 1.3.0 source yields 500 tokens for the original input, with “start” at 56/70 in README prose and the receipt URL in token 1. The model passed 20 published UTF-8 lexer fixtures. A separate Node WHATWG URL check accepts the 189-character candidate as an https GitHub URL.

    Limits: neither model is the compiled Rust classifier/url crate. The source commit was previously associated with CLI 0.154.0-alpha.6.2, but it has NOT been attested as the binary/source that evaluated this October 6 call. We also lack the actual full shell-lowering path and winning policy decision. This is a strong false-positive candidate, not a confirmed runtime diagnosis.

    Minimal sanitized sample, for parser/classifier-only investigation

    @'
    print('Click start to practice. https://example.invalid/receipt')
    '@ | python -

    The sample has not been submitted for shell execution. PowerShell Parser reports zero errors and exactly one command AST (python). A source-derived shlex model exposes both a bare “start” and an https URL even though those words are quoted Python string data in a PowerShell here-string. Please evaluate it as data, not as an instruction to launch Python.

    Why the existing empty execpolicy result cannot settle the issue

    At that source commit, ExecPolicyCheckCommand.run calls matches_for_command_with_options with heuristics_fallback=None. It checks rule files and omits the built-in heuristic. A result matchedRules:[] does not demonstrate that the complete execution policy would permit the call.

    Requested platform-side diagnostic, with no payload execution

    1. Identify the component and exact runtime build/source for the call above.
    2. Retrieve the stored decision if available, or evaluate the unchanged original argv/effective policy through a supported side-effect-free full evaluator. Report whether shell lowering retained the whole wrapper or produced inner commands, and identify the winning rule/predicate/reason. If the exact input is unavailable, provide a supported private collection route; the original payload is deliberately omitted from this public addendum.
    3. If the URL-plus-start fallback was responsible, provide its supported fix or reconsideration route. If another layer denied it, identify that layer and its supported clearance condition. If a Guardian assessment exists, expose its actual event and scope; do not infer one from the generic error.

    We found no exposed full evaluator or stored-decision trace tool in the current supported Codex app tool inventory. Supported thread/read omits the native rejection/Guardian/runtime settings for this turn. The saved 0.154 protocol schema includes approval and feedback-upload mutations, but no full policy-evaluation/retrospective decision-read method. We did not invoke hidden IPC, approval mutations, or feedback uploads. Lack of exposure does not establish that the platform has no such internal capability.

    No new general user approval is missing for the original product work; renewed user permission is not being treated as policy clearance. No rewritten payload, alternate executor, rule/permission changes, or installed software has been used to evade the rejection.

    Source references

    Distinct startup issue remains separate

    The other reported trial actually launched CLI 0.151 and exited with a bare OS5; see existing comment 6019568096. A later low-integrity worker diagnostic failed output-directory mkdir before Codex launched. That later failure identifies that probe’s operation but does not explain the original trial. No new trial or repeat of the denied mkdir is proposed by this addendum.

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