"""Test-only middleware. Mounted on the FastAPI `app` object inside `tests/e2e/run_backend.py`, never registered by production startup (`python main.py`). """