{"record":{"id":"742c249b058d0a05","repo":"deepseek-ai/deepseek-harness","slug":"session-not-live","errorCode":"SESSION_NOT_LIVE","errorMessage":"session \"${source.id}\" is not the live store instance","messagePattern":"session \"(.+?)\" is not the live store instance","errorType":"exception","errorClass":"SessionForkError","httpStatus":null,"severity":"error","filePath":"packages/core/session/src/index.ts","lineNumber":1151,"sourceCode":"        'OPEN_TURN',\n      )\n    }\n\n    return events.slice(0, boundary + 1)\n  }\n\n  private _resolveForkSource(source: SessionForkSource): Session {\n    if (typeof source === 'string') {\n      const session = this.get(source)\n      if (session === undefined) throw new SessionForkError(`session \"${source}\" not found`, 'SESSION_NOT_FOUND')\n      return session\n    }\n\n    const live = this.get(source.id)\n    if (live === undefined) {\n      throw new SessionForkError(`session \"${source.id}\" not found`, 'SESSION_NOT_FOUND')\n    }\n    if (live !== source) throw new SessionForkError(`session \"${source.id}\" is not the live store instance`, 'SESSION_NOT_LIVE')\n    return source\n  }\n\n}\n\nexport default SessionStore\n","sourceCodeStart":1133,"sourceCodeEnd":1158,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/session/src/index.ts#L1133-L1158","documentation":"Identity check in _resolveForkSource: a session object was passed as the fork source, and although a live session with the same id exists, it is not the same object. The passed Session is stale, projected, or from another store, so forking from it could diverge from the store's canonical event log.","triggerScenarios":"Thrown at packages/core/session/src/index.ts:1151 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass the store's live instance (re-fetch with store.get(source.id))","Or pass the session id as a string and let the store resolve it","Discard Session objects captured before a store reload/disposal"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}