JuliusBrussee/caveman · error
compress fixture
Error message
compress fixture %q: %w
What it means
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.
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
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at engine/evals/harness.go:226 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of JuliusBrussee/caveman@766dce6b13 (2026-08-18).
Data as JSON: /api/errors/429e78b8bcd59c3c.
Report an issue: GitHub.
Appendix: source
Thrown at engine/evals/harness.go:226
store, err := ccr.OpenMemory()
if err != nil {
return Report{}, fmt.Errorf("open recovery store: %w", err)
}
defer store.Close()
eng := engine.New(store, nil)
return runManifestWithSystem(ctx, m, read, engineSystem{eng: eng}, quality)
}
func runManifestWithSystem(ctx context.Context, m Manifest, read func(name string) ([]byte, error), system TransformRunner, quality *QualityOptions) (Report, error) {
report := Report{Passed: true}
for _, f := range m.Fixtures {
input, err := read(f.File)
if err != nil {
return Report{}, fmt.Errorf("read fixture %q: %w", f.File, err)
}
res, err := system.Transform(ctx, f, input)
if err != nil {
return Report{}, fmt.Errorf("compress fixture %q: %w", f.Name, err)
}
subject := Subject{
Input: input,
Output: res.Output,
Ratio: res.Ratio,
ContentType: res.ContentType,
Method: res.Method,
PassedThrough: res.PassedThrough,
}
fr := FixtureReport{
Name: f.Name,
ContentType: res.ContentType,
TokensBefore: res.TokensBefore,
TokensAfter: res.TokensAfter,
Ratio: res.Ratio,
WordsBefore: CountWords(input),
WordsAfter: CountWords(res.Output),
Basis: res.Basis,View on GitHub (pinned to 766dce6b13)