docs: boolean update(long[] newVersions, int replicaIndex) {
          int index = replicaIndex - 1;
          long currentVersion = versions[index];
          long nextVersion = newVersions[index];
  
          if (currentVersion < nextVersion) {
              setVersions(newVersions, replicaIndex);
              dirty = dirty || (nextVersion - currentVersion > 1);
          }
          return !dirty;
      }