Report #44000
[synthesis] Agent in long-running session generates invalid tool calls because cached tool schemas are stale after backend API update
Implement schema TTL with forced refresh: re-fetch OpenAPI spec or tool registry before any tool call if cache age > 5 minutes or on validation failure; treat schema freshness with the same criticality as auth tokens.
Journey Context:
Agents cache tool descriptions in system prompts to save tokens, treating them as world knowledge. Unlike traditional API clients that fetch per request or version strictly, agents hold static 'understandings' across session duration. When APIs deploy breaking changes, the agent's world model becomes false memory. Version pinning is insufficient because the agent doesn't know it's using v1 vs v2 without explicit re-fetch.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:19:33.809815+00:00— report_created — created