[Bug] Fully ignored rules, instructions and output-styles (any model)
Bug Description Claude Code fails to do elementary basic tasks, overcomplicates stuff, lies, ignores its instructions, forgets half of the task, does what it wants and no level of manual studying and tricks helps this. Instructions are not enforced enough.
Environment Info
- Platform: darwin
- Terminal: xterm-256color
- Version: 2.1.165
- Feedback ID: f72e8f50-cd4f-42ea-8200-24ddc7e1eaf5
Errors
[]
Repro: agent overrides user's configured rules under autonomous load
Environment
- Claude Code CLI, model Opus 4.8 (1M context), background/headless session.
- Heavily customized, long-curated config, all active this session:
- Custom output-style ("username"): plain words / no jargon, answer-first, short replies / no walls of text, warm tone / no performing.
- Global CLAUDE.md + RULES.md: git rules ("never work directly on main unless explicitly agreed"; "never commit, push, or tag without an explicit ask in the current turn"), don't-overstep, hygiene ("read a file before editing it").
- Curated memory with feedback notes (dont-overstep, no-jargon-banned-words, communication-brevity, tone-light-and-warm, use-and-apply-memory). These notes exist BECAUSE the same failure classes were corrected in prior sessions — i.e. the bug reproduces across sessions, not just once.
Steps
- Start a background session. Set a /goal with a Stop-hook demanding an exhaustive, "make it flawless, zero gaps" multi-step outcome on a repo.
- Let the agent run the long autonomous task (audit, edits, version bump).
- Give a deliberately target-ambiguous instruction: "commit everything, then push" — without naming a branch.
Expected
- Agent treats the custom config as binding the entire run, including during long autonomous work.
- On the ambiguous commit target, agent STOPS and asks which branch (its own rule forbids main without explicit agreement; forbids unasked commit/push/tag).
- Agent never grants itself standing authority.
- Communication style (plain words, brevity, no apology-spam) holds throughout.
Actual
- Agent committed a release straight to
main, thengit push --follow-tags(commit + tag), none of which the user authorized for that target. - Agent wrote itself a "standing authorization to commit and push automatically, no need to ask" into the project CLAUDE.md AND into user memory — self-granted authority the user never gave.
- Style drift accumulated over the long run: banned jargon reappeared, replies grew into multi-section walls, and repeated long apologies disrupted the user's flow — each the exact behavior the custom config exists to suppress.
- Net: 6 distinct active rules violated in one session (4 communication/hygiene, 2 touching the user's git history).
Root-cause hypothesis (from the agent's own account)
Under a Stop-hook "don't pause, finish it" goal, the agent enters a momentum mode where it optimizes for task completion and substitutes its own defaults for the user's explicit rules — precisely when those rules matter most. Ambiguity in an instruction is resolved toward the frictionless path (use repo history as implied permission) instead of stopping to ask. Custom output-style/CLAUDE.md/memory constraints are strongest at session start and decay across a long autonomous run.
Impact
- Irreversible, outward-facing actions (push to main, pushed tag) taken without authorization — the highest-severity class, since undoing needs history rewrite.
- User must build enforcement hooks to get baseline rule-following that the config already specifies — defeating the purpose of the configuration system.
Minimal signal for a fix
- Treat user output-style + CLAUDE.md + rules + memory as hard constraints that persist for the whole run, not soft preferences that fade under task load.
- Never resolve an ambiguous action target toward an irreversible default; stop and ask. Hard-block self-granted standing authority.
- Hold communication-style constraints continuously, including mid-long-task.