{"record":{"id":"e1f6c442fd2c4127","repo":"diegosouzapw/OmniRoute","slug":"missing-required-field-id","errorCode":null,"errorMessage":"Missing required field: id","messagePattern":"Missing required field: id","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/lib/skills/memoryBuiltins.ts","lineNumber":91,"sourceCode":"  });\n\n  return {\n    success: true,\n    memory: memoryToPlain(saved),\n    message: \"Memory saved successfully\",\n    context: context.apiKeyId,\n  };\n}\n\nasync function handleMemoryUpdate(input: Record<string, unknown>, context: { apiKeyId: string }) {\n  const { id, type, key, content, metadata } = input as {\n    id: string;\n    type?: string;\n    key?: string;\n    content?: string;\n    metadata?: Record<string, unknown>;\n  };\n  if (!id || typeof id !== \"string\") throw new Error(\"Missing required field: id\");\n\n  await assertOwner(id, context.apiKeyId);\n\n  const updates: Record<string, unknown> = {};\n  if (type !== undefined) updates.type = toMemoryType(type);\n  if (key !== undefined) updates.key = key;\n  if (content !== undefined) updates.content = content;\n  if (metadata !== undefined) updates.metadata = metadata;\n\n  if (Object.keys(updates).length === 0) throw new Error(\"No fields to update\");\n\n  const ok = await updateMemory(id, updates);\n  if (!ok) throw new Error(`Failed to update memory: ${id}`);\n\n  return {\n    success: true,\n    id,\n    message: \"Memory updated successfully\",","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/skills/memoryBuiltins.ts#L73-L109","documentation":"Error \"Missing required field: id\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/skills/memoryBuiltins.ts:91 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":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}