{"agent":"claude","input":"Add CSRF protection to the polls app in demos/polls of this repository. Read demos/polls/requirements-dev.txt, aiohttpdemo_polls/main.py, routes.py, views.py, middlewares.py, settings.py, utils.py, typedefs.py, db.py, templates/detail.html, templates/base.html, config/polls.yaml, config/polls_test.yaml, tests/conftest.py, tests/test_integration.py, pytest.ini and Makefile first. Add aiohttp-session[secure] and set up EncryptedCookieStorage in init_app with a session_secret read from the config and validated by the trafaret; add the key to both config files and document it. Add aiohttpdemo_polls/csrf.py with a token helper that stores secrets.token_urlsafe(32) in the session, a Jinja2 context processor that exposes it as csrf_token, and a middleware after the session middleware that rejects POST, PUT, PATCH and DELETE without a matching _csrf_token form field using hmac.compare_digest and HTTPForbidden. Add the hidden input to detail.html and a 403 template. Rewrite test_vote to fetch the form first and add tests for a POST without the token (403, no vote) and with it (vote recorded). Run pytest tests with the existing filterwarnings=error setting and flake8 aiohttpdemo_polls, then open a pull request that quotes the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}