{"record":{"id":"196238e5abefe6be","repo":"deepseek-ai/deepseek-harness","slug":"subagent-request-was-aborted-before-child-publicat","errorCode":null,"errorMessage":"subagent request was aborted before child publication","messagePattern":"subagent request was aborted before child publication","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/subagent/subagent-in-process-driver/src/index.ts","lineNumber":107,"sourceCode":"}\n\n/**\n * Establish and drive one in-process one-shot child. Fulfillment means the agent\n * is already published in the registry and transfers its turn, cancellation,\n * and disposal work through the returned run. Rejection means the agent\n * factory's unpublished creation transaction reached quiescence without\n * publishing a child. Every start appends its resolved descriptor inside the\n * child's initial turn.\n * @param request - the trusted typed start request, including its required signal.\n * @param options - the optional fork seed.\n * @returns a published holder-owned run.\n */\nexport async function startInProcessRun(\n  request: ResolvedSubagentStartRequest,\n  options: InProcessRunOptions,\n): Promise<SubagentRun> {\n  assertSubagentMaxDepth(request.maxDepth)\n  if (request.signal.aborted) throw prePublicationAbort()\n  const parent = request.parent\n  const childDepth = resolveChildDepth(parent, request.maxDepth)\n\n  const childId = SessionId(randomUUID())\n  const seed = options.seed\n  const activationBoundary = seed?.length ?? 0\n\n  // Capture before the first await: a later parent switch belongs to the\n  // parent's future.\n  const inherited = captureDelegatedPolicyOverrides(parent)\n\n  let structured: StructuredAttachment | undefined\n  const setup = (childCtx: Context): void => {\n    appendDelegatedPolicyOverrides((childCtx.agent as Agent).session, inherited)\n    applyChildComposition(childCtx, parent, {\n      persona: request.persona,\n      toolFilter: request.toolFilter,\n    })","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/subagent/subagent-in-process-driver/src/index.ts#L89-L125","documentation":"Error \"subagent request was aborted before child publication\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/subagent/subagent-in-process-driver/src/index.ts:107 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the subagent request and do not abort before the child is published."],"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"}