{"agent":"claude","input":"Add security headers to this Slim 4 app. Read composer.json, public/index.php, app/middleware.php, app/routes.php, app/settings.php, app/dependencies.php, src/Application/Middleware/SessionMiddleware.php, src/Application/Handlers/HttpErrorHandler.php, tests/TestCase.php, phpunit.xml, phpstan.neon.dist, phpcs.xml and .github/workflows/tests.yml first. Add src/Application/Middleware/SecurityHeadersMiddleware.php as a PSR-15 middleware that reads its header values from a securityHeaders entry you add to app/settings.php and sets Content-Security-Policy default-src 'none'; frame-ancestors 'none', X-Content-Type-Options nosniff, X-Frame-Options DENY, Referrer-Policy no-referrer, a Permissions-Policy disabling camera, microphone and geolocation, and Cross-Origin-Resource-Policy same-origin on every response, plus Strict-Transport-Security with a one-year max-age and includeSubDomains only when the request scheme is https or X-Forwarded-Proto is https. Register it in app/middleware.php after SessionMiddleware and explain in the pull request why error responses still receive the headers given the order in public/index.php. Leave the OPTIONS catch-all route alone but mention it. Add tests/Application/Middleware/SecurityHeadersMiddlewareTest.php extending Tests\\TestCase that asserts the headers on GET /, GET /users and the 404 from GET /users/9999, and the HSTS header on an https request and a forwarded one but not on a plain one. Run composer install, composer test, vendor/bin/phpstan and vendor/bin/phpcs, start the app with composer start and curl -I the three paths, then open a pull request that pastes the curl output.","resources":[{"url":"https://github.com/your-org/your-app"}]}