{"record":{"id":"7f7558eb9ea8c60b","repo":"JuliusBrussee/caveman","slug":"read-fixture-q-w","errorCode":null,"errorMessage":"read fixture %q: %w","messagePattern":"read fixture %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"engine/evals/harness.go","lineNumber":222,"sourceCode":"\treturn runManifestWithSystem(ctx, m, read, system, opts)\n}\n\nfunc runManifest(ctx context.Context, m Manifest, read func(name string) ([]byte, error), quality *QualityOptions) (Report, error) {\n\tstore, err := ccr.OpenMemory()\n\tif err != nil {\n\t\treturn Report{}, fmt.Errorf(\"open recovery store: %w\", err)\n\t}\n\tdefer store.Close()\n\teng := engine.New(store, nil)\n\treturn runManifestWithSystem(ctx, m, read, engineSystem{eng: eng}, quality)\n}\n\nfunc runManifestWithSystem(ctx context.Context, m Manifest, read func(name string) ([]byte, error), system TransformRunner, quality *QualityOptions) (Report, error) {\n\treport := Report{Passed: true}\n\tfor _, f := range m.Fixtures {\n\t\tinput, err := read(f.File)\n\t\tif err != nil {\n\t\t\treturn Report{}, fmt.Errorf(\"read fixture %q: %w\", f.File, err)\n\t\t}\n\t\tres, err := system.Transform(ctx, f, input)\n\t\tif err != nil {\n\t\t\treturn Report{}, fmt.Errorf(\"compress fixture %q: %w\", f.Name, err)\n\t\t}\n\t\tsubject := Subject{\n\t\t\tInput:         input,\n\t\t\tOutput:        res.Output,\n\t\t\tRatio:         res.Ratio,\n\t\t\tContentType:   res.ContentType,\n\t\t\tMethod:        res.Method,\n\t\t\tPassedThrough: res.PassedThrough,\n\t\t}\n\t\tfr := FixtureReport{\n\t\t\tName:            f.Name,\n\t\t\tContentType:     res.ContentType,\n\t\t\tTokensBefore:    res.TokensBefore,\n\t\t\tTokensAfter:     res.TokensAfter,","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/766dce6b1394ebb56a3090748d5a0240a5aefb36/engine/evals/harness.go#L204-L240","documentation":"Wraps the read() of a manifest-referenced fixture file in runManifestWithSystem. The fixture entry names a file the reader cannot deliver (missing from the embedded FS or disk, or rejected by the path-confinement closure in RunDir).","triggerScenarios":"Thrown at engine/evals/harness.go:222 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the fixture file exists at the manifest-declared path","Fix path typos or escaping paths flagged by the RunDir confinement checks","Rebuild the binary if embedded fixtures are missing"],"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"}