{"record":{"id":"94e099f31850b0f3","repo":"ruvnet/ruflo","slug":"invalid-configname-configuration-n-errormessa","errorCode":null,"errorMessage":"Invalid ${configName} configuration:\\n${errorMessages}","messagePattern":"Invalid (.+?) configuration:\\\\n(.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/shared/src/core/config/validator.ts","lineNumber":145,"sourceCode":"/**\n * Configuration validator class\n */\nexport class ConfigValidator {\n  /**\n   * Validate and throw on error\n   */\n  static validateOrThrow<TInput, TOutput>(\n    schema: z.ZodType<TOutput, z.ZodTypeDef, TInput>,\n    data: unknown,\n    configName: string\n  ): TOutput {\n    const result = validate(schema, data);\n\n    if (!result.success) {\n      const errorMessages = result.errors\n        ?.map((e) => `  - ${e.path}: ${e.message}`)\n        .join('\\n');\n      throw new Error(`Invalid ${configName} configuration:\\n${errorMessages}`);\n    }\n\n    return result.data!;\n  }\n\n  /**\n   * Validate agent config or throw\n   */\n  static validateAgentOrThrow(data: unknown): AgentConfig {\n    return this.validateOrThrow(AgentConfigSchema, data, 'agent');\n  }\n\n  /**\n   * Validate task config or throw\n   */\n  static validateTaskOrThrow(data: unknown): TaskConfig {\n    return this.validateOrThrow(TaskConfigSchema, data, 'task');\n  }","sourceCodeStart":127,"sourceCodeEnd":163,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/shared/src/core/config/validator.ts#L127-L163","documentation":"ConfigValidator.validateOrThrow ran a zod schema against the supplied data and it failed; the message embeds the configName and each field's path + reason. This is the generic throw-on-invalid wrapper used by validateAgentOrThrow and friends, so the fault is the input data for the named config type.","triggerScenarios":"Thrown at v3/@claude-flow/shared/src/core/config/validator.ts:145 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the invalid fields in the named configuration file as reported.","Regenerate the config from the template and reapply only intended overrides."],"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"}