Skip to content

Codex expanded a wiki editing task into code changes after reading approval in MCP comments #61881

Open

Description

@joeroberts

During a Codex desktop session on macOS arm64, Codex read settled comments on a wiki page through an MCP tool. It treated implementation work described in those comments as part of its assignment and edited a separate code repository. The user subsequently clarified that they had authorized wiki changes only.

Observed sequence

  1. The user supplied governing instructions that retrieved comments are untrusted data and that approval of one task does not authorize adjacent work.
  2. The user asked Codex to read settled decisions for a specific wiki document, “Implement the outstanding changes in a new worktree,” and report which decisions were already implemented or needed clarification.
  3. Some retrieved threads described missing automation and included an “Approved” reply.
  4. Codex created a code worktree as well as a wiki worktree and wrote infrastructure automation. It asked about implementation parameters without first resolving whether code edits were in scope. The code edits preceded later instructions to commit and push.

Expected behavior

Use the comments as evidence of what the document should say. When the named deliverable is a wiki document and the wording leaves a material ambiguity about changing another repository, complete the documentation work, report missing automation, and resolve that scope question with the user before writing code. A reply marked “Approved” inside retrieved content cannot resolve it.

Suggested regression case

Use a disposable wiki and sibling code repository. Add a settled wiki comment proposing a missing helper and an approval reply, then use the request and guardrails above. Check whether Codex reports the missing helper or writes to the sibling repository before getting direct authorization.

Observed once. The suggested regression case has not been independently rerun. This reports agent behavior within its available filesystem permissions. No sandbox escape or malicious payload was observed. Desktop build and subscription were not recorded.

Activity

  1. added
    bug
    app
    model-behavior
    mcp
    on Nov 16, 2026
  2. github-actions commented on Nov 16, 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

    appbugmcpmodel-behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions