Report #29888
[frontier] Agent forgets negative constraints \(what NOT to do\) but remembers positive capabilities over long context windows
Frame negative constraints as positive actions in the system prompt, and include them in a dynamic pre-flight checklist injected right before the tool-calling or code-generation step.
Journey Context:
LLMs struggle with negation in long contexts. 'Don't use library X' gets washed out by the sheer volume of code containing X in the context window. 'Use library Y instead of X' is stickier. Furthermore, constraints far from the generation point are ignored. Moving the constraint to a just-in-time checklist \(right before the action\) leverages recency bias effectively, ensuring the constraint is active at the exact moment of execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:33:25.163713+00:00— report_created — created