{"record":{"id":"531ffeaf37438bfa","repo":"deepseek-ai/deepseek-harness","slug":"invalid-job-id-expected-a-non-empty-string-got","errorCode":null,"errorMessage":"invalid job_id: expected a non-empty string, got ${JSON.stringify(value)}","messagePattern":"invalid job_id: expected a non-empty string, got (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/jobs/tool-jobs/src/index.ts","lineNumber":195,"sourceCode":"  const text = rawSingleText(content)\n  if (text === undefined) return undefined\n  return [{\n    type: 'text',\n    text: fitWithSuffix(text, '', maxBytes, '\\n[result truncated]'),\n  }]\n}\n\nfunction visibleOutputLimit(ctx: Context, exec: ToolExecution): number | undefined {\n  if (exec.name !== 'job_output' && exec.name !== 'job_kill') return undefined\n  const jobId = (exec.arguments as { job_id?: unknown } | null | undefined)?.job_id\n  if (typeof jobId !== 'string' || jobId.length === 0) return undefined\n  return ctx.jobs.list(exec.agent).find(snapshot => snapshot.id === jobId)?.outputLimitBytes\n}\n\n/** Validate the non-empty constraint that ParameterSchemaSpec cannot express. */\nfunction validateJobId(value: string): JobId {\n  if (value.length === 0) {\n    throw new Error(`invalid job_id: expected a non-empty string, got ${JSON.stringify(value)}`)\n  }\n  return JobId(value)\n}\n\n/** Pending presentation shared by the three generic job controls. */\nfunction presentTaskCall(title: string, kind: 'read' | 'execute', rawInput?: string): GenericCallView {\n  return { card: 'generic', title, kind, ...rawInput !== undefined ? { rawInput } : {} }\n}\n\nexport function apply(ctx: Context, config: Config): void {\n  const waitDefault = config.waitTimeoutMs ?? 30_000\n  const waitCap = config.maxWaitTimeoutMs ?? 600_000\n  const delivery = config.completionDelivery ?? 'wakeup'\n  const wakeBudget = config.maxConsecutiveWakes ?? 3\n\n  // Turns this plugin opened on each owner since that owner last consumed\n  // human input. Keyed by the exact Agent, so a same-session replacement\n  // starts with a full budget.","sourceCodeStart":177,"sourceCodeEnd":213,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/jobs/tool-jobs/src/index.ts#L177-L213","documentation":"Error \"invalid job_id: expected a non-empty string, got ${JSON.stringify(value)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/jobs/tool-jobs/src/index.ts:195 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a non-empty string job_id."],"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"}