{"record":{"id":"612e94e1d9abe55f","repo":"deepseek-ai/deepseek-harness","slug":"session-not-found-612e94","errorCode":"SESSION_NOT_FOUND","errorMessage":"session \"${source}\" not found","messagePattern":"session \"(.+?)\" not found","errorType":"exception","errorClass":"SessionForkError","httpStatus":null,"severity":"error","filePath":"packages/core/session/src/index.ts","lineNumber":1143,"sourceCode":"        'INVALID_BOUNDARY',\n      )\n    }\n    const lastTurnBoundary = events.slice(0, boundary + 1)\n      .findLast(event => event.type === 'turn/start' || event.type === 'turn/end')\n    if (lastTurnBoundary?.type === 'turn/start') {\n      throw new SessionForkError(\n        `fork boundary ${boundary} in session \"${session.id}\" ends inside open turn ${lastTurnBoundary.data.turn}`,\n        '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":1125,"sourceCodeEnd":1158,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/session/src/index.ts#L1125-L1158","documentation":"Error \"session \"${source}\" not found\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/session/src/index.ts:1143 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"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"}