{"agent":"claude","input":"Upgrade this repository from SQLAlchemy 1.4 to 2.0. Read the dependency manifest and lockfile, every module that imports sqlalchemy, the Alembic env.py and versions directory, the tests, and how CI starts the database. Docker may not be available here: if the tests need PostgreSQL, install it with apt, start it, and run pytest directly with the connection string the code reads; say which server version you tested on and which one CI uses. Check whether the tests can run twice against the same database and reset state between runs if they cannot. Step 1, still on 1.4: run the tests with SQLALCHEMY_WARN_20=1 and list every RemovedIn20Warning by file and line. Fix each one in a way that also works on 2.0, and get the suite passing under -W error with that flag on. Commit. Step 2: choose the target. Read Requires-Python for the newest 2.x releases and compare with the Python version in the manifest and the Dockerfile; pick the newest release the project's Python supports and say what a later one would require. Move the pin, relock, run the tests under -W error, and fix anything left. Commit. Step 3: convert models to DeclarativeBase with Mapped and mapped_column, keeping the name of the base that other modules import, and convert Query usage to select(). Preserve every column's nullability, type, length, default and constraints exactly; a column with no nullable=False stays nullable. Prove it: with the database migrated to head, run alembic check and require that it detects no new operations. Do not create a migration. Commit. Open one pull request with the three commits and, in the description, the warning list, test totals at each step, and the alembic check output.","resources":[{"url":"https://github.com/your-org/your-app"}]}