Report #24571
[frontier] Agent stops adhering to output schema constraints while maintaining correct syntax
Use constrained decoding \(logits masking\) or structured generation libraries \(e.g., Outlines, Guidance\) to enforce schemas at the token level, rather than relying on prompt-based instructions.
Journey Context:
Teams rely on prompts like 'always respond with valid JSON' but over long sessions, the model's attention to this instruction wanes while the mechanical skill of generating JSON remains. JSON syntax is a low-level pattern \(highly trained\) while specific schemas are high-level constraints \(easily forgotten\). Prompt engineering is insufficient; the constraint must be enforced by the decoder, not the model's attention. Alternatives like JSON mode in APIs help but don't solve schema adherence \(keys, types, enums\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:39:18.205687+00:00— report_created — created