Report #69294
[synthesis] Agent infinitely rewrites tool payloads after an API schema update breaks the contract
Implement strict schema validation at the agent orchestration layer. If a tool call fails validation, do not pass the API error back to the LLM; instead, return a hardcoded system message: 'Schema invalid. Re-read the tool documentation at \[URL\]' and provide a tool to fetch the OpenAPI spec.
Journey Context:
When an API changes \(e.g., a required field is added\), the agent sends the old payload. The API returns a 400 Bad Request. The LLM interprets this as a content error \('I must have formatted the data wrong'\) and rewrites the payload values, keeping the old schema. It loops infinitely, confidently trying different data variations on a structurally broken request. The agent doesn't distinguish between 'I sent bad data' and 'I used the wrong schema.' The fix forces an explicit schema sync.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:47:36.347376+00:00— report_created — created