deepseek-ai/deepseek-harness · error · Error

workspace domain is inconsistent: pending ${pending.operatio

Error message

workspace domain is inconsistent: pending ${pending.operation} workspace '${pending.workspaceId}' is still present in registry order

What it means

Error "workspace domain is inconsistent: pending ${pending.operation} workspace '${pending.workspaceId}' is still present in registry order" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/workspace/workspace/src/index.ts:413

      // than reporting failure after the requested state became true.
      this.ctx.logger.warn(
        `workspace '${id}' was deleted but its pending marker could not be cleared: ${String(error)}`,
      )
    }
    return true
  }

  /**
   * Complete the one mutation explicitly named by durable state. Unexplained
   * order/table divergence still reaches {@link validateStoredState} and
   * fails loud; this path never guesses which operation created a row from its shape alone.
   */
  private async recoverPendingMutation(): Promise<void> {
    const state = this.requireState()
    const pending = state.pendingMutation
    if (pending === undefined) return
    if (state.workspaceIds.includes(pending.workspaceId)) {
      throw new Error(
        `workspace domain is inconsistent: pending ${pending.operation} workspace `
        + `'${pending.workspaceId}' is still present in registry order`,
      )
    }
    await this.requireTable().delete(pending.workspaceId)
    await this.setState({
      initialized: state.initialized,
      workspaceIds: state.workspaceIds,
      archivedSessionIds: state.archivedSessionIds,
    })
  }

  private async bootstrap(headers: readonly SessionHeader[]): Promise<void> {
    const table = this.requireTable()
    const state = this.requireState()
    const groupsByPath = new Map<string, SessionHeader[]>()
    for (const header of headers) {
      const path = this.sessionPaths.get(header.id)

View on GitHub (pinned to b150a551b8)

Solutions

  1. Remove the stale pending marker (or finish the pending operation) so the registry order and marker agree, then restart.

When it happens

Trigger: Thrown at packages/workspace/workspace/src/index.ts:413 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/08620d696861ba97. Report an issue: GitHub.