{"record":{"id":"f95b08ce4d664b59","repo":"deepseek-ai/deepseek-harness","slug":"client-api-generated-remote-endpointof-descript","errorCode":null,"errorMessage":"client api: generated Remote ${endpointOf(descriptor)} scope must select its only lookup parameter","messagePattern":"client api: generated Remote (.+?) scope must select its only lookup parameter","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/api/gateway/src/client/index.ts","lineNumber":582,"sourceCode":"}\n\nfunction scopedProjection(descriptor: InvocationDescriptor): ScopedProjection | undefined {\n  if (descriptor.invocation.kind === 'context') {\n    return {\n      context: descriptor.invocation.context,\n      wire: descriptor.invocation.wire,\n      codec: descriptor.invocation.codec,\n    }\n  }\n  if (descriptor.scope === undefined) return undefined\n  const lookupParameters = descriptor.parameters\n    .map((parameter, index) => ({ parameter, index }))\n    .filter(candidate => candidate.parameter.source === 'lookup')\n  const selected = lookupParameters.length === 1 ? lookupParameters[0] : undefined\n  if (selected === undefined\n    || selected.parameter.wire !== descriptor.scope.wire\n    || selected.parameter.lookup !== descriptor.scope.context) {\n    throw new Error(\n      `client api: generated Remote ${endpointOf(descriptor)} scope must select its only lookup parameter`,\n    )\n  }\n  return {\n    context: descriptor.scope.context,\n    wire: descriptor.scope.wire,\n    codec: selected.parameter.codec,\n    parameterIndex: selected.index,\n  }\n}\n\nfunction requireStrictDescriptor(descriptor: InvocationDescriptor): void {\n  const endpoint = endpointOf(descriptor)\n  requireStrictCodec(descriptor.result, endpoint, 'result')\n  for (const parameter of descriptor.parameters) {\n    requireStrictCodec(parameter.codec, endpoint, parameter.wire)\n  }\n  if (descriptor.invocation.kind === 'context') {","sourceCodeStart":564,"sourceCodeEnd":600,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/api/gateway/src/client/index.ts#L564-L600","documentation":"Error \"client api: generated Remote ${endpointOf(descriptor)} scope must select its only lookup parameter\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/api/gateway/src/client/index.ts:582 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Make the generated Remote scope select exactly its single lookup parameter."],"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"}