{"record":{"id":"429e78b8bcd59c3c","repo":"JuliusBrussee/caveman","slug":"compress-fixture-q-w","errorCode":null,"errorMessage":"compress fixture %q: %w","messagePattern":"compress fixture %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"engine/evals/harness.go","lineNumber":226,"sourceCode":"\tstore, err := ccr.OpenMemory()\n\tif err != nil {\n\t\treturn Report{}, fmt.Errorf(\"open recovery store: %w\", err)\n\t}\n\tdefer store.Close()\n\teng := engine.New(store, nil)\n\treturn runManifestWithSystem(ctx, m, read, engineSystem{eng: eng}, quality)\n}\n\nfunc runManifestWithSystem(ctx context.Context, m Manifest, read func(name string) ([]byte, error), system TransformRunner, quality *QualityOptions) (Report, error) {\n\treport := Report{Passed: true}\n\tfor _, f := range m.Fixtures {\n\t\tinput, err := read(f.File)\n\t\tif err != nil {\n\t\t\treturn Report{}, fmt.Errorf(\"read fixture %q: %w\", f.File, err)\n\t\t}\n\t\tres, err := system.Transform(ctx, f, input)\n\t\tif err != nil {\n\t\t\treturn Report{}, fmt.Errorf(\"compress fixture %q: %w\", f.Name, err)\n\t\t}\n\t\tsubject := Subject{\n\t\t\tInput:         input,\n\t\t\tOutput:        res.Output,\n\t\t\tRatio:         res.Ratio,\n\t\t\tContentType:   res.ContentType,\n\t\t\tMethod:        res.Method,\n\t\t\tPassedThrough: res.PassedThrough,\n\t\t}\n\t\tfr := FixtureReport{\n\t\t\tName:            f.Name,\n\t\t\tContentType:     res.ContentType,\n\t\t\tTokensBefore:    res.TokensBefore,\n\t\t\tTokensAfter:     res.TokensAfter,\n\t\t\tRatio:           res.Ratio,\n\t\t\tWordsBefore:     CountWords(input),\n\t\t\tWordsAfter:      CountWords(res.Output),\n\t\t\tBasis:           res.Basis,","sourceCodeStart":208,"sourceCodeEnd":244,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/766dce6b1394ebb56a3090748d5a0240a5aefb36/engine/evals/harness.go#L208-L244","documentation":"Wraps the transform/compress call on a fixture in runManifestWithSystem: the system under test returned an error while processing the fixture input. The harness propagates it so a crashing transform is a hard failure, never a green gate.","triggerScenarios":"Thrown at engine/evals/harness.go:226 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the underlying transform error reported by the wrapped error","Check the fixture input for properties the transform rejects (size, encoding)","If the failure is a budget/CCR condition, ensure the harness's store budget covers the fixture"],"exampleFix":null,"handlingStrategy":"try-catch","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"}