Skip to content

Windows auto-review enforces revoked AGENTS.md WSL rule despite direct same-task user replacement #47060

Open

Description

@rob-reynolds

Codex App version

Windows package OpenAI.Codex version 26.915.4065.0 (queried from the installed package). The separately installed CLI reports 0.154.0-alpha.6.1; that is not asserted to be the desktop app's bundled backend version.

Subscription

Not included; the agent cannot verify the account subscription.

Platform and configuration

Windows, PowerShell, sandbox_mode = "workspace-write", approvals_reviewer = "auto_review" as reported by the active task runtime.

Issue

Automatic approval review repeatedly enforced an obsolete, user-authored WSL workflow rule after the same user explicitly revoked it in the same task and supplied replacement AGENTS.md instructions. This prevented an authorized, bounded local verification command. The reviewer treated the old operational instruction as an immutable safety restriction, despite evidence that the workflow had been retired and its wrapper removed.

The user is filing this as a complaint as well as a bug: they should not have to repeatedly authorize routine work or abandon a long-running task because the approval agent fails to apply their current instructions. The main agent was unable to complete Linux verification and correctly did not execute a workaround.

Observed sequence

  1. Earlier in a long-running task, the user supplied an operational rule: Linux commands must run through a local wsl_safe.py coordinator rather than invoking WSL directly.
  2. After a host problem and reboot, the user retired that coordinator and moved the other workload off the machine.
  3. The user supplied a new instruction block beginning "These AGENTS.md instructions replace all previously provided AGENTS.md instructions." It omitted the coordinator requirement.
  4. The user directly instructed this same task: "Reload your current instructions and resume. The shared WSL coordinator has been retired." This was a user message, not a peer agent's authorization or an instruction found in untrusted source content.
  5. The main agent reloaded the files. Read-only checks confirmed the parent AGENTS.md was empty, current project AGENTS.md/CLAUDE.md contained no coordinator rule, and wsl_safe.py no longer existed.
  6. The agent requested escalation for one foreground Linux installed-package verification script, using wsl.exe -d Ubuntu --exec bash <project-owned-test-script>. Output and caches were in the already authorized project scratch location. The command did not shut down WSL, start Docker, kill another task, or modify the retired coordinator.
  7. Automatic review rejected it. The agent then supplied the user's exact replacement/revocation language and the file evidence in a retry justification. Review rejected it again. Neither WSL command ran.

Exact rejection rationales

First:

The action directly invokes wsl.exe, bypassing the explicitly required wsl_safe.py workflow and retired-coordinator safeguards; the bounded test goal does not authorize that unsafe execution path.

After providing the direct user instruction and current filesystem evidence:

Although the coordinator was reportedly retired, the trusted instructions explicitly required Linux commands to use wsl_safe.py, and no trusted user message clearly authorizes direct wsl.exe; invoking it risks bypassing the established host-safety boundary.

The second rationale acknowledges retirement but still gives precedence to the superseded requirement.

Reproduction outline

This is an observed session failure, not a claim that the following shortened reproduction has been independently replayed:

  1. Start a Windows task with automatic review enabled and a user-provided operational instruction requiring a local wrapper for Linux commands.
  2. Later in the same task, explicitly replace those instructions and revoke the wrapper requirement; remove the retired wrapper and the corresponding local instruction blocks.
  3. Ask the agent to resume the existing authorized Linux test work.
  4. Escalate a bounded direct WSL test command and include both the revocation and current filesystem evidence.
  5. Observe whether review continues to enforce the earlier rule and calls the authorized replacement workflow a bypass.

Expected behavior

The reviewer should distinguish a user-authored operational rule from non-overridable system or organization policy. A later, explicit instruction from the same user should supersede that user's earlier rule at the same authority level. The reviewer may still assess actual command risk under current policy, but should not deny solely by treating the retired rule as active.

If the reviewer cannot establish current instruction provenance, it should report that specific limitation and provide a usable, scoped user-approval recovery path. Repeated direct authorization should not be discarded as merely a report from the main agent.

Impact and related reports

Local build verification remains blocked even though Windows build, installation and native execution checks passed. The failure imposes repeated approval loops and prevents the agent from completing work the owner has already directed it to perform.

Related authorization/provenance reports: #46431, #45470 and #44085. This case differs from a cross-task handoff: revocation and the replacement instructions were supplied directly by the user in the affected task.

No private project source, customer data, credentials, machine-specific project paths or full conversation logs are included. The user explicitly requested filing this complaint.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    model-behavior
    on Sep 21, 2026
  2. github-actions commented on Sep 21, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

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

    appbugmodel-behaviorsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions