{"record":{"id":"971a4850b378bed8","repo":"deepseek-ai/deepseek-harness","slug":"typert-invalid-schema-key-key-expected-p","errorCode":null,"errorMessage":"typert: invalid schema key \"${key}\" — expected \"<package>#<name>\"","messagePattern":"typert: invalid schema key \"(.+?)\" — expected \"<package>#<name>\"","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/typert/registry/src/service.ts","lineNumber":542,"sourceCode":"   * @param key - global schema key.\n   * @returns the live schema record, or `undefined` when absent.\n   */\n  get(key: string): TypertSchemaRecord | undefined {\n    return this.schemas.get(key)\n  }\n\n  /**\n   * Resolve one required schema.\n   * @param key - global schema key.\n   * @returns the live schema record.\n   * @throws when the key is malformed, the package face is absent, or the schema is not contributed.\n   */\n  resolve(key: string): TypertSchemaRecord {\n    const record = this.schemas.get(key)\n    if (record !== undefined) return record\n    const hash = key.indexOf('#')\n    if (hash <= 0 || hash === key.length - 1) {\n      throw new Error(`typert: invalid schema key \"${key}\" — expected \"<package>#<name>\"`)\n    }\n    const packageName = key.slice(0, hash)\n    if ([...this.packages.values()].some(candidate => candidate.package === packageName)) {\n      throw new Error(\n        `typert: cannot resolve \"${key}\" — package \"${packageName}\" is registered but contributes no schema named \"${key.slice(hash + 1)}\"`,\n      )\n    }\n    throw new Error(`typert: cannot resolve \"${key}\" — package \"${packageName}\" has no registered contribution`)\n  }\n\n  /**\n   * Enumerate live schemas in registration order.\n   * @param filter - optional package and face restriction.\n   * @returns matching schema records.\n   */\n  list(filter: TypertSchemaFilter = {}): TypertSchemaRecord[] {\n    return [...this.schemas.values()].filter(record => matches(record, filter))\n  }","sourceCodeStart":524,"sourceCodeEnd":560,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/registry/src/service.ts#L524-L560","documentation":"Error \"typert: invalid schema key \"${key}\" — expected \"<package>#<name>\"\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/registry/src/service.ts:542 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use schema keys in the form <package>#<name>."],"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"}