Report #87262
[frontier] Agent failing when external APIs change their schemas requiring manual prompt updates
Implement runtime schema adaptation: expose tool schemas via OpenAPI/MCP with semantic versioning, use JSON Schema diffing to detect breaking changes at runtime, and auto-generate migration prompts that teach the agent the new field mappings via few-shot examples
Journey Context:
Hardcoded tool descriptions in prompts break when APIs evolve \(fields renamed, required params added\). Instead, treat tool schemas as living contracts. Use OpenAPI specs or MCP tool schemas versioned semantically \(SemVer\). At runtime, fetch the current schema, diff against cached version using JSON Schema diff algorithms. If breaking changes detected \(required fields removed, types changed\), don't just fail—generate a 'migration narrative': automatic few-shot examples mapping old field names to new ones, injected into the agent's system prompt. This creates 'anti-fragile' tool use that adapts to API evolution without human intervention, using the LLM's in-context learning to handle schema migrations dynamically.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:03:33.735578+00:00— report_created — created