The current implementation uses mutable class variables (lists/dicts) to store request-specific state. While this works in a single‑request flow, it becomes unsafe when running multiple workers or handling async/concurrent requests, since all instances share the same class-level data. This can cause data leakage, race conditions, and inconsistent behaviour between requests. We should investigate replacing these with instance-level state or a request-scoped store.
#524 (comment)
The current implementation uses mutable class variables (lists/dicts) to store request-specific state. While this works in a single‑request flow, it becomes unsafe when running multiple workers or handling async/concurrent requests, since all instances share the same class-level data. This can cause data leakage, race conditions, and inconsistent behaviour between requests. We should investigate replacing these with instance-level state or a request-scoped store.
#524 (comment)