{"record":{"id":"6b813e3e90037143","repo":"deepseek-ai/deepseek-harness","slug":"schedule-idle-wait-failed-for-agent-this-agent","errorCode":null,"errorMessage":"schedule: idle wait failed for agent \"${this.agent.id}\": ${renderThrown(error)}","messagePattern":"schedule: idle wait failed for agent \"(.+?)\": (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/schedule/schedule/src/runtime.ts","lineNumber":199,"sourceCode":"      this.timer = undefined\n      this.requestDrive()\n    }, delay)\n  }\n\n  /** Await one public idle boundary without holding admission or creating a retry timer. */\n  private waitForIdle(): void {\n    if (this.idleWait !== undefined) return\n    const wait = Promise.race([this.agent.whenIdle(), this.stop.promise])\n    this.idleWait = wait\n    void wait.then(\n      () => {\n        this.idleWait = undefined\n        this.requestDrive()\n      },\n      (error: unknown) => {\n        this.idleWait = undefined\n        if (this.isLive()) {\n          this.ctx.logger.warn(`schedule: idle wait failed for agent \"${this.agent.id}\": ${renderThrown(error)}`)\n        }\n      },\n    )\n  }\n\n  /** Fold the current exact runtime suffix and contain a corrupt durable stream. */\n  private readFolded(): FoldedSchedules | undefined {\n    try {\n      return foldScheduleEvents(\n        this.agent.session.events,\n        this.agent.session.header.seedLength ?? 0,\n      )\n    } catch (error: unknown) {\n      this.faulted = true\n      const detail = error instanceof ScheduleLogError ? error.message : renderThrown(error)\n      this.ctx.logger.warn(`schedule: corrupt schedule log for agent \"${this.agent.id}\": ${detail}`)\n      return undefined\n    }","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/schedule/schedule/src/runtime.ts#L181-L217","documentation":"Error \"schedule: idle wait failed for agent \"${this.agent.id}\": ${renderThrown(error)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/schedule/schedule/src/runtime.ts:199 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the embedded error from the idle wait and fix the scheduling environment; the runtime will keep running otherwise."],"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"}