deepseek-ai/deepseek-harness · error · Error
workspace domain is inconsistent: registry order repeats wor
Error message
workspace domain is inconsistent: registry order repeats workspace '${id}' What it means
Error "workspace domain is inconsistent: registry order repeats workspace '${id}'" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/workspace/workspace/src/index.ts:515
return rightTime - leftTime
|| (priorRank.get(leftId) ?? Number.MAX_SAFE_INTEGER)
- (priorRank.get(rightId) ?? Number.MAX_SAFE_INTEGER)
|| 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) {View on GitHub (pinned to b150a551b8)
Solutions
- Edit the registry order to drop the duplicated workspace id, keeping a single entry.
When it happens
Trigger: Thrown at packages/workspace/workspace/src/index.ts:515 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/8de6b50c927a9af1.
Report an issue: GitHub.