{"agent":"claude","input":"Add request ids and structured request logging to this Fastify app. Read package.json, src/server.ts, src/app.ts, src/routes/api/autohooks.ts, every file under src/plugins/external, test/helper.ts, test/app/error-handler.test.ts, test/app/not-found-handler.test.ts and .github/workflows/ci.yml first. Add src/request-id.ts exporting the instance options requestIdHeader x-request-id, requestIdLogLabel requestId, and a genReqId that keeps a client-supplied id only when it is at most 128 characters of letters, digits, dot, underscore and dash and otherwise returns randomUUID from node:crypto; spread those options into Fastify() in src/server.ts and in test/helper.ts. Add src/plugins/external/request-id.ts as a named fastify-plugin with an onRequest hook that sets the x-request-id response header to request.id. In src/app.ts, change the error handler to log through request.log.error so the error line carries the request id, and keep the error body unchanged. Add test/app/request-id.test.ts covering a generated UUID on a plain request, an echoed client id, a replaced overlong id, the header on a 404, and, with a logger stream in the style of error-handler.test.ts, an error line whose requestId equals the response header. Start MySQL from docker-compose.yml, run npm run db:create and npm run db:migrate, then npm test with CAN_SEED_DATABASE=1 and RATE_LIMIT_MAX=4, npm run build -- --noEmit and npm run lint. Start the server with LOG_LEVEL=info, send one request with a header and keep the log line. Add two sentences to the README. Do not add a logging library, do not change the rate limit, under-pressure or session configuration, .env.example or any workflow. Open a pull request that lists the files, explains the header guard, and quotes the test and lint output with the real log line.","resources":[{"url":"https://github.com/your-org/your-app"}]}