{"record":{"id":"e6f057a210236425","repo":"deepseek-ai/deepseek-harness","slug":"typert-protocol-cannot-mark-remote-method-meth","errorCode":null,"errorMessage":"typert-protocol: cannot mark Remote method \"${method}\" on an object without a prototype","messagePattern":"typert-protocol: cannot mark Remote method \"(.+?)\" on an object without a prototype","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"packages/typert/protocol/src/index.ts","lineNumber":242,"sourceCode":"export function remoteMethods(service: object): readonly RemoteMethodMarker[] {\n  const prototype = Object.getPrototypeOf(service) as object | null\n  if (prototype === null) return []\n  return [...(markers.get(prototype) ?? [])].map(([method, marker]) => ({ method, ...marker }))\n}\n\nfunction addMarkerInitializer<This extends object>(\n  context: RemoteInitializerContext<This>,\n  invocation: RemoteInvocationMarker,\n  exportName?: string,\n): void {\n  if (context.private || context.static || typeof context.name !== 'string') {\n    throw new TypeError('typert-protocol: Remote decorators require a public instance method with a string name')\n  }\n  const method = context.name\n  context.addInitializer(function (this: This) {\n    const prototype = Object.getPrototypeOf(this) as object | null\n    if (prototype === null) {\n      throw new TypeError(`typert-protocol: cannot mark Remote method \"${method}\" on an object without a prototype`)\n    }\n    mark(prototype, method, invocation, exportName)\n  })\n}\n\nfunction mark(\n  prototype: object,\n  method: string,\n  invocation: RemoteInvocationMarker,\n  exportName?: string,\n): void {\n  let table = markers.get(prototype)\n  if (table === undefined) {\n    table = new Map()\n    markers.set(prototype, table)\n  }\n  const marker: StoredRemoteMethodMarker = {\n    ...(exportName === undefined || exportName === method ? {} : { exportName }),","sourceCodeStart":224,"sourceCodeEnd":260,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/protocol/src/index.ts#L224-L260","documentation":"Error \"typert-protocol: cannot mark Remote method \"${method}\" on an object without a prototype\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/protocol/src/index.ts:242 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Apply Remote methods on prototype-based classes, not prototype-less objects."],"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"}