{"agent":"claude","input":"The backend workflow on the default branch is failing at the migration step; the workflow_run event is at the end of this prompt. Run alembic heads in backend/ and confirm whether there is more than one head. Read backend/alembic.ini, backend/app/alembic/env.py, script.py.mako, every file under backend/app/alembic/versions, backend/app/models.py, backend/scripts/prestart.sh, .env, compose.yml and .github/workflows/test-backend.yml. Read both head revisions in full. If their operations do not touch the same tables or columns, create a merge revision with alembic merge and leave every existing revision file unchanged. If they collide, do not merge: report the conflicting lines and the ordering you propose, and stop. Install PostgreSQL in your sandbox and say which version. Replay three paths: an empty database to head, a database stopped at each former head and then upgraded to head. On each run alembic check, downgrade one step and upgrade again, then run the backend tests. Add a test that fails when the script directory has more than one head. Open a pull request with the output of every command, and explain how two green pull requests produced this and which repository setting would prevent it.","resources":[{"url":"https://github.com/your-org/your-app"}]}