{"record":{"id":"81628df477ee6529","repo":"deepseek-ai/deepseek-harness","slug":"ralph-subagent-provider-name-inherits-parent","errorCode":null,"errorMessage":"Ralph subagent provider \"${name}\" inherits parent context; Ralph requires a fresh provider","messagePattern":"Ralph subagent provider \"(.+?)\" inherits parent context; Ralph requires a fresh provider","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/workflow/tool-ralph/src/index.ts","lineNumber":229,"sourceCode":"    throw new TypeError('Ralph maxRounds must be a positive safe integer')\n  }\n  if (value > ceiling) {\n    throw new TypeError(`Ralph maxRounds ${value} exceeds the deployment ceiling ${ceiling}`)\n  }\n  return value\n}\n\n/** Require the configured route to mean a genuinely fresh structured child. */\nfunction requireFreshProvider(ctx: Context, name: string): SubagentProvider {\n  const provider = ctx.subagents.getProvider(name)\n  if (provider === undefined) {\n    throw new Error(`Ralph subagent provider \"${name}\" is not registered`)\n  }\n  if (!provider.capabilities.outputSchema) {\n    throw new Error(`Ralph subagent provider \"${name}\" does not support structured output`)\n  }\n  if (provider.inheritsParentContext) {\n    throw new Error(`Ralph subagent provider \"${name}\" inherits parent context; Ralph requires a fresh provider`)\n  }\n  return provider\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n  return typeof value === 'object' && value !== null && !Array.isArray(value)\n}\n\nfunction normalizedText(value: unknown): value is string {\n  return typeof value === 'string' && value.length > 0 && value === value.trim()\n}\n\nfunction normalizedList(value: unknown): value is string[] {\n  return Array.isArray(value) && value.every(normalizedText)\n}\n\n/** Defensively decode the fixed script's report across a provider boundary. */\nfunction readReport(value: unknown, expectedStatus: RalphRoundStatus, maxChars: number): RalphRoundReport {","sourceCodeStart":211,"sourceCodeEnd":247,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workflow/tool-ralph/src/index.ts#L211-L247","documentation":"Error \"Ralph subagent provider \"${name}\" inherits parent context; Ralph requires a fresh provider\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workflow/tool-ralph/src/index.ts:229 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a subagent provider that starts each child with fresh context; providers that inherit the parent context are not usable for Ralph."],"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"}