{"record":{"id":"729ef18ae8fbe83a","repo":"deepseek-ai/deepseek-harness","slug":"no-initiating-agent-is-active","errorCode":null,"errorMessage":"no initiating agent is active","messagePattern":"no initiating agent is active","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/agent/src/index.ts","lineNumber":324,"sourceCode":"   *   and inside an explicit clearing boundary.\n   * @throws when this service instance has been disposed.\n   */\n  currentInitiator(): Agent | undefined {\n    this.assertInitiatorsReadable()\n    return this.initiators.getStore()\n  }\n\n  /**\n   * Read the initiating Agent and fail when no initiator boundary is active.\n   * Use this for private helpers contractually below a driver, or for a\n   * deployment-owned outbound request whose contract forbids agentless calls.\n   * Generic or direct-call paths use optional lookup or explicit request fields.\n   * @returns the inherited Agent.\n   * @throws when no initiator is active or this service instance has been disposed.\n   */\n  requireInitiator(): Agent {\n    const agent = this.currentInitiator()\n    if (agent === undefined) throw new Error(NO_INITIATOR_MESSAGE)\n    return agent\n  }\n\n  /**\n   * Run an operation with one exact Agent as its process-local initiator. The\n   * exact synchronous value or Promise returned by the operation is preserved.\n   * Custom drivers and test harnesses wrap their complete returned foreground\n   * lifetime.\n   * A queue or wire receiver may establish this boundary only after validating\n   * explicit identity and resolving the exact live Agent; this method does neither.\n   * Detached work remains owned by the subsystem that starts it.\n   * @param agent - initiating Agent to inherit; presence is neither liveness proof nor authorization.\n   * @param operation - synchronous or asynchronous operation to invoke.\n   * @returns the exact value returned by `operation`.\n   * @throws when the initiator scope is closing/disposed, or when `operation` throws.\n   */\n  withInitiator<T>(agent: Agent, operation: () => T): T {\n    return this.runWithInitiator(agent, operation)","sourceCodeStart":306,"sourceCodeEnd":342,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/agent/src/index.ts#L306-L342","documentation":"Error \"no initiating agent is active\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/agent/src/index.ts:324 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start an initiating agent before calling this API."],"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"}