{"agent":"claude","input":"Add cursor pagination to this Ktor service and open a pull request. Read build.gradle.kts, gradle.properties, src/main/resources/application.yaml, postgres.yaml, docker-compose.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 src/main/kotlin/com/example/models/Article.kt first. Add a list method to ArticleService that selects id, title and body where id is greater than an optional cursor, ordered by id, fetching limit plus one rows to detect a next page. Add serializable ArticleSummary and ArticlePage classes, the latter with items and an optional nextCursor holding the last id. Add GET /articles to Routing.kt taking limit (default 20, maximum 100, 400 otherwise) and after. Keep the existing Article class and the four existing routes unchanged. Start Postgres with docker compose in the sandbox, add src/test/kotlin/com/example/PaginationTest.kt with testApplication that inserts 25 articles and walks the pages asserting increasing ids, no repeats and no cursor on the last page. Run ./gradlew build and ./gradlew test, start the server, curl two pages and paste them in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}