{"record":{"id":"95a966c491e5e92b","repo":"deepseek-ai/deepseek-harness","slug":"failed-to-revoke-report-tool-and-prompt-registrati","errorCode":null,"errorMessage":"failed to revoke report tool and prompt registrations","messagePattern":"failed to revoke report tool and prompt registrations","errorType":"exception","errorClass":"AggregateError","httpStatus":null,"severity":"error","filePath":"packages/subagent/tool-subagent-report/src/index.ts","lineNumber":126,"sourceCode":"    } catch (rollbackError: unknown) {\n      throw new AggregateError(\n        [error, rollbackError],\n        'failed to register the report tool and roll back its prompt guidance',\n      )\n    }\n    throw error\n  }\n  return () => {\n    const failures: unknown[] = []\n    for (const dispose of [disposeTool, disposeSection]) {\n      try {\n        dispose()\n      } catch (error: unknown) {\n        failures.push(error)\n      }\n    }\n    if (failures.length > 0) {\n      throw new AggregateError(failures, 'failed to revoke report tool and prompt registrations')\n    }\n  }\n}\n\n/**\n * Register the continuable-child contribution.\n * @param ctx - context carrying tools, the system prompt, and the subagent service.\n * @param config - deployment scheduling policy.\n */\nexport function apply(ctx: Context, config: Config = {}): void {\n  // Config() applies the schema default at runtime; the schemastery return\n  // type keeps the input's optional shape, so assert the resolved one.\n  const { reportDelivery } = Config(config) as { reportDelivery: SubagentReportDelivery }\n  ctx.subagents.registerContinuableSetup(childCtx =>\n    installReportTool(childCtx, ctx, reportDelivery))\n}\n","sourceCodeStart":108,"sourceCodeEnd":143,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/subagent/tool-subagent-report/src/index.ts#L108-L143","documentation":"Error \"failed to revoke report tool and prompt registrations\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/subagent/tool-subagent-report/src/index.ts:126 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the attached revocation failure causes; restart the context to drop stale registrations."],"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"}