{"record":{"id":"5fec56b586c2f987","repo":"deepseek-ai/deepseek-harness","slug":"workspace-id-record-write-and-pending-marker","errorCode":null,"errorMessage":"workspace '${id}' record write and pending-marker rollback both failed","messagePattern":"workspace '(.+?)' record write and pending-marker rollback both failed","errorType":"exception","errorClass":"AggregateError","httpStatus":null,"severity":"error","filePath":"packages/workspace/workspace/src/index.ts","lineNumber":321,"sourceCode":"    this.entities.set(id, entity)\n    const pendingState: WorkspaceDomainState = {\n      ...state,\n      pendingMutation: { operation: 'create', workspaceId: id },\n    }\n    try {\n      await this.setState(pendingState)\n    } catch (error) {\n      this.entities.delete(id)\n      throw error\n    }\n    try {\n      await table.put(id, record)\n    } catch (error) {\n      this.entities.delete(id)\n      try {\n        await this.setState(state)\n      } catch (rollbackError) {\n        throw new AggregateError(\n          [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) {","sourceCodeStart":303,"sourceCodeEnd":339,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workspace/workspace/src/index.ts#L303-L339","documentation":"Error \"workspace '${id}' record write and pending-marker rollback both failed\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workspace/workspace/src/index.ts:321 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check filesystem permissions and free space on the workspace store; after restoring writability, reconcile the pending marker and record 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"}