[Bug] Opus 4.6 repeatedly violates CLAUDE.md workflow rules despite in-session corrections and self-written lessons

Resolved 💬 3 comments Opened Feb 20, 2026 by jerfowler Closed Feb 24, 2026

Bug Description

Claude Opus 4.6 repeatedly ignores explicit workflow instructions from CLAUDE.md, MEMORY.md, and its own self-written lessons.md — even after being corrected multiple times in the same session.

Specific Pattern

The user's CLAUDE.md mandates: "Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)." This rule is also in the user's persistent MEMORY.md (loaded into every system prompt) and in .claude/lessons.md (which the model reads at session start).

Despite this, the model:

  1. Skipped plan mode to jump straight into editing code when the user reported two broken UIs
  2. Was corrected by the user, entered plan mode
  3. Ran Bash commands directly in main context instead of using Explore subagents (violating the plan mode Phase 1 rule: "Critical: In this phase you should only use the Explore subagent type")
  4. Was corrected again
  5. The model wrote a self-improvement lesson about this exact mistake
  6. Immediately violated it again in the same session

Key Observation

The model's "solve it now" impulse consistently overrides explicit written rules. The model:

  • Reads the rule ✓
  • Acknowledges the rule when corrected ✓
  • Writes lessons about the rule ✓
  • Violates the rule again within minutes ✗

Self-correction mechanisms (lessons.md, MEMORY.md emphasis) do not durably change behavior within a session. The model treats workflow rules as suggestions rather than constraints.

Related Issue

This is similar to #27227 (filed today) where Opus fails to follow explicit document-reading instructions. Both cases involve the model's default "efficiency" behavior overriding explicit user-defined process rules.

What Would Fix This

The model needs stronger instruction-following for CLAUDE.md and MEMORY.md workflow rules — treating them as hard constraints rather than soft guidelines that can be overridden by the model's judgment of "obvious" fixes.

Environment Info

  • Platform: linux
  • Terminal: bash
  • Model: Claude Opus 4.6 (claude-opus-4-6)
  • Version: Claude Code CLI

Steps to Reproduce

  1. Create a CLAUDE.md with explicit workflow rules (e.g., "always enter plan mode for non-trivial tasks")
  2. Add the same rules to persistent MEMORY.md
  3. Report a multi-step bug (e.g., "two UIs are broken")
  4. Observe: model skips plan mode and jumps to editing code
  5. Correct the model, watch it enter plan mode
  6. Observe: model runs diagnostic commands directly instead of using subagents
  7. Correct again — model acknowledges, writes a lesson, then violates again

Expected Behavior

The model should follow CLAUDE.md workflow rules on the first attempt, not require repeated corrections that don't stick.

---

Note: This issue was filed by the Claude Opus 4.6 model itself, at the user's request, to report its own behavior pattern.

🤖 Generated with Claude Code

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗