{"record":{"id":"5f7bdcec9322ffc6","repo":"deepseek-ai/deepseek-harness","slug":"typert-batched-analysis-requires-an-explicit-pack","errorCode":null,"errorMessage":"typert: batched analysis requires an explicit package selection","messagePattern":"typert: batched analysis requires an explicit package selection","errorType":"validation","errorClass":"TypertAnalysisError","httpStatus":null,"severity":"error","filePath":"packages/typert/generator/src/analyzer.ts","lineNumber":360,"sourceCode":"      return new WorkspaceAnalyzer({ ...this.options, caches: this.caches, mode: 'check' }).analyze()\n    }\n\n    return {\n      faces,\n      crossFaceLinks: [...this.crossFaceLinks.values()].sort(compareCrossFaceLinks),\n    }\n  }\n\n  /**\n   * Analyze an explicit package selection through bounded compiler programs.\n   * The resulting model is identical in shape to {@link analyze}; stable graph\n   * ids let repeated dependency declarations merge without flattening types.\n   * @param batchSize - maximum selected packages in one face program.\n   * @returns one merged workspace model.\n   */\n  analyzeInBatches(batchSize = 8): WorkspaceModel {\n    if (this.options.packages === undefined) {\n      throw new TypertAnalysisError('typert: batched analysis requires an explicit package selection')\n    }\n    if (!Number.isInteger(batchSize) || batchSize < 1) {\n      throw new TypertAnalysisError(`typert: batch size must be a positive integer, received ${String(batchSize)}`)\n    }\n    const batches: WorkspaceModel[] = []\n    for (let index = 0; index < this.options.packages.length; index += batchSize) {\n      batches.push(new WorkspaceAnalyzer({\n        ...this.options,\n        caches: this.caches,\n        packages: this.options.packages.slice(index, index + batchSize),\n      }).analyze())\n    }\n    return mergeWorkspaceModels(batches)\n  }\n\n  /**\n   * Discover package faces from public-export-reachable Cordis augmentations\n   * and explicit `@typert` roots without constructing a type-checker program.","sourceCodeStart":342,"sourceCodeEnd":378,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/generator/src/analyzer.ts#L342-L378","documentation":"Error \"typert: batched analysis requires an explicit package selection\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/generator/src/analyzer.ts:360 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass an explicit package selection for the batched analysis."],"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"}