deepseek-ai/deepseek-harness · error · Error
workspace domain is inconsistent: registry order references
Error message
workspace domain is inconsistent: registry order references missing workspace '${id}' What it means
Error "workspace domain is inconsistent: registry order references missing workspace '${id}'" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/workspace/workspace/src/index.ts:518
|| String(leftId).localeCompare(String(rightId))
})
.map(([id]) => id)
if (!sameIds(state.workspaceIds, workspaceIds)) {
await this.setState({ initialized: false, workspaceIds, archivedSessionIds: state.archivedSessionIds })
}
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}'`,View on GitHub (pinned to b150a551b8)
Solutions
- Remove the dangling id from the registry order, or restore the missing workspace record.
When it happens
Trigger: Thrown at packages/workspace/workspace/src/index.ts:518 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/1230ea633306bfb9.
Report an issue: GitHub.