{"record":{"id":"569e31f96528ed34","repo":"JuliusBrussee/caveman","slug":"parse-manifest-w","errorCode":null,"errorMessage":"parse manifest: %w","messagePattern":"parse manifest: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"engine/evals/harness.go","lineNumber":103,"sourceCode":"\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}\n\tmanifestRaw, err := os.ReadFile(filepath.Join(resolvedRoot, \"manifest.yaml\"))\n\tif err != nil {\n\t\treturn Report{}, fmt.Errorf(\"read manifest: %w\", err)","sourceCodeStart":85,"sourceCodeEnd":121,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/766dce6b1394ebb56a3090748d5a0240a5aefb36/engine/evals/harness.go#L85-L121","documentation":"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.","triggerScenarios":"Thrown at engine/evals/harness.go:103 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","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"}