JuliusBrussee/caveman · error

quality fixture

Error message

quality fixture %q: %w

What it means

Wraps runQuality's failure for a single fixture inside runManifestWithSystem: the quality stage (model calls, usage accounting, or grading) errored for the named fixture, so the whole report fails rather than reporting a partial quality result.

Solutions

  1. Inspect the wrapped error: model call failures, missing usage, and grader errors all surface here
  2. Fix connectivity/credentials for the quality runner in release jobs
  3. Use the deterministic runner in CI to isolate model-availability issues
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at engine/evals/harness.go:276 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/4ad03b3939790d23. Report an issue: GitHub.

Appendix: source

Thrown at engine/evals/harness.go:276

		mergeProbeSummary(&report.Probes, probeSummary)
		// A fixture with no graders is a configuration error, not a free pass.
		if len(f.Graders) == 0 {
			fr.Passed = false
			fr.Failures = append(fr.Failures, "no graders configured")
		}
		for _, g := range f.Graders {
			if v := Grade(g, subject); !v.Passed {
				fr.Passed = false
				fr.Failures = append(fr.Failures, v.Reason)
			}
		}
		if !fr.Passed {
			report.Passed = false
		}
		if quality != nil {
			qr, err := runQuality(ctx, *quality, f, input, res.Output, res.ContentType, res.Ratio, res.PassedThrough)
			if err != nil {
				return Report{}, fmt.Errorf("quality fixture %q: %w", f.Name, err)
			}
			fr.Quality = &qr
		}
		report.TokensBefore += fr.TokensBefore
		report.TokensAfter += fr.TokensAfter
		report.WordsBefore += fr.WordsBefore
		report.WordsAfter += fr.WordsAfter
		report.Fixtures = append(report.Fixtures, fr)
	}
	report.TokenRatio = ratio(report.TokensBefore, report.TokensAfter)
	report.WordRatio = ratio(report.WordsBefore, report.WordsAfter)
	if quality != nil {
		report.Quality = summarizeQuality(report.Fixtures, *quality)
		if !report.Quality.Passed {
			report.Passed = false
		}
	}
	return report, nil

View on GitHub (pinned to 766dce6b13)