deepseek-ai/deepseek-harness · error · Error
Ralph round child failed before producing a structured…
Error message
Ralph round ${result.roundsStarted} child failed before producing a structured report. What it means
The Ralph tool surfaces the fixed script's 'round-failed' terminal status: the child agent at the named round errored rather than producing a structured report, ending the loop without a completion or concrete blocker.
Solutions
- Inspect why the child failed before reporting (provider error, crash); fix the provider or its configuration and re-run.
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at packages/workflow/tool-ralph/src/index.ts:465 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/fc25f78fbb573910.
Report an issue: GitHub.
Appendix: source
Thrown at packages/workflow/tool-ralph/src/index.ts:465
const run: WorkflowRun = ctx.workflowEngine.start({
script: RALPH_SCRIPT,
meta: RALPH_META,
args: { objective, maxRounds, maxHandoffChars: resolved.maxHandoffChars },
subagentProvider: resolved.subagentProvider,
maxTotalAgents: maxRounds,
parent,
signal: exec.signal,
})
const onAbort = (): void => { run.cancel('parent step aborted') }
exec.signal.addEventListener('abort', onAbort, { once: true })
if (exec.signal.aborted) run.cancel('parent step aborted')
try {
const settled = await run.result
const error = stopReasonError(settled)
if (error !== undefined) throw new Error(error)
const value = readRunResult(settled.value, maxRounds, resolved.maxHandoffChars)
if (value.status === 'round-failed') throw new Error(renderRoundFailure(value, resolved.maxResultChars))
return {
runId: run.id,
agentsStarted: settled.agentsStarted,
result: value as unknown as JsonValue,
}
} finally {
exec.signal.removeEventListener('abort', onAbort)
await run.dispose()
}
},
presentCall,
presentResult,
}))
}
View on GitHub (pinned to b150a551b8)