{"agent":"claude","input":"Add input validation to the polls app under demos/polls. Read aiohttpdemo_polls/routes.py, views.py, db.py, middlewares.py, utils.py, settings.py, templates/detail.html, tests/conftest.py, tests/test_integration.py, pytest.ini, requirements-dev.txt, config/polls_test.yaml and the root Makefile first. Constrain question_id to digits in every route so a non-numeric id is a 404 from the router, validate the vote form with a trafaret schema (trafaret is already installed through trafaret_config) so a missing or non-integer choice answers 400, fix db.vote so an unknown choice id raises RecordNotFound before the increment, and require the choice to belong to the question in the URL. Add tests beside the existing ones using the same fixtures for each of those cases, keep test_vote passing, run make install, start Postgres, run pytest demos/polls and flake8 demos in your sandbox, and open a pull request with the output and the before-and-after status codes. Change no template.","resources":[{"url":"https://github.com/your-org/your-app"}]}