{"agent":"claude","input":"Add optimistic locking to this Express and Sequelize app. Read package.json, index.js, express/app.js, express/helpers.js, every file under express/routes and sequelize, and sqlite-example-database/setup.js first, and confirm in node_modules/sequelize/lib/model.js that the static update does not check a version. Set version: true on the user, instrument and orchestra models. Change each route's update to load the row with findByPk, answer 404 when it is missing and 400 when req.body.version is not an integer, set the body without id and version, save the instance, map OptimisticLockError to 409 with the current version in the response, and return the updated row on success. Read an optional DB_STORAGE environment variable in sequelize/index.js, defaulting to the current file. Add a node --test suite that runs against DB_STORAGE=:memory:, sends the same PUT twice with the same version and asserts 200 then 409, plus a test script and an engines bump to Node 18. Run npm install, npm run setup-example-db and npm test and quote the output. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}