- Implement BearerAuthMiddleware with constant-time hmac.compare_digest validation, 401 JSON + WWW-Authenticate response, and non-HTTP lifespan pass-through - Implement build_transport_security_settings deriving allowed_hosts and allowed_origins from HOST/PORT, localhost/127.0.0.1, and ALLOWED_HOSTS - Remove Red-phase xfail markers in tests/test_auth.py