Report #47789
[agent\_craft] Agent few-shot examples contain volatile data \(timestamps, random IDs\) that cause the model to hallucinate specific values in new contexts
Templatize few-shot tool outputs with placeholders like '\{\{CURRENT\_TIMESTAMP\}\}', '\{\{GENERATED\_ID\}\}', '\{\{DYNAMIC\_VALUE\}\}' in the example, and include an explicit instruction: 'Replace placeholder values with actual tool outputs; do not hardcode specific IDs or timestamps'
Journey Context:
Static few-shot examples with real-looking but volatile data \(e.g., '2023-10-15' or 'file\_handle\_4829'\) teach the model to memorize and regurgitate these specifics. When the context changes \(new date, different file\), the model hallucinates the old values. Templatization forces the model to recognize these as variables to be bound at runtime, not constants. This is critical for few-shot examples involving tool outputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:41:51.813094+00:00— report_created — created