{"record":{"id":"1eabecdb87e8cd6a","repo":"deepseek-ai/deepseek-harness","slug":"ralph-workflow-returned-budget-limited-before-the","errorCode":null,"errorMessage":"Ralph workflow returned budget-limited before the round limit","messagePattern":"Ralph workflow returned budget-limited before the round limit","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/workflow/tool-ralph/src/index.ts","lineNumber":308,"sourceCode":"  }\n  const roundsStarted = value['roundsStarted']\n  switch (value['status']) {\n    case 'complete':\n      if (Object.keys(value).sort().join(',') !== 'report,roundsStarted,status') {\n        throw new Error('Ralph workflow returned a malformed terminal result')\n      }\n      return { status: 'complete', roundsStarted, report: readReport(value['report'], 'complete', maxHandoffChars) }\n    case 'blocked':\n      if (Object.keys(value).sort().join(',') !== 'report,roundsStarted,status') {\n        throw new Error('Ralph workflow returned a malformed terminal result')\n      }\n      return { status: 'blocked', roundsStarted, report: readReport(value['report'], 'blocked', maxHandoffChars) }\n    case 'budget-limited':\n      if (Object.keys(value).sort().join(',') !== 'report,roundsStarted,status') {\n        throw new Error('Ralph workflow returned a malformed terminal result')\n      }\n      if (roundsStarted !== maxRounds) {\n        throw new Error('Ralph workflow returned budget-limited before the round limit')\n      }\n      return { status: 'budget-limited', roundsStarted, report: readReport(value['report'], 'continue', maxHandoffChars) }\n    case 'round-failed': {\n      if (Object.keys(value).sort().join(',') !== 'lastReport,roundsStarted,status') {\n        throw new Error('Ralph workflow returned a malformed terminal result')\n      }\n      if (roundsStarted === 1) {\n        if (value['lastReport'] !== null) {\n          throw new Error('Ralph workflow returned an invalid first-round failure')\n        }\n        return { status: 'round-failed', roundsStarted }\n      }\n      if (value['lastReport'] === null) {\n        throw new Error('Ralph workflow returned a round failure without its last handoff')\n      }\n      return {\n        status: 'round-failed',\n        roundsStarted,","sourceCodeStart":290,"sourceCodeEnd":326,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workflow/tool-ralph/src/index.ts#L290-L326","documentation":"Error \"Ralph workflow returned budget-limited before the round limit\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workflow/tool-ralph/src/index.ts:308 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Raise the applicable budget limit (e.g. maxTotalAgents) in the engine configuration, or reduce per-round agent fan-out so the run fits the budget."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}