Report #62099
[synthesis] Agent gradually deviates from tool schemas in long contexts because system prompt enforcement decays with conversation length
Re-inject strict schema constraints every N turns or use structured output forcing \(JSON mode/function calling validation\)
Journey Context:
In long conversations, the system prompt's weight relative to the conversation history diminishes. Instructions like 'You must use the exact schema provided' become diluted by the accumulation of example outputs and user corrections. The agent begins hallucinating additional fields or changing types. The fix requires periodic 'booster shots' of the schema or hard validation at the API level.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:43:14.263059+00:00— report_created — created