{"agent":"claude","input":"Write rollback tests for the Alembic migrations. Read backend/alembic.ini, backend/app/alembic/env.py, every file under backend/app/alembic/versions/, backend/tests/conftest.py, backend/scripts/prestart.sh, backend/scripts/test.sh and .github/workflows/test-backend.yml first. Make env.py honour sqlalchemy.url from the Alembic config when it is set, falling back to settings.DATABASE_URL. Add backend/tests/alembic/test_migrations.py that creates a separate database on the same server, runs upgrade, downgrade and upgrade for every revision in order, round-trips one user and one item through the UUID migration's downgrade, and checks the head schema against the models. Run scripts/test.sh against the compose database, quote the results, fix any downgrade that fails in its own commit, and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}