deepseek-ai/deepseek-harness · error · AggregateError

failed to register the report tool and roll back its prompt

Error message

failed to register the report tool and roll back its prompt guidance

What it means

Error "failed to register the report tool and roll back its prompt guidance" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/subagent/tool-subagent-report/src/index.ts:109

          text: `report accepted by the agent that started you as message ${value.messageId}`,
        }],
      },
      async execute(args, exec) {
        const content: ContentBlock[] = [{ type: 'text', text: args.output }]
        // Scope-local resolution guarantees an Agent. The service still verifies
        // its exact live Activation identity at the authority boundary.
        const messageId = await ctx.subagents.reportFrom(exec.agent as Agent, content, {
          delivery,
          signal: exec.signal,
        })
        return { messageId }
      },
    }))
  } catch (error: unknown) {
    try {
      disposeSection()
    } catch (rollbackError: unknown) {
      throw new AggregateError(
        [error, rollbackError],
        'failed to register the report tool and roll back its prompt guidance',
      )
    }
    throw error
  }
  return () => {
    const failures: unknown[] = []
    for (const dispose of [disposeTool, disposeSection]) {
      try {
        dispose()
      } catch (error: unknown) {
        failures.push(error)
      }
    }
    if (failures.length > 0) {
      throw new AggregateError(failures, 'failed to revoke report tool and prompt registrations')
    }

View on GitHub (pinned to b150a551b8)

Solutions

  1. Investigate the registration failure cause; reload the plugin so tool and prompt guidance stay consistent.

When it happens

Trigger: Thrown at packages/subagent/tool-subagent-report/src/index.ts:109 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/65ade81b6e8d3b12. Report an issue: GitHub.