JuliusBrussee/caveman · error
parse manifest
Error message
parse manifest: %w
What it means
Wraps the yaml.Unmarshal failure for the fixture manifest (embedded in Run, on-disk in RunDir). The manifest is structurally invalid YAML or does not match the Manifest schema, so no fixtures can be replayed.
Solutions
- Fix the YAML syntax or schema of manifest.yaml per the wrapped error's line/column
- Compare against a known-good manifest from the embedded fixture set
- Ensure fixture entries use the expected field names and types
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at engine/evals/harness.go:103 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/569e31f96528ed34.
Report an issue: GitHub.
Appendix: source
Thrown at engine/evals/harness.go:103
TokenRatio float64 `json:"token_ratio"`
WordsBefore int `json:"words_before"`
WordsAfter int `json:"words_after"`
WordRatio float64 `json:"word_ratio"`
Probes ProbeSummary `json:"probes"`
Quality *QualitySummary `json:"quality,omitempty"`
Fixtures []FixtureReport `json:"fixtures"`
}
// Run replays the embedded fixture set behind its graders and returns the
// report. It runs the engine's configured quality gate.
func Run() (Report, error) {
var m Manifest
raw, err := fixturesFS.ReadFile("fixtures/manifest.yaml")
if err != nil {
return Report{}, fmt.Errorf("read manifest: %w", err)
}
if err := yaml.Unmarshal(raw, &m); err != nil {
return Report{}, fmt.Errorf("parse manifest: %w", err)
}
read := func(name string) ([]byte, error) {
return fixturesFS.ReadFile("fixtures/" + name)
}
return RunManifest(m, read)
}
// 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)View on GitHub (pinned to 766dce6b13)