{"record":{"id":"90b20aa377d2d4e0","repo":"deepseek-ai/deepseek-harness","slug":"typert-protocol-remote-decorator-context-is-missi","errorCode":null,"errorMessage":"typert-protocol: Remote decorator context is missing","messagePattern":"typert-protocol: Remote decorator context is missing","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"packages/typert/protocol/src/index.ts","lineNumber":194,"sourceCode":" */\nexport function Remote(exportName: string): RemoteMethodDecorator\nexport function Remote<This extends object, Args extends unknown[], Result>(\n  methodOrExportName: string | ((this: This, ...args: Args) => Result),\n  context?: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Result>,\n): void | RemoteMethodDecorator {\n  if (typeof methodOrExportName === 'string') {\n    validateName('Remote export name', methodOrExportName)\n    return function <DecoratorThis extends object, DecoratorArgs extends unknown[], DecoratorResult>(\n      _method: (this: DecoratorThis, ...args: DecoratorArgs) => DecoratorResult,\n      decoratorContext: ClassMethodDecoratorContext<\n        DecoratorThis,\n        (this: DecoratorThis, ...args: DecoratorArgs) => DecoratorResult\n      >,\n    ): void {\n      addMarkerInitializer(decoratorContext, { kind: 'direct' }, methodOrExportName)\n    }\n  }\n  if (context === undefined) throw new TypeError('typert-protocol: Remote decorator context is missing')\n  addMarkerInitializer(context, { kind: 'direct' })\n}\n\n/**\n * Create a decorator for a method resolved from one Remote Scope.\n * @param key - scope key declared through the Context map.\n * @param exportName - optional Remote export name; defaults to the method name.\n * @returns a standard method decorator that records only private module state.\n */\nexport function RemoteScope(\n  key: Extract<keyof TypertContextMap, string>,\n  exportName?: string,\n): RemoteMethodDecorator {\n  validateName('Scope key', key)\n  if (exportName !== undefined) validateName('Remote export name', exportName)\n  return function <This extends object, Args extends unknown[], Result>(\n    _method: (this: This, ...args: Args) => Result,\n    context: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Result>,","sourceCodeStart":176,"sourceCodeEnd":212,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/protocol/src/index.ts#L176-L212","documentation":"Error \"typert-protocol: Remote decorator context is missing\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/protocol/src/index.ts:194 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Apply the Remote decorator only where decorator context is available (standard TC39 decorators)."],"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"}