deepseek-ai/deepseek-harness · error · AggregateError
workspace ' ' order write and pending-marker rollback both…
Error message
workspace '${id}' order write and pending-marker rollback both failed What it means
Rollback failure during workspace creation: the registry-order write failed and neither the record delete nor the state restore succeeded, leaving a pending marker in durable storage. AggregateError carries the primary error plus both rollback failures.
Solutions
- Restore writability of the workspace store, then reconcile the pending marker with the order file manually.
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at packages/workspace/workspace/src/index.ts:348 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/c987538763d7ef20.
Report an issue: GitHub.
Appendix: source
Thrown at packages/workspace/workspace/src/index.ts:348
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> {
const entity = this.entities.get(id)
if (entity === undefined) return false
const state = this.requireState()
const nextState = {
initialized: true,
workspaceIds: state.workspaceIds.filter(workspaceId => workspaceId !== id),
archivedSessionIds: state.archivedSessionIds,
}View on GitHub (pinned to b150a551b8)