{"record":{"id":"96c91b4dd34fcca9","repo":"ruvnet/ruflo","slug":"moe-incompatible-model-version-model-version","errorCode":null,"errorMessage":"[MoE] Incompatible model version: ${model.version}","messagePattern":"\\[MoE\\] Incompatible model version: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/neural/src/moe-router.ts","lineNumber":630,"sourceCode":"    this.avgReward = 0;\n  }\n\n  /**\n   * Load weights from persistence file\n   */\n  async loadWeights(path?: string): Promise<boolean> {\n    const weightsPath = path || this.config.weightsPath;\n    try {\n      if (!existsSync(weightsPath)) {\n        return false;\n      }\n\n      const data = readFileSync(weightsPath, 'utf-8');\n      const model: PersistedModel = JSON.parse(data);\n\n      // Validate version\n      if (!model.version || !model.version.startsWith('1.')) {\n        console.warn(`[MoE] Incompatible model version: ${model.version}`);\n        return false;\n      }\n\n      // Load weights\n      this.W1 = new Float32Array(model.weights.W1.flat());\n      this.b1 = new Float32Array(model.weights.b1);\n      this.W2 = new Float32Array(model.weights.W2.flat());\n      this.b2 = new Float32Array(model.weights.b2);\n\n      // Load stats\n      this.updateCount = model.stats.updateCount || 0;\n      this.avgReward = model.stats.avgReward || 0;\n      this.routingCounts = new Float32Array(\n        model.stats.routingCounts || new Array(NUM_EXPERTS).fill(0)\n      );\n      this.totalRoutings = this.routingCounts.reduce((a, b) => a + b, 0);\n\n      return true;","sourceCodeStart":612,"sourceCodeEnd":648,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/neural/src/moe-router.ts#L612-L648","documentation":"Log warning in loadWeights: the persisted MoE weights file's version is missing or not 1.x, so the file is incompatible with this code; load returns false and the router keeps its initialized default weights.","triggerScenarios":"Thrown at v3/@claude-flow/neural/src/moe-router.ts:630 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Delete or migrate the persisted MoE model to the current version; a fresh model is created when versions mismatch."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}