{"record":{"id":"ea3c8739f2ec4950","repo":"ruvnet/ruflo","slug":"pod-template-at-path-bench-schedulehours-must","errorCode":null,"errorMessage":"pod-template at ${path}: bench.scheduleHours must be ≥1","messagePattern":"pod-template at (.+?): bench\\.scheduleHours must be ≥1","errorType":"validation","errorClass":"PodTemplateValidationError","httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/cli/src/business-pods/pod-schema.ts","lineNumber":151,"sourceCode":"  };\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) => {\n    if (typeof s !== 'string' || s.length === 0) {\n      throw new PodTemplateValidationError('includedEventTypes entries must be non-empty strings', sp);\n    }\n    return s;\n  });\n  const retentionDays = requireNumber(item, 'retentionDays', path);\n  if (retentionDays < 1) {\n    throw new PodTemplateValidationError('auditReadView.retentionDays must be ≥1', path);\n  }","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/ruvnet/ruflo/blob/6b01dc5a687b26b3e218f796de45ec51f8fa9e8c/v3/@claude-flow/cli/src/business-pods/pod-schema.ts#L133-L169","documentation":"Thrown inside validatePodBench() after requireNumber() confirms scheduleHours is a finite number. Fires when that number is less than 1 (zero, negative, or a fraction like 0.5). scheduleHours defines the cadence between bench evaluations; a sub-hour cadence is rejected as unreasonable.","triggerScenarios":"validatePodBench() reads bench.scheduleHours, requireNumber() passes (it is a finite number), but the value is < 1.","commonSituations":"scheduleHours set to 0 (disabled sentinel); a fractional value meant to mean minutes; a negative value from a misconfigured default; a template that confused hours with minutes.","solutions":["Set bench.scheduleHours to an integer >= 1 (e.g., 24 for daily, 168 for weekly)","If you need sub-hour cadence, that is not supported by the bench scheduler — reconsider the requirement"],"exampleFix":"// before:\n\"scheduleHours\": 0 // throws\n\n// after:\n\"scheduleHours\": 24 // daily","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    console.error(`scheduleHours 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":["Set bench.scheduleHours to an integer >= 1 (24 for daily, 168 for weekly)","Do not confuse hours with minutes — the field is hours, not minutes","Validate templates with validatePodTemplate() before deployment"],"tags":["validation","pod-template","schema","bench","numbers"],"backgroundTag":null,"analyzedSha":"6b01dc5a687b26b3e218f796de45ec51f8fa9e8c","analyzedAt":"2026-08-12T13:20:50.148Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}