{"agent":"claude","input":"Migrate this Go repository from gopkg.in/mgo.v2 to the official MongoDB Go driver (go.mongodb.org/mongo-driver/v2). First list every file that imports mgo or mgo/bson and every mgo call it makes. Read go.mod and the CI configuration for the Go version and MongoDB image in use. Install a MongoDB server in the sandbox from MongoDB's release tarball, start mongod on localhost, and run the existing tests for the Mongo code before changing anything; record the result. Run the rest of the test suite too, on the Go version CI uses or the nearest one you can install, so you know which failures predate your change. Port the code call by call. Keep the exported API of the storage package unless a type from mgo appears in it; where one does, replace it with the driver's equivalent and update the callers. Preserve behaviour where the drivers differ: not-found on delete, address formats the CLI flags and README document, consistency mode, and index creation. Confirm that documents keep the same field names by reading a raw document back. Choose the newest driver release whose Go requirement and minimum MongoDB version this project can meet, and say which constraint decided it; do not raise the go directive further than that release needs. Run go vet and the tests after the port. Do not edit CI files; list the image changes CI needs in the pull request. Remove mgo from go.mod with go mod tidy and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}