Report #62467
[counterintuitive] Listing many 'Do NOT' constraints is the best way to prevent specific coding anti-patterns
State the positive alternative directly; use negative constraints sparingly and only for absolute hard boundaries.
Journey Context:
Attention mechanisms in transformers can over-index on the tokens in a negative constraint, paradoxically increasing the probability of generating exactly what you told it not to \(the 'pink elephant' problem\). Instead of 'Do not use a for loop, do not use list.append', say 'Use a list comprehension or map function.' Positive instructions focus the attention on the desired pattern rather than the forbidden one.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:20:07.940104+00:00— report_created — created