deepseek-ai/deepseek-harness · error · AggregateError
workspace ' ' order write and record rollback both failed…
Error message
workspace '${id}' order write and record rollback both failed; the pending marker remains recoverable What it means
Rollback failure during workspace creation: after the registry-order write failed, restoring the prior state also failed, so the pending record delete (rollback of the table write) could not complete. AggregateError carries both errors; the pending marker remains and is recoverable on next load.
Solutions
- Restore writability of the workspace store (permissions, disk space), then clear the recoverable pending marker and re-apply the order.
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at packages/workspace/workspace/src/index.ts:340 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/cdfd489eea1bea71.
Report an issue: GitHub.
Appendix: source
Thrown at packages/workspace/workspace/src/index.ts:340
[error, rollbackError],
`workspace '${id}' record write and pending-marker rollback both failed`,
)
}
throw error
}
try {
await this.setState({
initialized: true,
workspaceIds: [id, ...state.workspaceIds],
archivedSessionIds: state.archivedSessionIds,
})
} catch (error) {
this.entities.delete(id)
try {
await table.delete(id)
} catch (rollbackError) {
throw new AggregateError(
[error, rollbackError],
`workspace '${id}' order write and record rollback both failed; the pending marker remains recoverable`,
)
}
try {
await this.setState(state)
} catch (rollbackError) {
throw new AggregateError(
[error, rollbackError],
`workspace '${id}' order write and pending-marker rollback both failed`,
)
}
throw error
}
return entity
}
private async deleteKnown(id: WorkspaceId): Promise<boolean> {View on GitHub (pinned to b150a551b8)