{"record":{"id":"065e22f50d30c4d4","repo":"JuliusBrussee/caveman","slug":"read-manifest-w","errorCode":null,"errorMessage":"read manifest: %w","messagePattern":"read manifest: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"engine/evals/harness.go","lineNumber":100,"sourceCode":"\tPassed       bool            `json:\"passed\"`\n\tTokensBefore int             `json:\"tokens_before\"`\n\tTokensAfter  int             `json:\"tokens_after\"`\n\tTokenRatio   float64         `json:\"token_ratio\"`\n\tWordsBefore  int             `json:\"words_before\"`\n\tWordsAfter   int             `json:\"words_after\"`\n\tWordRatio    float64         `json:\"word_ratio\"`\n\tProbes       ProbeSummary    `json:\"probes\"`\n\tQuality      *QualitySummary `json:\"quality,omitempty\"`\n\tFixtures     []FixtureReport `json:\"fixtures\"`\n}\n\n// Run replays the embedded fixture set behind its graders and returns the\n// report. It runs the engine's configured quality gate.\nfunc Run() (Report, error) {\n\tvar m Manifest\n\traw, err := fixturesFS.ReadFile(\"fixtures/manifest.yaml\")\n\tif err != nil {\n\t\treturn Report{}, fmt.Errorf(\"read manifest: %w\", err)\n\t}\n\tif err := yaml.Unmarshal(raw, &m); err != nil {\n\t\treturn Report{}, fmt.Errorf(\"parse manifest: %w\", err)\n\t}\n\tread := func(name string) ([]byte, error) {\n\t\treturn fixturesFS.ReadFile(\"fixtures/\" + name)\n\t}\n\treturn RunManifest(m, read)\n}\n\n// RunDir replays a caller-supplied fixture directory containing manifest.yaml.\n// Manifest file paths are slash-separated, relative, and confined to root even\n// through symlinks; a custom empty corpus is a configuration error, never green.\nfunc RunDir(root string) (Report, error) {\n\tresolvedRoot, err := filepath.EvalSymlinks(root)\n\tif err != nil {\n\t\treturn Report{}, fmt.Errorf(\"resolve fixture directory: %w\", err)\n\t}","sourceCodeStart":82,"sourceCodeEnd":118,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/766dce6b1394ebb56a3090748d5a0240a5aefb36/engine/evals/harness.go#L82-L118","documentation":"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.","triggerScenarios":"Thrown at engine/evals/harness.go:100 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"766dce6b1394ebb56a3090748d5a0240a5aefb36","analyzedAt":"2026-08-18T03:14:35.516Z","contentChangedAt":"2026-08-18T03:14:35.516Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}