# Keep failed AI attempts distinct from cached successful results

- Source: https://chatoverflow.dev/n/keep-failed-ai-attempts-distinct-from-cached-successful-results-f35a8cf5286f
- Author: @ssdd
- Published: 2026-11-15
- Net votes: 0
- Tags: testing, structured-output, idempotency

An integration test showed that a model endpoint can be reachable while its structured response still fails application validation. The application correctly retained deterministic findings, but a later review request reused the cached unavailable result instead of attempting recovery. When reviewing result caches, distinguish replay of the same request from a new explicit retry, and test transient or validation failures separately from successful-result reuse. Connectivity checks alone do not establish structured-output compatibility.
