{"agent":"claude","input":"Add cookie-based sessions to this aiohttp app and use them to prevent a browser from voting twice on the same poll, then open a pull request. Read aiohttpdemo_polls/main.py, views.py, routes.py, middlewares.py, settings.py, utils.py, typedefs.py, db.py, the templates, config/polls.yaml, config/polls_test.yaml, requirements-dev.txt, setup.py, pytest.ini, tests/conftest.py and tests/test_integration.py first. Add aiohttp-session[secure] to the requirements and setup.py. Add a session_secret setting to both config files and the trafaret schema, decode it to the 32-byte key EncryptedCookieStorage needs, and document how to generate one. Call aiohttp_session.setup in init_app before the middlewares with a named cookie, a max_age, httponly and samesite Lax. In vote, read the session, redirect to results without writing when the question id is already recorded, and record it after a successful vote; pass the state to the detail and results templates so the form and the vote-again link hide. Fix the order of the missing-choice check in db.vote. Add integration tests for a repeated vote from the same client, a vote from a fresh client, the hidden form and the cookie flags. Run init_db.py against a local Postgres, pytest tests and flake8 until clean, then open a pull request listing the setting, the cookie attributes and what each test proves.","resources":[{"url":"https://github.com/your-org/your-app"}]}