{"record":{"id":"05944c3589fc2d3f","repo":"deepseek-ai/deepseek-harness","slug":"typert-loader-pkgname-invocation-id-sourc","errorCode":null,"errorMessage":"typert-loader: ${pkgName} invocation \"${id}\" sourceLocation.${key} must be a positive integer","messagePattern":"typert-loader: (.+?) invocation \"(.+?)\" sourceLocation\\.(.+?) must be a positive integer","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/typert/loader/src/index.ts","lineNumber":258,"sourceCode":"    requireString(pkgName, scope, 'context', `invocation \"${id}\" scope`)\n    requireString(pkgName, scope, 'wire', `invocation \"${id}\" scope`)\n    const parameter = parameters.get(scope.wire as string)\n    if (lookupCount !== 1 || parameter?.source !== 'lookup' || parameter.lookup !== scope.context) {\n      throw new Error(\n        `typert-loader: ${pkgName} invocation \"${id}\" scope wire \"${scope.wire as string}\" must select its only lookup parameter`,\n      )\n    }\n  }\n  if (receiver.kind === 'context' && wires.has(receiver.wire as string)) {\n    throw new Error(`typert-loader: ${pkgName} invocation \"${id}\" repeats Context wire field \"${receiver.wire as string}\"`)\n  }\n  requireStrictCodec(pkgName, invocation.result, `invocation \"${id}\" result codec`)\n  if (invocation.sourceLocation !== undefined) {\n    const location = requireObject(pkgName, invocation.sourceLocation, `invocation \"${id}\" sourceLocation`)\n    requireString(pkgName, location, 'file', `invocation \"${id}\" sourceLocation`)\n    for (const key of ['line', 'column'] as const) {\n      if (!Number.isInteger(location[key]) || (location[key] as number) < 1) {\n        throw new Error(`typert-loader: ${pkgName} invocation \"${id}\" sourceLocation.${key} must be a positive integer`)\n      }\n    }\n  }\n}\n\nfunction requireStrictCodec(pkgName: string, value: unknown, subject: string): void {\n  const codec = requireObject(pkgName, value, subject)\n  if (codec.mode !== 'strict') {\n    throw new Error(`typert-loader: ${pkgName} ${subject} must use a strict codec`)\n  }\n  requireString(pkgName, codec, 'typeSymbol', subject)\n  if (typeof codec.schema !== 'object'\n    || codec.schema === null\n    || !('_zod' in codec.schema)\n    || typeof (codec.schema as { parse?: unknown }).parse !== 'function') {\n    throw new Error(`typert-loader: ${pkgName} ${subject} is not backed by a zod v4 schema`)\n  }\n}","sourceCodeStart":240,"sourceCodeEnd":276,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/loader/src/index.ts#L240-L276","documentation":"Error \"typert-loader: ${pkgName} invocation \"${id}\" sourceLocation.${key} must be a positive integer\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/loader/src/index.ts:258 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set sourceLocation fields to positive integers in the invocation manifest."],"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"}