{"record":{"id":"041880981b12556b","repo":"ruvnet/ruflo","slug":"bd-stderr-output","errorCode":null,"errorMessage":"bd stderr output","messagePattern":"bd stderr output","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/gastown-bridge/src/bridges/bd-bridge.ts","lineNumber":482,"sourceCode":"        });\n\n        const { stdout, stderr } = await execFileAsync(\n          this.config.bdPath,\n          validatedArgs,\n          {\n            cwd: this.config.cwd,\n            env: this.config.env,\n            timeout: this.config.timeout,\n            maxBuffer: this.config.maxBuffer,\n            shell: false, // CRITICAL: Never use shell\n            windowsHide: true,\n          }\n        );\n\n        const durationMs = Date.now() - startTime;\n\n        if (stderr && stderr.trim()) {\n          this.logger.warn('bd stderr output', { stderr });\n        }\n\n        const result: BdResult<string> = {\n          success: true,\n          data: stdout.trim(),\n          command: 'bd',\n          args: validatedArgs,\n          durationMs,\n        };\n\n        // Cache successful results\n        if (isCacheable && result.success) {\n          staticCache.set(cacheKey, result);\n        }\n\n        return result;\n      } catch (error: unknown) {\n        const durationMs = Date.now() - startTime;","sourceCodeStart":464,"sourceCodeEnd":500,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/gastown-bridge/src/bridges/bd-bridge.ts#L464-L500","documentation":"Log warning in execBd: the bd child process wrote to stderr (non-empty output) after being executed with validated args and shell:false; stderr is logged for diagnostics while stdout parsing continues.","triggerScenarios":"Thrown at v3/plugins/gastown-bridge/src/bridges/bd-bridge.ts:482 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the bd command stderr in the log; fix the bd invocation arguments or the bd binary environment."],"exampleFix":null,"handlingStrategy":"try-catch","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-14T05:17:10.506Z"}