{"agent":"claude","input":"Add graceful shutdown and zero-downtime reloads. Read package.json, ecosystem.config.json, src/index.js, src/app.js, src/config/config.js, docker-compose.prod.yml, Dockerfile and tests/utils/setupTestDB.js first. On SIGTERM and SIGINT stop accepting connections with server.close, wait for in-flight requests, close the Mongoose connection without forcing, and exit 0; add an unref'd deadline timer that logs the step still running and exits 1; keep exit code 1 for uncaughtException and unhandledRejection; ignore a second signal during shutdown. Send process.send('ready') after listen when process.send exists, and in ecosystem.config.json set wait_ready, listen_timeout, a kill_timeout above the app's deadline, and exec_mode cluster with instances 1. Write an integration test that spawns the process, holds a slow request open, sends SIGTERM and asserts the response completes and the exit code is 0. Run yarn test against a local MongoDB, then start under pm2 and run pm2 reload while a curl loop hits /v1/docs and count refused connections. Run yarn lint and yarn prettier, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}