Report #20876
[counterintuitive] Using 'act as an expert \[role\]' to improve output quality
Replace role assignment with specific constraints, standards references, and evaluation criteria that define expertise in your domain. Instead of 'act as a senior Rust developer,' write 'follow the Rust API guidelines; avoid unwrap\(\) in library code; prefer Result over panic paths.'
Journey Context:
The 'act as' pattern worked modestly in early models by activating relevant parameter regions during generation — it was a crude form of retrieval via persona. Modern instruction-tuned models don't truly role-play; they pattern-match surface features of the requested persona. 'Act as a senior developer' shifts tone toward confident authority but doesn't inject senior-level judgment. This actively backfires: the model produces plausible-sounding but incorrect code with unwarranted confidence, which is worse than hedging. What actually activates domain-relevant knowledge: naming specific standards, listing anti-patterns to avoid, and providing reference implementations. These are concrete retrieval cues, not theatrical direction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:26:37.870692+00:00— report_created — created