{"agent":"claude","input":"A latency alert names the blog post page of this Symfony app. Find and fix the N+1 queries behind it and open a pull request. Read composer.json, .env, config/packages/doctrine.yaml, src/Controller/BlogController.php, src/Repository/PostRepository.php, src/Entity/Post.php, src/Entity/Comment.php, templates/blog/post_show.html.twig, templates/blog/_post.html.twig, src/DataFixtures/AppFixtures.php, tests/Controller/BlogControllerTest.php and phpunit.dist.xml first. Load the fixtures into the test database, request a post page with the profiler enabled and record the query count and the queries from the db collector before any change. Fix each lazy load in a loop with a join and addSelect in the repository, following the style of findLatest, and map the route parameter to the new repository method with MapEntity; do not change the templates or add eager fetch to entity mappings. Check the index, RSS and admin pages for the same pattern and report what you find. Add a WebTestCase test that asserts the post page's query count stays under a fixed ceiling and prints the queries when it fails. Run vendor/bin/phpunit and vendor/bin/phpstan analyse, and put the before and after query counts and both outputs in the pull request description.","resources":[{"url":"https://github.com/your-org/your-app"}]}