ruvnet/ruflo · error · ValidationError

INVALID_ENUM

INVALID_ENUM

Error message

dataSensitivity must be one of: ${DATA_SENSITIVITY_LEVELS.join(', ')} (got "${dataPolicy.dataSensitivity}")

What it means

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.

Solutions

  1. Set dataSensitivity to one of the enumerated levels shown in the message.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at v3/@claude-flow/guidance/src/manifest-validator.ts:541 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/38a85d7cae05347a. Report an issue: GitHub.

Appendix: source

Thrown at v3/@claude-flow/guidance/src/manifest-validator.ts:541

  /**
   * Validate data policy fields.
   */
  validateDataPolicy(dataPolicy: AgentCellManifest['dataPolicy']): ValidationError[] {
    const errors: ValidationError[] = [];

    if (!dataPolicy) {
      errors.push({
        code: 'MISSING_FIELD',
        field: 'dataPolicy',
        message: 'Data policy is required',
        severity: 'error',
      });
      return errors;
    }

    if (!DATA_SENSITIVITY_LEVELS.includes(dataPolicy.dataSensitivity as DataSensitivity)) {
      errors.push({
        code: 'INVALID_ENUM',
        field: 'dataPolicy.dataSensitivity',
        message: `dataSensitivity must be one of: ${DATA_SENSITIVITY_LEVELS.join(', ')} (got "${dataPolicy.dataSensitivity}")`,
        severity: 'error',
      });
    }

    if (typeof dataPolicy.retentionDays !== 'number' || dataPolicy.retentionDays < 0) {
      errors.push({
        code: 'INVALID_VALUE',
        field: 'dataPolicy.retentionDays',
        message: 'retentionDays must be a non-negative number',
        severity: 'error',
      });
    }

    if (!dataPolicy.exportControls) {
      errors.push({
        code: 'MISSING_FIELD',

View on GitHub (pinned to fa13ee4ad6)