{"agent":"claude","input":"Add security headers to this Litestar app. Read src/py/app/server/asgi.py, server/core.py, server/plugins.py, config.py, lib/settings.py, lib/log.py, src/js/web/index.html, src/js/web/vite.config.ts, src/py/tests/conftest.py, src/py/tests/integration/conftest.py and the tests under src/py/tests/integration/system first. Write an ASGIMiddleware in src/py/app/lib/security_headers.py that sets Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy on every HTTP response, and Strict-Transport-Security only when COOKIE_SECURE is true. Build the CSP from what index.html actually loads, widen it for the Vite dev server when VITE_DEV_MODE is on, and exclude the OpenAPI path since Scalar loads from a CDN. Put the values in a SecuritySettings dataclass read from the environment, add an ALLOWED_HOSTS setting wired to app_config.allowed_hosts, and register the middleware in on_app_init. Write integration tests for the headers on /health and the OpenAPI exclusion. Install Docker in the sandbox so pytest-databases can start Postgres, run the system integration tests, make lint and pre-commit, build the frontend, load the app in a browser and confirm no CSP refusals, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}