{"record":{"id":"82335552abf27c9c","repo":"deepseek-ai/deepseek-harness","slug":"typert-invalid-face-json-stringify-face-exp","errorCode":null,"errorMessage":"typert: invalid face ${JSON.stringify(face)} — expected \"host\" or \"client\"","messagePattern":"typert: invalid face (.+?) — expected \"host\" or \"client\"","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/typert/registry/src/service.ts","lineNumber":595,"sourceCode":"  listPackages(filter: TypertPackageFilter = {}): TypertPackageRecord[] {\n    return [...this.packages.values()].filter(record => matches(record, filter))\n  }\n\n  /**\n   * Project a live Zod schema to JSON Schema without caching the result.\n   * @param key - global schema key.\n   * @param params - Zod projection parameters.\n   * @returns a fresh JSON Schema document.\n   */\n  toJSONSchema(key: string, params?: z.core.ToJSONSchemaParams): z.core.JSONSchema.BaseSchema {\n    return z.toJSONSchema(this.resolve(key).schema, params)\n  }\n\n  private validatePackage(contribution: TypertContribution): TypertPackageRecord {\n    validateSegment('package name', contribution.package)\n    const face: unknown = contribution.face\n    if (face !== 'host' && face !== 'client') {\n      throw new Error(`typert: invalid face ${JSON.stringify(face)} — expected \"host\" or \"client\"`)\n    }\n    const key = typertPackageKey(contribution.package, contribution.face)\n    if (this.packages.has(key)) {\n      throw new Error(`typert: package face \"${key}\" is already registered`)\n    }\n    return {\n      package: contribution.package,\n      face,\n      key,\n      model: contribution.model,\n    }\n  }\n\n  private validateSchemas(contribution: TypertContribution): TypertSchemaRecord[] {\n    const records: TypertSchemaRecord[] = []\n    const batch = new Set<string>()\n    for (const schema of contribution.schemas) {\n      validateSegment('schema name', schema.name)","sourceCodeStart":577,"sourceCodeEnd":613,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/registry/src/service.ts#L577-L613","documentation":"Error \"typert: invalid face ${JSON.stringify(face)} — expected \"host\" or \"client\"\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/registry/src/service.ts:595 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass face as \"host\" or \"client\"."],"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"}