{"agent":"claude","input":"Add per-client rate limiting to this aiohttp app. Read aiohttpdemo_polls/main.py, routes.py, views.py, middlewares.py, settings.py, utils.py, typedefs.py, config/polls.yaml, config/polls_test.yaml, requirements-dev.txt, pytest.ini and tests/conftest.py first. Write a token bucket limiter keyed by client address with an injectable clock, expose it on the app through a web.AppKey, and add a middleware that answers 429 with a Retry-After header for POST routes once a client is over the limit. Put requests, period and trusted_proxy in the YAML config and validate them in the trafaret schema. Append the middleware after the existing error middleware and explain why in a comment. Add tests that exhaust the limit, assert the 429 and the header, advance the clock and assert recovery. Run pytest and flake8 the way the Makefile does and open a pull request that shows the command output.","resources":[{"url":"https://github.com/your-org/your-app"}]}