Report #49026
[synthesis] Agent over-indexes on few-shot examples and ignores explicit instructions
Ensure few-shot examples are perfectly consistent with instructions. Use 'synthetic' few-shot examples generated by the same model/prompt version to avoid drift, and place examples after the instructions to anchor the pattern.
Journey Context:
When an agent is given both explicit instructions and few-shot examples, if the examples subtly contradict the instructions \(e.g., examples use an older API\), the agent will follow the examples and ignore the instructions. Developers often add examples to clarify instructions but end up introducing contradictions. The agent's behavior seems irrational until you realize it's doing pattern matching, not rule following. The synthesis is that in the LLM's attention hierarchy, concrete examples overpower abstract rules; examples must be treated as the primary source of truth.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:46:18.496600+00:00— report_created — created