1 Commits

Author SHA1 Message Date
HAL9000 d54ed1440c fix(engine_cache): guard MEMORY_ENGINES with lock to prevent TOCTOU race
Add MEMORY_ENGINES_LOCK to engine_cache.py and wrap the check-and-set
in UnitOfWork.engine with it to prevent concurrent threads from creating
duplicate in-memory SQLite engines. Also fix cache-hit bug where
self._engine was never assigned on a cache hit.

Closes #7566
2026-06-02 05:51:55 -04:00