Report #98106
[synthesis] JSON parse with default values hides missing fields, so the agent proceeds with a half-populated object
Use strict parsing \(e.g., Pydantic \`extra='forbid'\`, JSON Schema \`required\`\) and fail closed when expected fields are absent; never use \`.get\(\)\` defaults for business-critical fields.
Journey Context:
Lenient parsing is convenient during prototyping but becomes dangerous in production: \`data.get\('count', 0\)\` hides that the API silently dropped the field. Agents then compute on zeros and nulls as if they were real values. Strict parsing surfaces schema drift immediately, which is preferable because the failure is localized and debuggable rather than propagated through ten steps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T05:14:33.134235+00:00— report_created — created