Report #68187
[synthesis] Agent alters correct parameter values while attempting to fix JSON schema validation errors for missing fields
On JSON validation failure, do not return a generic 'Invalid JSON' error. Return the exact parsed partial object and highlight only the missing keys, explicitly instructing the agent to retain the original values
Journey Context:
LLMs treat generation as a holistic process. When asked to fix a JSON string, they re-generate the whole string, and the new context \(the error message\) shifts the probability distribution of the existing tokens, causing 'schema drift'. Pinning the correct values in the error message anchors the distribution and prevents the model from altering known-good parameters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:56:07.481890+00:00— report_created — created