{"record":{"id":"49ee12f19ddeb688","repo":"ruvnet/ruflo","slug":"budget-negative","errorCode":"BUDGET_NEGATIVE","errorMessage":"Budget field \"${key}\" must not be negative (got ${value})","messagePattern":"Budget field \"(.+?)\" must not be negative \\(got (.+?)\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/guidance/src/manifest-validator.ts","lineNumber":445,"sourceCode":"          message: `Budget field \"${key}\" is required`,\n          severity: 'error',\n        });\n        continue;\n      }\n\n      if (typeof value !== 'number' || Number.isNaN(value)) {\n        errors.push({\n          code: 'INVALID_TYPE',\n          field: `budgets.${key}`,\n          message: `Budget field \"${key}\" must be a number`,\n          severity: 'error',\n        });\n        continue;\n      }\n\n      if (value < 0) {\n        errors.push({\n          code: 'BUDGET_NEGATIVE',\n          field: `budgets.${key}`,\n          message: `Budget field \"${key}\" must not be negative (got ${value})`,\n          severity: 'error',\n        });\n      }\n\n      if (value > max) {\n        errors.push({\n          code: 'BUDGET_EXCEED',\n          field: `budgets.${key}`,\n          message: `Budget field \"${key}\" exceeds maximum (${value} > ${max})`,\n          severity: 'error',\n        });\n      }\n    }\n\n    return errors;\n  }","sourceCodeStart":427,"sourceCodeEnd":463,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/guidance/src/manifest-validator.ts#L427-L463","documentation":"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.","triggerScenarios":"Thrown at v3/@claude-flow/guidance/src/manifest-validator.ts:445 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a valid budget configuration with numeric, non-negative fields within the documented maximums."],"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"}