{"agent":"claude","input":"Write tests for the Alembic migrations of this backend. Read backend/alembic.ini, backend/app/alembic/env.py, every file under backend/app/alembic/versions, backend/app/models.py, backend/app/core/db.py, backend/tests/conftest.py, backend/scripts/prestart.sh, backend/scripts/test.sh, backend/scripts/lint.sh, backend/pyproject.toml and .github/workflows/test-backend.yml first. Add backend/tests/alembic/test_migrations.py with a module-scoped fixture that creates and drops a scratch database on the configured Postgres server so the suite's database is never downgraded. Using alembic.command, test that upgrade head from empty lands on the single head, that downgrade base leaves only alembic_version, that upgrade head again works and a cascade delete from user to item behaves as the models promise, that compare_metadata against SQLModel.metadata with compare_type is empty at head, and that the chain applies one revision at a time. Install Docker, start the Postgres container the compose file describes, run prestart.sh, tests-start.sh and lint.sh, prove the drift test fails on a temporary model column and revert it, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}