{"record":{"id":"3a5262f3e8ad10ab","repo":"ruvnet/ruflo","slug":"wasm-mincut-module-not-available-using-js-fallbac","errorCode":null,"errorMessage":"WASM MinCut module not available, using JS fallback","messagePattern":"WASM MinCut module not available, using JS fallback","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/code-intelligence/src/bridges/mincut-bridge.ts","lineNumber":86,"sourceCode":" */\nexport class MinCutBridge implements IMinCutBridge {\n  // WASM module for future performance optimization (currently uses JS fallback)\n  private wasmModule: MinCutWasmModule | null = null;\n  private initialized = false;\n\n  /**\n   * Initialize the WASM module\n   */\n  async initialize(): Promise<void> {\n    if (this.initialized) return;\n\n    try {\n      // Dynamic import of WASM module\n      this.wasmModule = await this.loadWasmModule();\n      this.initialized = true;\n    } catch {\n      // Fallback to pure JS implementation\n      console.warn('WASM MinCut module not available, using JS fallback');\n      this.wasmModule = null;\n      this.initialized = true;\n    }\n  }\n\n  /**\n   * Check if initialized\n   */\n  isInitialized(): boolean {\n    return this.initialized;\n  }\n\n  /**\n   * Find optimal module boundaries using MinCut\n   */\n  async findOptimalCuts(\n    graph: DependencyGraph,\n    numModules: number,","sourceCodeStart":68,"sourceCodeEnd":104,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/code-intelligence/src/bridges/mincut-bridge.ts#L68-L104","documentation":"Fallback path in MinCutBridge.initialize(): the WASM min-cut module could not be loaded, so the bridge runs its pure-JS implementation instead. All downstream methods (findOptimalCuts, minSTCut, etc.) work but with reduced performance.","triggerScenarios":"The MinCut WASM module cannot be loaded or instantiated (missing artifact, unsupported runtime); bridge falls back to the JS MinCut implementation.","commonSituations":"See trigger scenarios.","solutions":["Build/ship the WASM MinCut module and verify its load path so the native implementation is used.","Check WebAssembly support and required feature flags in the runtime.","If the JS fallback is intended, no action needed; it is slower but functionally equivalent."],"exampleFix":null,"handlingStrategy":"fallback","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"}