{"record":{"id":"c987538763d7ef20","repo":"deepseek-ai/deepseek-harness","slug":"workspace-id-order-write-and-pending-marker-r","errorCode":null,"errorMessage":"workspace '${id}' order write and pending-marker rollback both failed","messagePattern":"workspace '(.+?)' order write and pending-marker rollback both failed","errorType":"exception","errorClass":"AggregateError","httpStatus":null,"severity":"error","filePath":"packages/workspace/workspace/src/index.ts","lineNumber":348,"sourceCode":"      await this.setState({\n        initialized: true,\n        workspaceIds: [id, ...state.workspaceIds],\n        archivedSessionIds: state.archivedSessionIds,\n      })\n    } catch (error) {\n      this.entities.delete(id)\n      try {\n        await table.delete(id)\n      } catch (rollbackError) {\n        throw new AggregateError(\n          [error, rollbackError],\n          `workspace '${id}' order write and record rollback both failed; the pending marker remains recoverable`,\n        )\n      }\n      try {\n        await this.setState(state)\n      } catch (rollbackError) {\n        throw new AggregateError(\n          [error, rollbackError],\n          `workspace '${id}' order write and pending-marker rollback both failed`,\n        )\n      }\n      throw error\n    }\n    return entity\n  }\n\n  private async deleteKnown(id: WorkspaceId): Promise<boolean> {\n    const entity = this.entities.get(id)\n    if (entity === undefined) return false\n    const state = this.requireState()\n    const nextState = {\n      initialized: true,\n      workspaceIds: state.workspaceIds.filter(workspaceId => workspaceId !== id),\n      archivedSessionIds: state.archivedSessionIds,\n    }","sourceCodeStart":330,"sourceCodeEnd":366,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workspace/workspace/src/index.ts#L330-L366","documentation":"Error \"workspace '${id}' order write and pending-marker rollback both failed\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workspace/workspace/src/index.ts:348 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restore writability of the workspace store, then reconcile the pending marker with the order file manually."],"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"}