{"record":{"id":"e76d260478307554","repo":"deepseek-ai/deepseek-harness","slug":"tool-workflow-disabled-durable-record-after-typ","errorCode":null,"errorMessage":"tool-workflow: disabled durable record after ${type} append failed: ${renderRecordingError(error)}","messagePattern":"tool-workflow: disabled durable record after (.+?) append failed: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/workflow/tool-workflow/src/index.ts","lineNumber":90,"sourceCode":" */\nfunction createWorkflowRecorder(ctx: Context): WorkflowRecorder {\n  const active = new Map<WorkflowRunId, Session>()\n  const append = <Type extends keyof ToolWorkflowRecordEventMap>(\n    session: Session,\n    type: Type,\n    data: SessionEventMap[Type],\n  ): boolean => {\n    // These four package-owned events are all log-only. Narrowing the generic\n    // append face here discharges Session.append's conditional options tuple.\n    const appendRecord = session.append.bind(session) as <Event extends keyof ToolWorkflowRecordEventMap>(\n      event: Event,\n      value: SessionEventMap[Event],\n    ) => void\n    try {\n      appendRecord(type, data)\n      return true\n    } catch (error: unknown) {\n      ctx.logger.warn(`tool-workflow: disabled durable record after ${type} append failed: ${renderRecordingError(error)}`)\n      return false\n    }\n  }\n\n  ctx.on('workflow/agent-start', (info, agent) => {\n    const session = active.get(info.id)\n    if (session === undefined) return\n    const data: ToolWorkflowAgentStartData = {\n      runId: info.id,\n      seq: agent.seq,\n      label: agent.label,\n      ...agent.phase === undefined ? {} : { phase: agent.phase },\n      childId: agent.childId,\n    }\n    if (!append(session, 'tool-workflow/agent-start', data)) active.delete(info.id)\n  })\n  ctx.on('workflow/agent-end', (info, agent) => {\n    const session = active.get(info.id)","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workflow/tool-workflow/src/index.ts#L72-L108","documentation":"Error \"tool-workflow: disabled durable record after ${type} append failed: ${renderRecordingError(error)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workflow/tool-workflow/src/index.ts:90 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the durable record store is writable; fix the append failure and re-enable the record or restart the workflow."],"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"}