deepseek-ai/deepseek-harness · error · Error
typert-loader: ${pkgName} ${subject} must use a strict codec
Error message
typert-loader: ${pkgName} ${subject} must use a strict codec What it means
Error "typert-loader: ${pkgName} ${subject} must use a strict codec" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/typert/loader/src/index.ts:267
if (receiver.kind === 'context' && wires.has(receiver.wire as string)) {
throw new Error(`typert-loader: ${pkgName} invocation "${id}" repeats Context wire field "${receiver.wire as string}"`)
}
requireStrictCodec(pkgName, invocation.result, `invocation "${id}" result codec`)
if (invocation.sourceLocation !== undefined) {
const location = requireObject(pkgName, invocation.sourceLocation, `invocation "${id}" sourceLocation`)
requireString(pkgName, location, 'file', `invocation "${id}" sourceLocation`)
for (const key of ['line', 'column'] as const) {
if (!Number.isInteger(location[key]) || (location[key] as number) < 1) {
throw new Error(`typert-loader: ${pkgName} invocation "${id}" sourceLocation.${key} must be a positive integer`)
}
}
}
}
function requireStrictCodec(pkgName: string, value: unknown, subject: string): void {
const codec = requireObject(pkgName, value, subject)
if (codec.mode !== 'strict') {
throw new Error(`typert-loader: ${pkgName} ${subject} must use a strict codec`)
}
requireString(pkgName, codec, 'typeSymbol', subject)
if (typeof codec.schema !== 'object'
|| codec.schema === null
|| !('_zod' in codec.schema)
|| typeof (codec.schema as { parse?: unknown }).parse !== 'function') {
throw new Error(`typert-loader: ${pkgName} ${subject} is not backed by a zod v4 schema`)
}
}
/**
* Scan current Loader entries during activation, then follow entry mounts and
* unmounts for this plugin's lifetime.
* @param ctx - plugin context carrying `typert` and `loader`.
* @param config - explicit package artifacts in addition to Loader entries.
*/
export async function apply(ctx: Context, config: Config): Promise<void> {
// Resolution anchor: the config tree's baseUrl (the cordis.yml directory,View on GitHub (pinned to b150a551b8)
Solutions
- Use a strict codec for the manifest subject; regenerate with the strict codec.
When it happens
Trigger: Thrown at packages/typert/loader/src/index.ts:267 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/269a0ee33f05b795.
Report an issue: GitHub.