{"agent":"claude","input":"An alert that follows this prompt names a slow route in this Phoenix app. Reproduce it with a test that uses capture_queries/1 from test/support/test_helpers.ex around a request to the route and counts the queries per table. Find the N+1 in the controller, context or template, and fix it with a preload, a join with preload, or a lateral join in the style of Packages.attach_latest_releases/1, whichever fits. Keep the test with the corrected count asserted. Run mix test, mix format --check-formatted and mix compile --warnings-as-errors, and open a pull request whose description quotes the query list before and after.","resources":[{"url":"https://github.com/your-org/your-app"}]}