JuliusBrussee/caveman · error
manifest has no fixtures
Error message
manifest has no fixtures
What it means
Raised by RunDir after parsing a caller-supplied manifest: it declares zero fixtures. An empty custom corpus is treated as a configuration error rather than a vacuous pass, so the eval run fails closed.
Solutions
- Add at least one fixture entry to manifest.yaml
- Check YAML indentation that may be silently dropping the fixtures list
- Use the embedded fixture set instead of an empty custom corpus
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at engine/evals/harness.go:128 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/6080b2689338e1ad.
Report an issue: GitHub.
Appendix: source
Thrown at engine/evals/harness.go:128
// RunDir replays a caller-supplied fixture directory containing manifest.yaml.
// Manifest file paths are slash-separated, relative, and confined to root even
// through symlinks; a custom empty corpus is a configuration error, never green.
func RunDir(root string) (Report, error) {
resolvedRoot, err := filepath.EvalSymlinks(root)
if err != nil {
return Report{}, fmt.Errorf("resolve fixture directory: %w", err)
}
manifestRaw, err := os.ReadFile(filepath.Join(resolvedRoot, "manifest.yaml"))
if err != nil {
return Report{}, fmt.Errorf("read manifest: %w", err)
}
var m Manifest
if err := yaml.Unmarshal(manifestRaw, &m); err != nil {
return Report{}, fmt.Errorf("parse manifest: %w", err)
}
if len(m.Fixtures) == 0 {
return Report{}, fmt.Errorf("manifest has no fixtures")
}
read := func(name string) ([]byte, error) {
if !fs.ValidPath(name) || name == "." {
return nil, fmt.Errorf("invalid fixture path %q", name)
}
candidate, err := filepath.EvalSymlinks(filepath.Join(resolvedRoot, filepath.FromSlash(name)))
if err != nil {
return nil, err
}
rel, err := filepath.Rel(resolvedRoot, candidate)
if err != nil || rel == ".." || strings.HasPrefix(rel, ".."+string(filepath.Separator)) {
return nil, fmt.Errorf("fixture path escapes root: %q", name)
}
return os.ReadFile(candidate)
}
return RunManifest(m, read)
}
View on GitHub (pinned to 766dce6b13)