ruvnet/ruflo · error

BUDGET_NEGATIVE

BUDGET_NEGATIVE

Error message

Budget field "${key}" must not be negative (got ${value})

What it means

validateBudgets() found a numeric budget field whose value is negative (BUDGET_NEGATIVE error, non-fatal to the rest of validation). Budgets are quantities that cannot be negative; the field key and offending value are included in the emitted error entry.

Source

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

          message: `Budget field "${key}" is required`,
          severity: 'error',
        });
        continue;
      }

      if (typeof value !== 'number' || Number.isNaN(value)) {
        errors.push({
          code: 'INVALID_TYPE',
          field: `budgets.${key}`,
          message: `Budget field "${key}" must be a number`,
          severity: 'error',
        });
        continue;
      }

      if (value < 0) {
        errors.push({
          code: 'BUDGET_NEGATIVE',
          field: `budgets.${key}`,
          message: `Budget field "${key}" must not be negative (got ${value})`,
          severity: 'error',
        });
      }

      if (value > max) {
        errors.push({
          code: 'BUDGET_EXCEED',
          field: `budgets.${key}`,
          message: `Budget field "${key}" exceeds maximum (${value} > ${max})`,
          severity: 'error',
        });
      }
    }

    return errors;
  }

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Provide a valid budget configuration with numeric, non-negative fields within the documented maximums.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at v3/@claude-flow/guidance/src/manifest-validator.ts:445 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/49ee12f19ddeb688. Report an issue: GitHub.