{"record":{"id":"65ade81b6e8d3b12","repo":"deepseek-ai/deepseek-harness","slug":"failed-to-register-the-report-tool-and-roll-back-i","errorCode":null,"errorMessage":"failed to register the report tool and roll back its prompt guidance","messagePattern":"failed to register the report tool and roll back its prompt guidance","errorType":"exception","errorClass":"AggregateError","httpStatus":null,"severity":"error","filePath":"packages/subagent/tool-subagent-report/src/index.ts","lineNumber":109,"sourceCode":"          text: `report accepted by the agent that started you as message ${value.messageId}`,\n        }],\n      },\n      async execute(args, exec) {\n        const content: ContentBlock[] = [{ type: 'text', text: args.output }]\n        // Scope-local resolution guarantees an Agent. The service still verifies\n        // its exact live Activation identity at the authority boundary.\n        const messageId = await ctx.subagents.reportFrom(exec.agent as Agent, content, {\n          delivery,\n          signal: exec.signal,\n        })\n        return { messageId }\n      },\n    }))\n  } catch (error: unknown) {\n    try {\n      disposeSection()\n    } 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    }","sourceCodeStart":91,"sourceCodeEnd":127,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/subagent/tool-subagent-report/src/index.ts#L91-L127","documentation":"Error \"failed to register the report tool and roll back its prompt guidance\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/subagent/tool-subagent-report/src/index.ts:109 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Investigate the registration failure cause; reload the plugin so tool and prompt guidance stay consistent."],"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"}