{"record":{"id":"0ab0d871c996d62a","repo":"JuliusBrussee/caveman","slug":"compressed-model-call-w","errorCode":null,"errorMessage":"compressed model call: %w","messagePattern":"compressed model call: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"engine/evals/quality.go","lineNumber":176,"sourceCode":"\t\tTemperature:    opts.Temperature,\n\t\tPrompt:         baselinePrompt,\n\t})\n\tif err != nil {\n\t\treturn QualityReport{}, fmt.Errorf(\"baseline model call: %w\", err)\n\t}\n\tcompressedResp, err := opts.Runner.Complete(ctx, ModelRequest{\n\t\tFixtureName:    f.Name,\n\t\tVariant:        \"compressed\",\n\t\tModel:          opts.Model,\n\t\tContentType:    contentType,\n\t\tQuestion:       f.QualityTask.Question,\n\t\tExpectedAnswer: expected,\n\t\tSeed:           opts.Seed,\n\t\tTemperature:    opts.Temperature,\n\t\tPrompt:         compressedPrompt,\n\t})\n\tif err != nil {\n\t\treturn QualityReport{}, fmt.Errorf(\"compressed model call: %w\", err)\n\t}\n\n\tcounter := tokens.Default()\n\treport.BaselineUsage, err = fillUsage(counter, baselinePrompt, baseline, opts.RequireUsage)\n\tif err != nil {\n\t\treturn QualityReport{}, fmt.Errorf(\"baseline usage: %w\", err)\n\t}\n\treport.CompressedUsage, err = fillUsage(counter, compressedPrompt, compressedResp, opts.RequireUsage)\n\tif err != nil {\n\t\treturn QualityReport{}, fmt.Errorf(\"compressed usage: %w\", err)\n\t}\n\n\tbaseSubject := Subject{Input: input, Output: baseline.Output, ContentType: contentType, PassedThrough: true}\n\tcompSubject := Subject{Input: input, Output: compressedResp.Output, Ratio: compressionRatio, ContentType: contentType, PassedThrough: passedThrough}\n\tgrader := opts.Grader\n\tif grader == nil {\n\t\tgrader = LocalGrader{}\n\t}","sourceCodeStart":158,"sourceCodeEnd":194,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/766dce6b1394ebb56a3090748d5a0240a5aefb36/engine/evals/quality.go#L158-L194","documentation":"Wraps the quality runner's Complete call for the compressed prompt in runQuality. The baseline call succeeded but the compressed variant failed, so paired quality comparison for this fixture is impossible.","triggerScenarios":"Thrown at engine/evals/quality.go:176 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the run — single-call model failures are commonly transient","Check rate limits: two calls per fixture can trip provider throttling","Inspect the wrapped error for prompt-size rejections of the compressed variant"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"766dce6b1394ebb56a3090748d5a0240a5aefb36","analyzedAt":"2026-08-18T03:14:35.516Z","contentChangedAt":"2026-08-18T03:14:35.516Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}