{"record":{"id":"38a85d7cae05347a","repo":"ruvnet/ruflo","slug":"invalid-enum","errorCode":"INVALID_ENUM","errorMessage":"dataSensitivity must be one of: ${DATA_SENSITIVITY_LEVELS.join(', ')} (got \"${dataPolicy.dataSensitivity}\")","messagePattern":"dataSensitivity must be one of: (.+?) \\(got \"(.+?)\"\\)","errorType":"validation","errorClass":"ValidationError","httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/guidance/src/manifest-validator.ts","lineNumber":541,"sourceCode":"  /**\n   * Validate data policy fields.\n   */\n  validateDataPolicy(dataPolicy: AgentCellManifest['dataPolicy']): ValidationError[] {\n    const errors: ValidationError[] = [];\n\n    if (!dataPolicy) {\n      errors.push({\n        code: 'MISSING_FIELD',\n        field: 'dataPolicy',\n        message: 'Data policy is required',\n        severity: 'error',\n      });\n      return errors;\n    }\n\n    if (!DATA_SENSITIVITY_LEVELS.includes(dataPolicy.dataSensitivity as DataSensitivity)) {\n      errors.push({\n        code: 'INVALID_ENUM',\n        field: 'dataPolicy.dataSensitivity',\n        message: `dataSensitivity must be one of: ${DATA_SENSITIVITY_LEVELS.join(', ')} (got \"${dataPolicy.dataSensitivity}\")`,\n        severity: 'error',\n      });\n    }\n\n    if (typeof dataPolicy.retentionDays !== 'number' || dataPolicy.retentionDays < 0) {\n      errors.push({\n        code: 'INVALID_VALUE',\n        field: 'dataPolicy.retentionDays',\n        message: 'retentionDays must be a non-negative number',\n        severity: 'error',\n      });\n    }\n\n    if (!dataPolicy.exportControls) {\n      errors.push({\n        code: 'MISSING_FIELD',","sourceCodeStart":523,"sourceCodeEnd":559,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/guidance/src/manifest-validator.ts#L523-L559","documentation":"validateDataPolicy() found dataPolicy.dataSensitivity is not one of the allowed enum levels (public/internal/confidential/restricted set defined by DATA_SENSITIVITY_LEVELS). INVALID_ENUM manifest error: the sensitivity tag controls handling rules, so unrecognized values are rejected with the permitted list echoed.","triggerScenarios":"Thrown at v3/@claude-flow/guidance/src/manifest-validator.ts:541 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set dataSensitivity to one of the enumerated levels shown in the message."],"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"}