deepseek-ai/deepseek-harness · error · ManualCompactionError
changed
changed
Error message
the compacted history changed during manual compaction
What it means
Error "the compacted history changed during manual compaction" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/compaction/compaction-basic/src/region.ts:266
{ cause: flushFailure },
)
}
/* v8 ignore next -- every path without a result records and throws a failure above. */
if (result === undefined) throw new Error('compaction committed without a result')
return result
}
/** Classify one closed manual attempt without weakening cancellation precedence. */
function throwManualFailure(failure: TransactionFailure): never {
if (failure.stage === 'commit') {
throw new ManualCompactionError(
'commit',
'manual compaction did not commit cleanly',
{ cause: failure.error },
)
}
if (failure.error instanceof SurfaceChangedError) {
throw new ManualCompactionError(
'changed',
'the compacted history changed during manual compaction',
{ cause: failure.error },
)
}
throw new ManualCompactionError(
'summary',
'manual compaction could not produce a smaller summary',
{ cause: failure.error },
)
}
/**
* Reject a durable unmatched compaction marker unless a later constructor-seed
* boundary proves that its owner belongs to an earlier session lifecycle.
* @param unmatchedCompactionStart - latest unmatched opening marker, if any.
* @param latestEndSeedSeq - newest constructor-seed boundary, if any.
* @param stage - operation label included in the busy diagnostic.View on GitHub (pinned to b150a551b8)
Solutions
- Retry manual compaction when the history is not changing concurrently.
When it happens
Trigger: Thrown at packages/compaction/compaction-basic/src/region.ts:266 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/a6010f3207d3cbe4.
Report an issue: GitHub.