{"agent":"claude","input":"Review the Alembic revision added by the open pull request in resources. Read src/py/app/db/migrations/alembic.ini, env.py and every file under versions, src/py/app/lib/settings.py, the models under src/py/app/db/models, src/py/tests/conftest.py, .github/workflows/ci.yaml and tools/deploy/docker/docker-compose.yml first. Start Postgres in your sandbox with a fresh database and synthetic data only, never a production dump: run uv sync --all-groups, apply the base branch with uv run app database upgrade, insert rows into every table the new revision touches, then apply the revision while another session holds an open transaction on each of those tables and record which statements wait. Confirm the revision's down_revision is the current head with alembic heads and history. Run uv run app database make-migrations into a scratch revision, report whether autogenerate found anything the pull request missed, and delete the scratch file. Run alembic downgrade -1 and upgrade head and report what the downgrade drops. Comment on the pull request at the exact lines of the revision: the operation, what happened with data and under a concurrent transaction, the safe alternative, and what the downgrade loses. Change no file and push nothing.","resources":[{"url":"https://github.com/your-org/your-app/pull/42"}]}