{"record":{"id":"234704b4e122dccc","repo":"deepseek-ai/deepseek-harness","slug":"invalid-persisted-inbox-splice-at-session-seq-ev","errorCode":null,"errorMessage":"invalid persisted inbox splice at session seq ${event.seq}","messagePattern":"invalid persisted inbox splice at session seq (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/agent/src/inbox.ts","lineNumber":37,"sourceCode":"  discarded(message: UserMessage): void\n  /** Publish one claimed message inside its owning turn. */\n  claimed(message: UserMessage, turn: number): void\n}\n\n/** A replay-once projection that incrementally consumes later inbox splices. */\nexport class Inbox {\n  private readonly state: InboxState = { 'next-turn': [], 'next-step': [] }\n\n  constructor(\n    private readonly session: Session,\n    private readonly notifications: InboxNotifications,\n  ) {\n    for (const event of session.events.slice(session.header.seedLength ?? 0)) {\n      if (event.type !== 'agent/inbox/spliced') continue\n      try {\n        this.apply(event.data)\n      } catch (error: unknown) {\n        throw new Error(`invalid persisted inbox splice at session seq ${event.seq}`, { cause: error })\n      }\n    }\n  }\n\n  /** Prompts awaiting individual turns. */\n  get nextTurn(): readonly UserMessage[] {\n    return this.state['next-turn']\n  }\n\n  /** Input awaiting the next step boundary. */\n  get nextStep(): readonly UserMessage[] {\n    return this.state['next-step']\n  }\n\n  /** Whether either pending-message list contains work. */\n  get hasPending(): boolean {\n    return this.nextTurn.length > 0 || this.nextStep.length > 0\n  }","sourceCodeStart":19,"sourceCodeEnd":55,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/agent/src/inbox.ts#L19-L55","documentation":"Error \"invalid persisted inbox splice at session seq ${event.seq}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/agent/src/inbox.ts:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Repair the persisted session log; the inbox splice at the reported seq is invalid."],"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"}