{"agent":"claude","input":"Implement the Linear issue given as a resource in this Phoenix codebase. Read the issue and its comments first. Make the change in the stats API controller, the query layer under it or the authorization plug the issue concerns, and keep the diff small. Add ExUnit tests under test/plausible_web/controllers/api using PlausibleWeb.ConnCase and the existing setup helpers. Start PostgreSQL and ClickHouse in the sandbox as CONTRIBUTING.md describes, run `mix deps.get` and `mix compile --warnings-as-errors`, then `mix test` on the changed files and on the suite, and fix what fails. Open a pull request whose description links the issue, explains the change and quotes the test result. Do not merge.","resources":[{"url":"https://github.com/your-org/your-app"},{"url":"https://linear.app/your-org/issue/ENG-42"}]}