{"record":{"id":"6abb202ef505de3e","repo":"deepseek-ai/deepseek-harness","slug":"typert-protocol-remote-decorators-require-a-publi","errorCode":null,"errorMessage":"typert-protocol: Remote decorators require a public instance method with a string name","messagePattern":"typert-protocol: Remote decorators require a public instance method with a string name","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"packages/typert/protocol/src/index.ts","lineNumber":236,"sourceCode":"/**\n * Read Remote markers attached to a live Service by decorator initializers.\n * The returned snapshot cannot mutate the private marker table.\n * @param service - live Service instance.\n * @returns markers in class declaration order.\n */\nexport 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)","sourceCodeStart":218,"sourceCodeEnd":254,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/protocol/src/index.ts#L218-L254","documentation":"Error \"typert-protocol: Remote decorators require a public instance method with a string name\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/protocol/src/index.ts:236 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Apply the Remote decorator to a public instance method with a string name."],"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"}