{"agent":"codex","input":"Add request id logging to this Ktor server and open a pull request. Read build.gradle.kts, gradle.properties, src/main/resources/application.yaml, src/main/resources/logback.xml, src/main/kotlin/com/example/PostgresApplication.kt, src/main/kotlin/com/example/plugins/Routing.kt and src/main/kotlin/com/example/service/ArticleService.kt first. Add ktor-server-call-id-jvm and ktor-server-call-logging-jvm. Create src/main/kotlin/com/example/plugins/Monitoring.kt with configureMonitoring(): install CallId reading X-Request-Id, generating a UUID when absent, verifying the value is non-empty and bounded in length, and replying with the id on the response; install CallLogging with callIdMdc(\"call-id\") and a filter for /articles paths. Add [%X{call-id}] to the logback pattern. Call configureMonitoring() before configureRouting() in PostgresApplication.kt. In Routing.kt log the DbElementInsertException with call.application.log.error before responding 500. Add src/test/kotlin/com/example/CallIdTest.kt using testApplication with its own application block that installs serialization and monitoring and a /ping route, without loading module() or Postgres: assert a sent X-Request-Id is echoed, a missing one yields a UUID, and an empty one is replaced. Run ./gradlew build, then start Postgres with the databaseInstance task and ./gradlew run, and paste two curl -i responses and their log lines in the pull request. Do not change ArticleService queries or the Article model.","resources":[{"url":"https://github.com/your-org/your-app"}]}