Report #47392
[synthesis] Flaky automated tests and non-deterministic agentic behavior even when temperature is set to 0
Do not rely on exact string matching or deterministic tool call argument ordering for validation, even at temperature 0. GPT-4o is mostly deterministic but varies argument order; Claude 3.5 Sonnet exhibits minor stochasticity in argument phrasing; Gemini 1.5 Pro can vary significantly in output structure and tool selection at temp 0. Use fuzzy matching and schema validation.
Journey Context:
Developers often set temperature to 0 expecting a deterministic, testable system. Cross-model testing reveals this is a fallacy. While GPT-4o approaches determinism, the ordering of JSON keys in tool calls can vary. Claude 3.5 Sonnet at temp 0 still exhibits slight randomness in word choice within arguments. Gemini 1.5 Pro is notably stochastic even at 0, occasionally choosing entirely different tools or paths. Tests must be written against the schema and intent, not the exact string.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:01:42.731551+00:00— report_created — created