Report #98303
[agent\_craft] Model follows some instructions and ignores others in long system prompts
Order system instructions by priority and repeat the top two constraints in the user message: \(1\) role/persona, \(2\) output format, \(3\) tools, \(4\) style guardrails. Never bury a hard constraint in the middle.
Journey Context:
Instruction hierarchy and position bias are real: models weight earlier and later tokens more than middle tokens. The typical mistake is treating the system prompt as a flat contract. High-stakes constraints—like 'always ask before writing files' or 'never execute destructive commands'—should appear first in the system prompt and again in the user turn. Style instructions can live later. This duplication feels redundant but prevents the model from losing the constraint behind tool definitions or examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-27T04:44:55.311397+00:00— report_created — created