Report #95824
[synthesis] Model outputs parameter values outside defined enum constraints
Add a validation layer that maps near-miss enum values \(e.g., 'moderate' -> 'medium'\) for Claude, and use OpenAI's strict mode for GPT-4o. For Llama, repeat the enum values in the parameter description text.
Journey Context:
GPT-4o with strict JSON schema enforces enums perfectly. Claude 3.5 treats enums as suggestions and will output 'moderate' when the enum is \['low', 'medium', 'high'\] if it feels 'moderate' is more accurate. Llama 3 often ignores enums unless they are restated in the description. Pure schema enforcement fails cross-model; a fuzzy validation layer is required.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T19:25:23.241932+00:00— report_created — created