deepseek-ai/deepseek-harness · error · Error
workspace domain is inconsistent: workspace '${orphan as Wor
Error message
workspace domain is inconsistent: workspace '${orphan as WorkspaceId}' is absent from registry order What it means
Error "workspace domain is inconsistent: workspace '${orphan as WorkspaceId}' is absent from registry order" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/workspace/workspace/src/index.ts:524
}
await this.setState({ initialized: true, workspaceIds, archivedSessionIds: state.archivedSessionIds })
}
private validateStoredState(state: WorkspaceDomainState): void {
const table = this.requireTable()
const order = new Set<WorkspaceId>()
for (const id of state.workspaceIds) {
if (order.has(id)) {
throw new Error(`workspace domain is inconsistent: registry order repeats workspace '${id}'`)
}
if (table.get(id) === undefined) {
throw new Error(`workspace domain is inconsistent: registry order references missing workspace '${id}'`)
}
order.add(id)
}
if (state.initialized && order.size !== table.size) {
const orphan = [...table.keys()].find(id => !order.has(id))
throw new Error(
`workspace domain is inconsistent: workspace '${orphan as WorkspaceId}' is absent from registry order`,
)
}
const paths = new Map<string, WorkspaceId>()
const accounted = new Map<SessionId, WorkspaceId>()
for (const [id, record] of table.entries()) {
const pathHolder = paths.get(record.path)
if (pathHolder !== undefined) {
throw new Error(
`workspace domain is inconsistent: path '${record.path}' is claimed `
+ `by both workspace '${pathHolder}' and workspace '${id}'`,
)
}
paths.set(record.path, id)
for (const sessionId of record.sessionIds) {
const holder = accounted.get(sessionId)
if (holder !== undefined) {View on GitHub (pinned to b150a551b8)
Solutions
- Add the orphan workspace back to the registry order, or delete its record if it should not exist.
When it happens
Trigger: Thrown at packages/workspace/workspace/src/index.ts:524 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/1074d7c5a0f82d25.
Report an issue: GitHub.