{"record":{"id":"5eec35159e109f12","repo":"deepseek-ai/deepseek-harness","slug":"subject-lacks-an-identified-message","errorCode":null,"errorMessage":"${subject} lacks an identified message","messagePattern":"(.+?) lacks an identified message","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/session/src/index.ts","lineNumber":313,"sourceCode":"    || defaults['maxTokens'] === true && config['maxTokens'] === undefined) {\n    throw new Error(`seed request/header at index ${index} has invalid adapterDefaults`)\n  }\n}\n\n/** Validate only the event-specific invariants needed to safely replay a message. */\nfunction assertMessageEventShape(event: Record<string, unknown>, subject: string): void {\n  const type = event['type']\n  if (type !== 'user/message' && type !== 'assistant/message'\n    && type !== 'tool/result') return\n  const data = event['data']\n  const record = typeof data === 'object' && data !== null\n    ? data as Record<string, unknown>\n    : undefined\n  const message = type === 'user/message' ? record : record?.['message']\n  if (typeof message !== 'object' || message === null\n    || typeof (message as Record<string, unknown>)['id'] !== 'string'\n    || (message as Record<string, unknown>)['id'] === '') {\n    throw new Error(`${subject} lacks an identified message`)\n  }\n  const messageRecord = message as Record<string, unknown>\n  const expectedRole = type === 'assistant/message' ? 'assistant' : 'user'\n  if (messageRecord['role'] !== expectedRole) {\n    throw new Error(`${subject} message must have role \"${expectedRole}\"`)\n  }\n  const source = messageRecord['source']\n  if (typeof source !== 'object' || source === null\n    || typeof (source as Record<string, unknown>)['kind'] !== 'string'\n    || (source as Record<string, unknown>)['kind'] === '') {\n    throw new Error(`${subject} message has invalid source`)\n  }\n  if (!Array.isArray(messageRecord['content'])) {\n    throw new Error(`${subject} message has invalid content`)\n  }\n  const sourceRecord = source as Record<string, unknown>\n  if (type === 'assistant/message') {\n    if (sourceRecord['kind'] !== 'model' || !hasProviderModel(sourceRecord)) {","sourceCodeStart":295,"sourceCodeEnd":331,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/session/src/index.ts#L295-L331","documentation":"Error \"${subject} lacks an identified message\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/session/src/index.ts:313 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include an identified message in the reported subject event."],"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"}