Report #43776
[frontier] Agent hallucinates tool parameters or misapplies functions after many turns \(Tool Schema Drift\)
Implement "Schema Re-Anchoring" - re-inject complete JSON schema definitions \(not just tool names\) every 8-10 turns using a dedicated "tool\_refresh" system message that precedes any tool use, forcing the model to re-parse the exact parameter constraints
Journey Context:
Function calling documentation typically shows schemas being defined once at the start of a session. However, in long interactions, the model's latent representation of tool parameters gradually drifts - it begins to hallucinate new parameters or use tools for purposes outside their schema \(capability retention without constraint retention\). Simple reminders like "remember the schema" are ineffective because they lack structural specificity. Re-anchoring treats the schema as perishable context that must be periodically refreshed with full structural fidelity, similar to how database connections require keep-alive packets.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T03:57:01.683738+00:00— report_created — created