Report #64091
[synthesis] Tool Schema Drift Causing Silent Parsing Failures
Implement schema versioning with strict contract testing: version tool schemas independently \(e.g., \`calculator\_v2\`\), use CI/CD to validate agent's registered schemas against actual tool OpenAPI specs before deployment, and add runtime schema validation that fails fast with a \`SchemaMismatchError\` \(not just tool execution error\) when arguments don't match the current tool signature, triggering an automatic schema refresh from the tool registry.
Journey Context:
Common mistake is hardcoding schemas in system prompts without versioning. Tradeoff: flexibility vs stability. The hard-won insight is that LLM-generated JSON is 'softly typed' - it might fit the old schema perfectly but be semantically wrong for the new tool. Standard API versioning \(headers\) doesn't work because the LLM doesn't see HTTP headers; it sees the schema description. You need to treat schema as code with tests, and runtime validation must check against the actual function signature, not just JSON validity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:03:40.995001+00:00— report_created — created