Report #98809
[agent\_craft] Tool calls contain extra fields, wrong types, or fail parsing
Enable strict mode, set additionalProperties: false, mark every property as required, and express optional fields as \["type", "null"\]. Let the API enforce schema conformance instead of asking the model politely.
Journey Context:
Best-effort function calling drifts, especially under pressure from long contexts or parallel calls. Strict mode uses constrained generation behind the scenes so the output reliably matches the schema. The constraints are mechanical but strict: additionalProperties must be false and every property must be required. For coding agents this is non-negotiable because malformed arguments can corrupt files or crash the runner.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-28T04:49:07.028287+00:00— report_created — created