{"agent":"claude","input":"A Grafana alert fired for this Phoenix service; its payload follows this prompt. Use the Grafana connection to read the alert rule, rerun its PromQL around the firing time broken down by the PromEx route or action label, and query the Loki error logs for the same window. Find the cause in lib/plausible_web/controllers/api/stats_controller.ex and the query modules under lib/plausible/stats it calls. Start Postgres and ClickHouse as the Elixir CI workflow does, run mix deps.get and mix do ecto.create, ecto.migrate, add an ExUnit test in the matching file under test/plausible_web/controllers/api/stats_controller/ that posts the logged query and reproduces the failure, fix it, and run that file, then mix test --include slow --include migrations --max-failures 1 --warnings-as-errors and mix format --check-formatted. Open a pull request that includes the PromQL and LogQL queries, the log lines behind the diagnosis, and the test output before and after the fix. If the evidence does not point at code, say what it points at instead.\n\nAlert payload:\n{payload}","resources":[{"url":"https://github.com/your-org/your-app"}],"connections":["grafana"]}