JuliusBrussee/caveman · error
read manifest
Error message
read manifest: %w
What it means
Wraps the embedded-fixture manifest read failure in evals.Run: fixtures/manifest.yaml could not be read from the embedded FS. Since the fixtures are compiled in, this signals a build/embedding problem rather than a user error.
Solutions
- Rebuild the binary — the embed.FS is missing or stale
- Verify the fixtures directory and manifest.yaml are included via the embed directive
- Check the wrapped error for the underlying FS failure
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at engine/evals/harness.go:100 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/065e22f50d30c4d4.
Report an issue: GitHub.
Appendix: source
Thrown at engine/evals/harness.go:100
Passed bool `json:"passed"`
TokensBefore int `json:"tokens_before"`
TokensAfter int `json:"tokens_after"`
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)
}View on GitHub (pinned to 766dce6b13)