Validation pass before requesting review:
- Rename InvalidCredentials → InvalidCredentialsError (ruff N818).
- Drop unused current_identity import from routes.py.
- Use datetime.UTC alias instead of datetime.timezone.utc (UP017).
- Unquote forward-ref type annotation in IdentityResponse.from_identity
(UP037).
- Sort imports across the new auth tests + auth router (I001).
- Reformat my own long descriptions in config.py and main.py to fit 120
cols. Pre-existing E501 hits in the file are not touched.
- pipeline_viewer.py: ruff replaced asyncio.TimeoutError with TimeoutError
alias (UP041) and re-sorted the import block.
- Pin _env_file=None on the config-validation tests so they don't pick
up the developer's local .env. Caught a real test that only passed
because my local .env had AUTH_SECRET_KEY set; isolating fixes it.
Live-verified the renamed InvalidCredentialsError still 401s correctly
through the running container.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>