{"record":{"id":"be279012e815acb2","repo":"ruvnet/ruflo","slug":"pod-template-at-path-successcriteria-entries-m","errorCode":null,"errorMessage":"pod-template at ${path}: successCriteria entries must be non-empty strings","messagePattern":"pod-template at (.+?): successCriteria entries must be non-empty strings","errorType":"validation","errorClass":"PodTemplateValidationError","httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/cli/src/business-pods/pod-schema.ts","lineNumber":142,"sourceCode":"}\n\nfunction validatePodAgent(item: unknown, path: string): PodAgent {\n  if (!isObject(item)) throw new PodTemplateValidationError('agent must be an object', path);\n  return {\n    role: requireString(item, 'role', path),\n    agentType: requireString(item, 'agentType', path),\n    description: requireString(item, 'description', path),\n    preferLocal: requireBoolean(item, 'preferLocal', path),\n  };\n}\n\nfunction validatePodBench(item: unknown, path: string): PodBench {\n  if (!isObject(item)) throw new PodTemplateValidationError('bench must be an object', path);\n  const name = requireString(item, 'name', path);\n  const description = requireString(item, 'description', path);\n  const successCriteria = requireArray(item, 'successCriteria', path, (s, sp) => {\n    if (typeof s !== 'string' || s.length === 0) {\n      throw new PodTemplateValidationError('successCriteria entries must be non-empty strings', sp);\n    }\n    return s;\n  });\n  if (successCriteria.length === 0) {\n    throw new PodTemplateValidationError('bench.successCriteria must have ≥1 entry', path);\n  }\n  const scheduleHours = requireNumber(item, 'scheduleHours', path);\n  if (scheduleHours < 1) {\n    throw new PodTemplateValidationError('bench.scheduleHours must be ≥1', path);\n  }\n  return { name, description, successCriteria, scheduleHours };\n}\n\nfunction validateAuditReadView(item: unknown, path: string): PodAuditReadView {\n  if (!isObject(item)) {\n    throw new PodTemplateValidationError('auditReadView must be an object', path);\n  }\n  const includedEventTypes = requireArray(item, 'includedEventTypes', path, (s, sp) => {","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/ruvnet/ruflo/blob/6b01dc5a687b26b3e218f796de45ec51f8fa9e8c/v3/@claude-flow/cli/src/business-pods/pod-schema.ts#L124-L160","documentation":"Thrown inside validatePodBench() while validating each element of the successCriteria array. Fires when an entry is not a string or is an empty string. successCriteria is the list of human-readable acceptance bullets the bench evaluates against, so each must be a meaningful non-empty string.","triggerScenarios":"validatePodBench() runs requireArray() on bench.successCriteria, then maps each entry through an item validator; an entry is not a string or is empty.","commonSituations":"A successCriteria entry is null, a number, an empty string from a template placeholder left unfilled, or a trailing comma producing an empty element.","solutions":["Read the error path — it includes the index (e.g., /bench/successCriteria[1]) of the bad entry","Ensure every successCriteria entry is a non-empty descriptive string"],"exampleFix":"// before:\n\"successCriteria\": [\"Pipeline value increased\", \"\"] // empty string, throws\n\n// after:\n\"successCriteria\": [\"Pipeline value increased\", \"Conversion rate above 20%\"]","handlingStrategy":"validation","validationCode":"import { validatePodTemplate, PodTemplateValidationError } from '@claude-flow/cli/business-pods/pod-schema';\n\ntry {\n  const pod = validatePodTemplate(parsedJson);\n} catch (e) {\n  if (e instanceof PodTemplateValidationError) {\n    // e.path includes the index, e.g. /bench/successCriteria[1]\n    console.error(`successCriteria entry error at ${e.path}: ${e.message}`);\n  }\n}","typeGuard":null,"tryCatchPattern":"import { validatePodTemplate, PodTemplateValidationError } from '@claude-flow/cli/business-pods/pod-schema';\n\ntry {\n  const pod = validatePodTemplate(raw);\n} catch (e) {\n  if (e instanceof PodTemplateValidationError) {\n    console.error(e.message);\n    process.exit(1);\n  }\n  throw e;\n}","preventionTips":["Ensure every successCriteria entry is a non-empty descriptive string","Watch for empty placeholder strings left from template generation","Validate templates with validatePodTemplate() before deployment"],"tags":["validation","pod-template","schema","bench","strings"],"backgroundTag":null,"analyzedSha":"6b01dc5a687b26b3e218f796de45ec51f8fa9e8c","analyzedAt":"2026-08-12T13:20:50.148Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}