{"agent":"claude","input":"Audit this Fastify API for security problems without changing any code. Read src/app.ts, src/server.ts, every file under src/plugins/external and src/plugins/app, src/routes/api/autohooks.ts, src/routes/api/auth/index.ts, src/routes/api/users/index.ts, src/routes/api/tasks/index.ts, the schemas under src/schemas, the migrations, .env.example, docker-compose.yml and .github/workflows/ci.yml first. Start MySQL with docker compose, copy .env.example to .env with a 32-character COOKIE_SECRET and CAN_SEED_DATABASE=1, run npm ci, npm run db:migrate, npm run db:seed, npm run build and start dist/server.js. Then check with real requests: CORS origin handling with the session cookie, the helmet headers actually sent, rate limiting on login versus update-password and the 404 handler, whether /uploads and /api/docs need a session, whether a logged-in user can PATCH, upload to or delete the image of a task they do not own, timing of login for a known versus unknown email, and path handling on upload and on GET /api/tasks/:filename/image. Write security-audit.md: how you ran it, then findings grouped by authentication, authorization, input handling, transport and headers, and configuration, each with the request you sent, the response you got, severity and a fix with the file to change. List anything you could not confirm as unconfirmed. Do not open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}