{"record":{"id":"e70d9216f5c2fb20","repo":"deepseek-ai/deepseek-harness","slug":"cannot-validate-session-id-session-persisten","errorCode":null,"errorMessage":"cannot validate session '${id}': session persistence holds no such session","messagePattern":"cannot validate session '(.+?)': session persistence holds no such session","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/workspace/workspace/src/index.ts","lineNumber":628,"sourceCode":"        )\n      }\n    }\n  }\n\n  private async readSessionHeader(id: SessionId): Promise<SessionHeader> {\n    const live = this.ctx.get('sessions')?.get(id)\n    if (live !== undefined) {\n      this.headers.set(id, live.header)\n      return live.header\n    }\n    const cached = this.headers.get(id)\n    if (cached !== undefined) return cached\n\n    const headers = await this.ctx.sessionPersistence.list()\n    await this.indexHeaders(headers)\n    const header = this.headers.get(id)\n    if (header === undefined) {\n      throw new Error(`cannot validate session '${id}': session persistence holds no such session`)\n    }\n    return header\n  }\n\n  private requireTable(): KvTable<WorkspaceId, WorkspaceRecord> {\n    if (this.table === undefined) throw new Error('workspace registry is not started yet')\n    return this.table\n  }\n\n  private requireState(): WorkspaceDomainState {\n    if (this.state === undefined) throw new Error('workspace registry is not started yet')\n    return this.state\n  }\n\n  private async setState(state: WorkspaceDomainState): Promise<void> {\n    await (this.global as DomainGlobal<WorkspaceDomainState>).set(state)\n    this.state = state\n  }","sourceCodeStart":610,"sourceCodeEnd":646,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workspace/workspace/src/index.ts#L610-L646","documentation":"Error \"cannot validate session '${id}': session persistence holds no such session\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workspace/workspace/src/index.ts:628 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the session id; the session must exist in persistence before it can be validated or attached."],"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"}