Skip to content

[model-behavior / CLI] Codex ignores AGENTS.md stop-and-challenge rules across multi-day sunk-cost loops + silent +11 KB global AGENTS.md injection in codex exec #65465

Backlog

Description

@NookieGrey

What version of the Codex App are you using (From “About Codex” dialog)?

26.1123.92249

What subscription do you have?

Pro

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

OpenAI-Codex-Postmortem-Summary-EN.md

Over ~2 weeks (Nov 20 – Dec 3, 2026), building and running an automated PRD decomposer with Codex burned 4 usage quota resets, ~2.93B session tokens (680 sessions, mostly cached input), and >11.6M engine-run tokens across two real PRDs — ending with 0 usable task cards (116 overlapping cards, 3,720 fact assignments, 88.9% pairwise overlap, 608 step-blocker records, and 49 unrelated criteria on a single 8-SP preview card).

Three independent post-mortems (by Codex, Claude, and Gemini) converged on two actionable issues for the Codex team:

1. Model Behavior: Local-Optimization Tunnel Vision Overriding Explicit AGENTS.md Directives

  • My global AGENTS.md explicitly required Codex to interrupt and challenge flawed approaches rather than silently building workarounds.
  • Codex introduced an arbitrary 48,000-byte prototype prompt cap on Nov 20 without checking whether the 68 KB PRD fit in one context window, then defended that bottom-up O(N²) design for 12 days despite hard failure signals: a 36.3M-token forecast and 11–27 task variance on Nov 21; a 34.5h forecast and 63/95-task cycle on Dec 1; 88.9% fact overlap and Line 7 on 104/116 cards on Dec 2.
  • Instead of challenging the architecture or checking a single end-to-end Beads card, Codex spent 182M+ tokens adding complexity (4-thread concurrency, 128 KiB overrides, 149 cycle-review calls, a new step_dependencies schema, a 631-edge qualification branch) solely to preserve broken caches, while reporting 395 passing schema/unit tests.

2. CLI / Runtime Behavior: Silent Prompt Bloat & Silent Model Fallback

  • Unintended +11 KB prompt injection in codex exec: Ephemeral/background codex exec calls silently injected ~11 KB of my global AGENTS.md and skill metadata into every isolated JSON-pipeline call (~23% of the 48 KB budget), worsening fragmentation and quota consumption.
  • Silent fallback to gpt-6.2-sol / low: Misconfigured model/effort parameters silently degraded early runs instead of failing loudly, triggering repeat-question loops (15/18 already answered) and expensive reruns.

What steps can reproduce the bug?

  1. Explicit stop-and-challenge rules in AGENTS.md should carry weight against sunk-cost cache preservation and trigger architectural sanity checks when quantitative failure signals appear.
  2. Ephemeral codex exec calls should not silently inject personal global AGENTS.md/skills payloads into isolated structured-output prompts (or should expose an explicit --isolated / opt-out flag by default).
  3. Invalid or missing model/effort flags should warn or fail explicitly instead of silently falling back to a lower tier.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Dec 3, 2026
  2. added
    bug
    CLI
    model-behavior
    exec
    config
    on Dec 3, 2026
  3. github-actions commented on Dec 3, 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

    CLIappbugconfigexecmodel-behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions