{"record":{"id":"ea80c72ec87b0aad","repo":"ruvnet/ruflo","slug":"invalid-configuration-validation-errors-map-e","errorCode":null,"errorMessage":"Invalid configuration: ${validation.errors?.map(e => e.message).join(', ')}","messagePattern":"Invalid configuration: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/shared/src/core/config/loader.ts","lineNumber":233,"sourceCode":"\n    return {\n      config,\n      source,\n      path,\n      warnings: warnings.length > 0 ? warnings : undefined,\n    };\n  }\n\n  /**\n   * Load configuration from specific file\n   */\n  async loadFromFile(filePath: string): Promise<LoadedConfig> {\n    const absolutePath = resolve(filePath);\n    const fileConfig = await loadJsonConfig(absolutePath);\n    const validation = validateSystemConfig(fileConfig);\n\n    if (!validation.success) {\n      throw new Error(`Invalid configuration: ${validation.errors?.map(e => e.message).join(', ')}`);\n    }\n\n    const config = mergeWithDefaults(validation.data!, defaultSystemConfig) as SystemConfig;\n\n    return {\n      config,\n      source: 'file',\n      path: absolutePath,\n    };\n  }\n\n  /**\n   * Deep merge objects\n   */\n  private deepMerge(target: Record<string, unknown>, source: Record<string, unknown>): Record<string, unknown> {\n    const result = { ...target };\n\n    for (const key of Object.keys(source)) {","sourceCodeStart":215,"sourceCodeEnd":251,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/shared/src/core/config/loader.ts#L215-L251","documentation":"ConfigLoader.loadFromFile parsed the JSON file but validateSystemConfig rejected it; the joined zod/validator error messages enumerate exactly which fields failed schema validation. The file exists and parses — its contents simply do not conform to the system config schema.","triggerScenarios":"Thrown at v3/@claude-flow/shared/src/core/config/loader.ts:233 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the configuration values listed in the validation error messages.","Compare the config against the schema defaults to find the invalid fields."],"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-14T05:17:10.506Z"}