{"record":{"id":"108a8dfc18b41f47","repo":"deepseek-ai/deepseek-harness","slug":"workspace-id-record-deletion-and-registry-ord","errorCode":null,"errorMessage":"workspace '${id}' record deletion and registry-order rollback both failed","messagePattern":"workspace '(.+?)' record deletion and registry-order rollback both failed","errorType":"exception","errorClass":"AggregateError","httpStatus":null,"severity":"error","filePath":"packages/workspace/workspace/src/index.ts","lineNumber":383,"sourceCode":"      archivedSessionIds: state.archivedSessionIds,\n    }\n    await this.setState({\n      ...nextState,\n      pendingMutation: { operation: 'delete', workspaceId: id },\n    })\n    this.entities.delete(id)\n    try {\n      await this.requireTable().delete(id)\n    } catch (error) {\n      this.entities.set(id, entity)\n      try {\n        await this.setState(state)\n      } catch (rollbackError) {\n        // The durable marker still says to finish deletion, so the cache must\n        // agree with that recoverable direction rather than republish a row\n        // absent from the persisted order.\n        this.entities.delete(id)\n        throw new AggregateError(\n          [error, rollbackError],\n          `workspace '${id}' record deletion and registry-order rollback both failed`,\n        )\n      }\n      throw error\n    }\n    try {\n      await this.setState(nextState)\n    } catch (error) {\n      // The deletion committed at the table write and was already published\n      // to Host streams. Keep the durable marker for startup recovery rather\n      // than reporting failure after the requested state became true.\n      this.ctx.logger.warn(\n        `workspace '${id}' was deleted but its pending marker could not be cleared: ${String(error)}`,\n      )\n    }\n    return true\n  }","sourceCodeStart":365,"sourceCodeEnd":401,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workspace/workspace/src/index.ts#L365-L401","documentation":"Error \"workspace '${id}' record deletion and registry-order rollback both failed\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workspace/workspace/src/index.ts:383 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restore writability of the workspace store, then reconcile the leftover record or registry-order entry 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"}