{"record":{"id":"cdfd489eea1bea71","repo":"deepseek-ai/deepseek-harness","slug":"workspace-id-order-write-and-record-rollback","errorCode":null,"errorMessage":"workspace '${id}' order write and record rollback both failed; the pending marker remains recoverable","messagePattern":"workspace '(.+?)' order write and record rollback both failed; the pending marker remains recoverable","errorType":"exception","errorClass":"AggregateError","httpStatus":null,"severity":"error","filePath":"packages/workspace/workspace/src/index.ts","lineNumber":340,"sourceCode":"          [error, rollbackError],\n          `workspace '${id}' record write and pending-marker rollback both failed`,\n        )\n      }\n      throw error\n    }\n\n    try {\n      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> {","sourceCodeStart":322,"sourceCodeEnd":358,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workspace/workspace/src/index.ts#L322-L358","documentation":"Error \"workspace '${id}' order write and record rollback both failed; the pending marker remains recoverable\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workspace/workspace/src/index.ts:340 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restore writability of the workspace store (permissions, disk space), then clear the recoverable pending marker and re-apply the order."],"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"}