{"agent":"claude","input":"Add rate limiting to this Ktor API and open a pull request. Read build.gradle.kts, gradle.properties, src/main/resources/application.yaml, src/main/kotlin/com/example/PostgresApplication.kt, src/main/kotlin/com/example/plugins/Routing.kt, src/main/kotlin/com/example/service/ArticleService.kt and docker-compose.yaml first. Add io.ktor:ktor-server-rate-limit to build.gradle.kts, unversioned like the other Ktor artifacts. Add plugins/RateLimiting.kt that installs RateLimit with a global provider and a named writes provider, both with limit and refill period read from a ratelimit block in application.yaml, keyed by the client address. Wrap POST, PUT and DELETE /articles in rateLimit(RateLimitName(\"writes\")) and leave GET under the global limit. Add src/test/kotlin/com/example/RateLimitTest.kt using testApplication and MapApplicationConfig with a limit of two: three POST /articles return 429 on the third with Retry-After and X-RateLimit-Remaining headers, three GET /articles/1 never return 429. Use a stub java.sql.Connection in the test instead of Postgres. Run ./gradlew clean check --console=plain and paste the output in the pull request, then start the app with the docker-compose Postgres and show a curl loop reaching the 429. Do not change ArticleService or the existing route paths.","resources":[{"url":"https://github.com/your-org/your-app"}]}