{"record":{"id":"a6010f3207d3cbe4","repo":"deepseek-ai/deepseek-harness","slug":"changed","errorCode":"changed","errorMessage":"the compacted history changed during manual compaction","messagePattern":"the compacted history changed during manual compaction","errorType":"exception","errorClass":"ManualCompactionError","httpStatus":null,"severity":"error","filePath":"packages/compaction/compaction-basic/src/region.ts","lineNumber":266,"sourceCode":"      { cause: flushFailure },\n    )\n  }\n  /* v8 ignore next -- every path without a result records and throws a failure above. */\n  if (result === undefined) throw new Error('compaction committed without a result')\n  return result\n}\n\n/** Classify one closed manual attempt without weakening cancellation precedence. */\nfunction throwManualFailure(failure: TransactionFailure): never {\n  if (failure.stage === 'commit') {\n    throw new ManualCompactionError(\n      'commit',\n      'manual compaction did not commit cleanly',\n      { cause: failure.error },\n    )\n  }\n  if (failure.error instanceof SurfaceChangedError) {\n    throw new ManualCompactionError(\n      'changed',\n      'the compacted history changed during manual compaction',\n      { cause: failure.error },\n    )\n  }\n  throw new ManualCompactionError(\n    'summary',\n    'manual compaction could not produce a smaller summary',\n    { cause: failure.error },\n  )\n}\n\n/**\n * Reject a durable unmatched compaction marker unless a later constructor-seed\n * boundary proves that its owner belongs to an earlier session lifecycle.\n * @param unmatchedCompactionStart - latest unmatched opening marker, if any.\n * @param latestEndSeedSeq - newest constructor-seed boundary, if any.\n * @param stage - operation label included in the busy diagnostic.","sourceCodeStart":248,"sourceCodeEnd":284,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/compaction/compaction-basic/src/region.ts#L248-L284","documentation":"Error \"the compacted history changed during manual compaction\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/compaction/compaction-basic/src/region.ts:266 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry manual compaction when the history is not changing concurrently."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}