{"record":{"id":"fed3e6b83eecd42d","repo":"deepseek-ai/deepseek-harness","slug":"workspace-domain-is-inconsistent-session-sessi","errorCode":null,"errorMessage":"workspace domain is inconsistent: session '${sessionId}' is accounted by both workspace '${holder}' and workspace '${id}'","messagePattern":"workspace domain is inconsistent: session '(.+?)' is accounted by both workspace '(.+?)' and workspace '(.+?)'","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/workspace/workspace/src/index.ts","lineNumber":543,"sourceCode":"        `workspace domain is inconsistent: workspace '${orphan as WorkspaceId}' is absent from registry order`,\n      )\n    }\n\n    const paths = new Map<string, WorkspaceId>()\n    const accounted = new Map<SessionId, WorkspaceId>()\n    for (const [id, record] of table.entries()) {\n      const pathHolder = paths.get(record.path)\n      if (pathHolder !== undefined) {\n        throw new Error(\n          `workspace domain is inconsistent: path '${record.path}' is claimed `\n          + `by both workspace '${pathHolder}' and workspace '${id}'`,\n        )\n      }\n      paths.set(record.path, id)\n      for (const sessionId of record.sessionIds) {\n        const holder = accounted.get(sessionId)\n        if (holder !== undefined) {\n          throw new Error(\n            `workspace domain is inconsistent: session '${sessionId}' is accounted `\n            + `by both workspace '${holder}' and workspace '${id}'`,\n          )\n        }\n        accounted.set(sessionId, id)\n      }\n    }\n  }\n\n  private rebuildEntities(): void {\n    this.entities.clear()\n    for (const id of this.requireState().workspaceIds) {\n      const record = this.requireTable().get(id) as WorkspaceRecord\n      this.entities.set(id, new WorkspaceEntity(this.host, id, record))\n    }\n  }\n\n  private async replaceHeaderIndex(headers: readonly SessionHeader[]): Promise<void> {","sourceCodeStart":525,"sourceCodeEnd":561,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workspace/workspace/src/index.ts#L525-L561","documentation":"Error \"workspace domain is inconsistent: session '${sessionId}' is accounted by both workspace '${holder}' and workspace '${id}'\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workspace/workspace/src/index.ts:543 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Detach the session from one of the two workspaces so it is accounted exactly once."],"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"}