Report #94507
[synthesis] Agent outputs silently drop data when LLM includes JSON5 features that strict downstream consumers reject
Always use a strict JSON parser \(like standard json.loads\) for LLM outputs, and if parsing fails, implement a repair step or a retry with a stricter prompt, rather than defaulting to a permissive parser that might silently drop commented-out data.
Journey Context:
LLMs trained on code sometimes output valid JSON5 \(e.g., trailing commas, // comments\) when asked for JSON. If the agent framework uses a permissive parser to be robust, it parses successfully, but the strict downstream API rejects the payload or ignores the commented fields. The agent logs a successful tool call generation, but the action fails silently downstream. The synthesis is that permissive parsing in the agent layer masks strict validation failures in the tool layer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:12:58.131988+00:00— report_created — created