{"record":{"id":"dd3eaf922964262d","repo":"deepseek-ai/deepseek-harness","slug":"cannot-reorder-unknown-workspace-workspaceid","errorCode":null,"errorMessage":"cannot reorder unknown workspace '${workspaceId}'","messagePattern":"cannot reorder unknown workspace '(.+?)'","errorType":"exception","errorClass":"WorkspaceOrderInvalidError","httpStatus":null,"severity":"error","filePath":"packages/workspace/workspace/src/index.ts","lineNumber":213,"sourceCode":"   * published. Unknown ids are an idempotent no-op for domain callers.\n   * @param id - Workspace registration to remove.\n   * @returns `true` when a record was deleted, `false` when it was unknown.\n   */\n  delete(id: WorkspaceId): Promise<boolean> {\n    return this.enqueueOperation(() => this.deleteKnown(id))\n  }\n\n  /**\n   * Move one workspace within the durable display order, DOM-insertBefore-like.\n   * With an anchor it lands before that workspace; without one it appends.\n   * @param id - Workspace to move.\n   * @param beforeId - Workspace anchor; omitted appends.\n   * @returns the complete committed workspace order.\n   */\n  insertBefore(id: WorkspaceId, beforeId?: WorkspaceId): Promise<readonly WorkspaceId[]> {\n    return this.enqueueOperation(async () => {\n      const state = this.requireState()\n      if (!state.workspaceIds.includes(id)) throw new WorkspaceOrderInvalidError(id)\n      if (beforeId !== undefined && !state.workspaceIds.includes(beforeId)) {\n        throw new WorkspaceOrderInvalidError(beforeId)\n      }\n      if (beforeId === id) return state.workspaceIds\n      const without = state.workspaceIds.filter(workspaceId => workspaceId !== id)\n      const at = beforeId === undefined ? without.length : without.indexOf(beforeId)\n      const workspaceIds = [...without.slice(0, at), id, ...without.slice(at)]\n      if (sameIds(workspaceIds, state.workspaceIds)) return state.workspaceIds\n      await this.setState({ ...state, workspaceIds })\n      return workspaceIds\n    })\n  }\n\n  /**\n   * The registry-global archive set: sessions hidden from every grouping\n   * surface. Archiving never touches workspace accounting — an archived\n   * session keeps its `sessionIds` slot so unarchiving restores its position.\n   * @returns the archived session ids in archive order.","sourceCodeStart":195,"sourceCodeEnd":231,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workspace/workspace/src/index.ts#L195-L231","documentation":"Error \"cannot reorder unknown workspace '${workspaceId}'\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workspace/workspace/src/index.ts:213 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a workspace id that exists in the registry when reordering."],"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"}