{"record":{"id":"dda799678431dcfc","repo":"deepseek-ai/deepseek-harness","slug":"goal-tool-invalid-update","errorCode":"GOAL_TOOL_INVALID_UPDATE","errorMessage":"goal_id must be non-empty and revision must be a positive safe integer","messagePattern":"goal_id must be non-empty and revision must be a positive safe integer","errorType":"error_code","errorClass":"HarnessError","httpStatus":null,"severity":"error","filePath":"packages/goal/tool-goal/src/index.ts","lineNumber":148,"sourceCode":"  }\n  return { blockedAfterConsecutiveRounds: blockedAfter }\n}\n\n/** Whether optional text is meaningful rather than a strict-schema empty filler. */\nfunction hasText(value: string | undefined): value is string {\n  return value !== undefined && value !== ''\n}\n\n/** Whether an optional round cap is meaningful rather than a strict-schema zero filler. */\nfunction hasRoundCap(value: number | undefined): value is number {\n  return value !== undefined && value !== 0\n}\n\n/** Build the exact compare-and-set ref from model arguments. */\nfunction goalRef(goalId: string, revision: number): GoalRef {\n  if (goalId.length === 0 || goalId !== goalId.trim()\n    || !Number.isSafeInteger(revision) || revision < 1) {\n    throw new HarnessError(\n      'goal_id must be non-empty and revision must be a positive safe integer',\n      'GOAL_TOOL_INVALID_UPDATE',\n    )\n  }\n  return { id: GoalId(goalId), revision }\n}\n\n/** Stable compact model result; activation is an observation, not replay state. */\nfunction goalValue(goal: GoalView | undefined): GoalToolValue {\n  if (goal === undefined) return { goal: null }\n  return {\n    goal: {\n      id: goal.id,\n      revision: goal.revision,\n      objective: goal.objective,\n      phase: goal.phase,\n      roundsStarted: goal.roundsStarted,\n      maxGoalRounds: goal.maxGoalRounds,","sourceCodeStart":130,"sourceCodeEnd":166,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/goal/tool-goal/src/index.ts#L130-L166","documentation":"Error \"goal_id must be non-empty and revision must be a positive safe integer\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/goal/tool-goal/src/index.ts:148 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"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"}