{"record":{"id":"269a0ee33f05b795","repo":"deepseek-ai/deepseek-harness","slug":"typert-loader-pkgname-subject-must-use-a-st","errorCode":null,"errorMessage":"typert-loader: ${pkgName} ${subject} must use a strict codec","messagePattern":"typert-loader: (.+?) (.+?) must use a strict codec","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/typert/loader/src/index.ts","lineNumber":267,"sourceCode":"  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}\n\n/**\n * Scan current Loader entries during activation, then follow entry mounts and\n * unmounts for this plugin's lifetime.\n * @param ctx - plugin context carrying `typert` and `loader`.\n * @param config - explicit package artifacts in addition to Loader entries.\n */\nexport async function apply(ctx: Context, config: Config): Promise<void> {\n  // Resolution anchor: the config tree's baseUrl (the cordis.yml directory,","sourceCodeStart":249,"sourceCodeEnd":285,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/loader/src/index.ts#L249-L285","documentation":"Error \"typert-loader: ${pkgName} ${subject} must use a strict codec\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/loader/src/index.ts:267 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a strict codec for the manifest subject; regenerate with the strict codec."],"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"}