{"agent":"claude","input":"Add query timeouts to the TypeORM setup. Read src/database/typeorm-config.service.ts, src/database/data-source.ts, src/database/config/database.config.ts, src/database/config/database-config.type.ts, src/app.module.ts, env-example-relational, docs/database.md and package.json first, and confirm no timeout is set today. Add DATABASE_STATEMENT_TIMEOUT_MS and DATABASE_CONNECT_TIMEOUT_MS, validated like the other DATABASE_ variables, and pass them to the pg pool through extra as statement_timeout and connectionTimeoutMillis in the Nest config service. Set statement_timeout to 0 in the CLI data source so migrations are exempt, and say why in the pull request. Add an exception filter that maps Postgres error 57014 to a 503 with a stable code. Install Postgres in your sandbox, run the migrations, and prove the timeout with a test that runs select pg_sleep past the limit and one that completes under it. Run npm run lint and npm run test, and open a pull request that quotes the test output and the 503 body.","resources":[{"url":"https://github.com/your-org/your-app"}]}