{"record":{"id":"4c65f373c4916282","repo":"deepseek-ai/deepseek-harness","slug":"domain-this-name-domain-changed-listener-fai","errorCode":null,"errorMessage":"domain '${this.name}': domain/changed listener failed: ${String(error)}","messagePattern":"domain '(.+?)': domain/changed listener failed: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/storage/storage-domain/src/domain.ts","lineNumber":259,"sourceCode":"    await this.unit.close()\n    this.closed = true\n    this.onClosed()\n  }\n\n  /**\n   * Dispatch one post-durability change notification, containing observer\n   * failures: the write is already committed (medium and memory both hold\n   * the new state), so a throwing listener must not retroactively reject it.\n   */\n  private emitChanged(change: DomainChanged): void {\n    try {\n      this.ctx.emit('domain/changed', change)\n    } catch (error) {\n      // Swallows synchronous observer exceptions only: emit dispatches\n      // listeners inline and nothing else runs in the try. The event is a\n      // notification, not a transaction participant — the commit point has\n      // passed, so containment (with a log) is the only correct outcome.\n      this.ctx.logger.warn(`domain '${this.name}': domain/changed listener failed: ${String(error)}`)\n    }\n  }\n\n  private enqueue<T>(job: () => Promise<T>): Promise<T> {\n    if (this.disposing) {\n      return Promise.reject(new DomainError('closed', `domain '${this.name}' is closed`))\n    }\n    const result = this.chain.then(job)\n    this.chain = result.then(noop, noop)\n    return result\n  }\n\n  private assertReadable(): void {\n    if (this.closed) {\n      throw new DomainError('closed', `domain '${this.name}' is closed`)\n    }\n  }\n}","sourceCodeStart":241,"sourceCodeEnd":277,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/storage/storage-domain/src/domain.ts#L241-L277","documentation":"Error \"domain '${this.name}': domain/changed listener failed: ${String(error)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/storage/storage-domain/src/domain.ts:259 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the failing domain/changed listener for the named domain and re-register it."],"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"}