{"record":{"id":"50d14985db233232","repo":"deepseek-ai/deepseek-harness","slug":"typert-loader-pkgname-subject-is-not-backed","errorCode":null,"errorMessage":"typert-loader: ${pkgName} ${subject} is not backed by a zod v4 schema","messagePattern":"typert-loader: (.+?) (.+?) is not backed by a zod v4 schema","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/typert/loader/src/index.ts","lineNumber":274,"sourceCode":"    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,\n  // whose package declares every composed plugin as a dependency). This\n  // package's own URL would miss sibling packages under pnpm's isolated\n  // node_modules.\n  if (ctx.baseUrl === undefined) {\n    throw new Error('typert-loader: ctx.baseUrl is unset — the loader needs the config-tree anchor to resolve plugin packages')\n  }\n  const require = createRequire(ctx.baseUrl)","sourceCodeStart":256,"sourceCodeEnd":292,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/loader/src/index.ts#L256-L292","documentation":"Error \"typert-loader: ${pkgName} ${subject} is not backed by a zod v4 schema\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/loader/src/index.ts:274 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Back the manifest subject with a zod v4 schema."],"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"}