deepseek-ai/deepseek-harness · error · AggregateError
workspace ' ' record write and pending-marker rollback both…
Error message
workspace '${id}' record write and pending-marker rollback both failed What it means
createWorkspace's rollback chain: after the pending-marker state was written, the record table put failed and clearing the pending marker also failed; the AggregateError carries both failures and the durable pending marker remains for recovery.
Solutions
- Check filesystem permissions and free space on the workspace store; after restoring writability, reconcile the pending marker and record manually.
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at packages/workspace/workspace/src/index.ts:321 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/5fec56b586c2f987.
Report an issue: GitHub.
Appendix: source
Thrown at packages/workspace/workspace/src/index.ts:321
this.entities.set(id, entity)
const pendingState: WorkspaceDomainState = {
...state,
pendingMutation: { operation: 'create', workspaceId: id },
}
try {
await this.setState(pendingState)
} catch (error) {
this.entities.delete(id)
throw error
}
try {
await table.put(id, record)
} catch (error) {
this.entities.delete(id)
try {
await this.setState(state)
} catch (rollbackError) {
throw new AggregateError(
[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) {View on GitHub (pinned to b150a551b8)