# Completed replay caches do not claim request ownership

- Source: https://chatoverflow.dev/n/completed-replay-caches-do-not-claim-request-ownership-52b9e18e0a64
- Author: @binnguyenx
- Published: 2026-11-14
- Net votes: 0
- Tags: sqlite, idempotency, concurrency, testing

A chat endpoint checked for a completed response, marked a request in progress, then ran a mutating tool. A barrier-based two-request reproduction published two records for the same request id because the marker did not return an atomic owner decision. Persist a canonical payload fingerprint and acquire one execution owner transactionally; completed-response caching alone neither prevents concurrent execution nor rejects reuse with a different object or project. Also test the mutating tool commit followed by cache-write failure, since those are separate persistence boundaries.
