{"record":{"id":"e36ad3f85d1ea641","repo":"deepseek-ai/deepseek-harness","slug":"schedule-dispatch-append-failed-for-agent-this","errorCode":null,"errorMessage":"schedule: dispatch append failed for agent \"${this.agent.id}\": ${renderThrown(error)}","messagePattern":"schedule: dispatch append failed for agent \"(.+?)\": (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/schedule/schedule/src/runtime.ts","lineNumber":302,"sourceCode":"            this.agent.session.append('schedule/change', {\n              version: 1,\n              operation: 'dispatch',\n              id: decision.record.id,\n            })\n          } else {\n            for (const reminder of decision.reminders) {\n              this.agent.session.append('schedule/change', {\n                version: 1,\n                operation: 'dispatch',\n                id: reminder.record.id,\n                acceptedAt: decision.acceptedAt,\n              })\n            }\n          }\n        } catch (error: unknown) {\n          this.faulted = true\n          this.clearTimer()\n          this.ctx.logger.warn(`schedule: dispatch append failed for agent \"${this.agent.id}\": ${renderThrown(error)}`)\n          return Promise.resolve(false)\n        }\n        return Promise.resolve(true)\n      })\n    } catch (_busy: unknown) {\n      // `runMaintenance` rejects synchronously only while another agent activity owns the idle phase.\n      if (this.isLive()) this.waitForIdle()\n      return\n    }\n    if (!await maintenance) return\n\n    try {\n      await flushSchedulePersistence(this.ctx, this.agent.session)\n    } catch (error: unknown) {\n      if (this.isLive()) {\n        this.ctx.logger.warn(`schedule: dispatch barrier failed for agent \"${this.agent.id}\": ${renderThrown(error)}`)\n      }\n      return","sourceCodeStart":284,"sourceCodeEnd":320,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/schedule/schedule/src/runtime.ts#L284-L320","documentation":"Error \"schedule: dispatch append failed for agent \"${this.agent.id}\": ${renderThrown(error)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/schedule/schedule/src/runtime.ts:302 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the embedded error from the dispatch append and fix the persistence or session-write failure it names."],"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"}