{"agent":"claude","input":"Add rate limiting to this Symfony app. Read composer.json, config/packages/security.yaml, config/packages/cache.yaml, config/packages/framework.yaml, config/routes.yaml, src/Controller/SecurityController.php, src/Controller/BlogController.php, src/Entity/Comment.php, phpunit.dist.xml, tests/Controller/BlogControllerTest.php, tests/Controller/UserControllerTest.php and the workflows under .github/workflows/ first. Install symfony/rate-limiter with composer. Enable login_throttling on the main firewall with max_attempts and an interval you state in the pull request. Define a per-user token bucket limiter for the comment_new action and a per-address sliding window limiter for the blog_search action, inject each RateLimiterFactory by name, consume before handling the request, and answer a refusal with 429 and a Retry-After header, HTML for the comment form and JSON for the search box. Point the limiter storage at an array cache in the test environment. Write functional tests for the login throttle and the comment limit using the same login approach the existing tests use. Run phpunit, php-cs-fixer check, phpstan, lint:container and lint:yaml in the sandbox, fix anything until they pass, and open a pull request that lists each limiter, its key, its limits and how to change them.","resources":[{"url":"https://github.com/your-org/your-app"}]}