{"record":{"id":"8ba355110dd7a945","repo":"ruvnet/ruflo","slug":"warning-flag-depends-on-dep-which-is-di","errorCode":null,"errorMessage":"Warning: '${flag}' depends on '${dep}' which is disabled. '${flag}' may not work correctly.","messagePattern":"Warning: '(.+?)' depends on '(.+?)' which is disabled\\. '(.+?)' may not work correctly\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/integration/src/feature-flags.ts","lineNumber":443,"sourceCode":"  private loadFromEnvironment(): void {\n    for (const flag of Object.keys(FEATURE_FLAG_DEFINITIONS)) {\n      const envVar = `CLAUDE_FLOW_${flag.replace(/([A-Z])/g, '_$1').toUpperCase()}`;\n      const envValue = process.env[envVar];\n\n      if (envValue !== undefined) {\n        const boolValue = envValue.toLowerCase() === 'true' || envValue === '1';\n        this.flags[flag as keyof FeatureFlags] = boolValue;\n        this.sources.set(flag as keyof FeatureFlags, 'environment');\n      }\n    }\n  }\n\n  private validateDependencies(): void {\n    for (const [flag, info] of Object.entries(FEATURE_FLAG_DEFINITIONS)) {\n      if (this.isEnabled(flag as keyof FeatureFlags)) {\n        for (const dep of info.dependencies) {\n          if (!this.isEnabled(dep)) {\n            console.warn(\n              `Warning: '${flag}' depends on '${dep}' which is disabled. ` +\n              `'${flag}' may not work correctly.`\n            );\n          }\n        }\n      }\n    }\n  }\n\n  private getDependentFlags(flag: keyof FeatureFlags): (keyof FeatureFlags)[] {\n    return Object.entries(FEATURE_FLAG_DEFINITIONS)\n      .filter(([_, info]) => info.dependencies.includes(flag))\n      .map(([name]) => name as keyof FeatureFlags);\n  }\n}\n\n/**\n * Create and initialize a feature flag manager","sourceCodeStart":425,"sourceCodeEnd":461,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/integration/src/feature-flags.ts#L425-L461","documentation":"Log warning from validateDependencies (during initialize): a feature depends on another feature that is currently disabled, so the dependent feature may not work correctly — a static consistency warning over the flag graph.","triggerScenarios":"Thrown at v3/@claude-flow/integration/src/feature-flags.ts:443 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable the dependency named in the warning, or disable the dependent flag to avoid incorrect behavior."],"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-14T00:17:10.932Z"}