{"agent":"claude","input":"Review this pull request to our SQLAlchemy app. Read pyproject.toml, core/config.py, core/db/session.py, core/db/transactional.py, the SQLAlchemy middleware, migrations/env.py, every file under migrations/versions, tests/conftest.py, the test database helper, docker/docker-compose.yml, docker/init.sql, the Makefile and the README first. Docker is not available: install the database and Redis servers the compose file names from system packages, create the user and databases the compose file and the init script create, and install dependencies with Poetry on the Python version pyproject.toml pins. Run make test on the base branch and on the head and report only what the pull request changes. Apply the migrations to an empty database, then compare the resulting schema with the mapped classes column by column (type, nullability, defaults, unique constraints); if the diff adds a revision, also run its downgrade and upgrade again. Separate drift the pull request introduces from drift already on the base. Then read the diff. Flag: a filter that compares two Python values instead of a column and a value; a query with limit or offset and no order_by; an explicit commit where the Transactional decorator should be used; a write on a session from session_factory; a read that must see a preceding write but may be routed to the reader engine; a lazy relationship load in async code; SQL built from strings; and a model change with no revision. Where a finding can be shown with a short test against the database, write it, run it and include it in the review without committing it. Post one review with the command results first and findings by file and line. Push nothing.","resources":[{"url":"https://github.com/your-org/your-app/pull/42"}]}