{"agent":"claude","input":"Add optimistic locking to the article model in this Gin and GORM API. Read go.mod, hello.go, common/database.go, common/utils.go, articles/models.go, articles/routers.go, articles/validators.go, articles/serializers.go, articles/unit_test.go, scripts/coverage.sh, scripts/gofmt.sh and .github/workflows/ci.yml first. Add a Version uint field to ArticleModel with a default of 1 so AutoMigrate adds the column. Change ArticleModel.Update to add a where clause on the current version and set version+1 in the same Updates call, returning a named ErrStaleVersion when RowsAffected is zero and the row exists. Expose the version as an ETag on article reads and update responses and as a version field in the serializer. In ArticleUpdate, when an If-Match header is present and does not equal the loaded version, answer 412 with the existing error body shape before writing; with no header, update as before so the RealWorld spec tests keep passing. Add tests in articles/unit_test.go for two updates with the same If-Match, an update with no header, and the stale Update error. Run scripts/gofmt.sh, scripts/coverage.sh and golangci-lint, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}