{"agent":"claude","input":"Add cursor pagination to the polls index in this aiohttp app. Read aiohttpdemo_polls/views.py, routes.py, db.py, templates/index.html, tests/conftest.py, tests/test_integration.py, init_db.py, pytest.ini and requirements-dev.txt first. Replace the unbounded select in the index view with a keyset query over (pub_date, id), newest first, taking after and limit query parameters: limit defaults to 20 and is capped at 100; after is a urlsafe base64 cursor of the last row's pub_date and id, and a cursor that does not parse answers 400 with web.HTTPBadRequest. Fetch limit + 1 rows and expose next_cursor to the template as an Older polls link; name the index route so url('index') works. Add tests/test_pagination.py that inserts questions with tied dates through the app's session maker, walks every page and asserts each id appears once, checks a cursor inside a tie, and checks the 400. Run make test and flake8, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}