{"record":{"id":"1772bc786c09603d","repo":"JuliusBrussee/caveman","slug":"system-runner-is-required","errorCode":null,"errorMessage":"system runner is required","messagePattern":"system runner is required","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"engine/evals/harness.go","lineNumber":199,"sourceCode":"func RunManifest(m Manifest, read func(name string) ([]byte, error)) (Report, error) {\n\treturn runManifest(context.Background(), m, read, nil)\n}\n\n// RunManifestWithQuality is RunManifest plus the LLM-in-the-loop quality layer.\n// The runner is injected so CI can use a deterministic local runner while release\n// jobs can call a real gateway/model.\nfunc RunManifestWithQuality(ctx context.Context, m Manifest, read func(name string) ([]byte, error), opts QualityOptions) (Report, error) {\n\tif opts.Runner == nil {\n\t\treturn Report{}, fmt.Errorf(\"quality runner is required\")\n\t}\n\treturn runManifest(ctx, m, read, &opts)\n}\n\n// RunManifestWithSystem runs a caller-supplied system-under-test through the\n// same graders and optional quality layer as the built-in engine.\nfunc RunManifestWithSystem(ctx context.Context, m Manifest, read func(name string) ([]byte, error), system TransformRunner, opts *QualityOptions) (Report, error) {\n\tif system == nil {\n\t\treturn Report{}, fmt.Errorf(\"system runner is required\")\n\t}\n\tif opts != nil && opts.Runner == nil {\n\t\treturn Report{}, fmt.Errorf(\"quality runner is required\")\n\t}\n\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) {","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/766dce6b1394ebb56a3090748d5a0240a5aefb36/engine/evals/harness.go#L181-L217","documentation":"Raised by RunManifestWithSystem: the caller-supplied TransformRunner (system under test) is nil. The harness has no transform system to grade, so it fails closed rather than grading an implicit no-op.","triggerScenarios":"Thrown at engine/evals/harness.go:199 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a non-nil TransformRunner implementation","Use RunManifest to grade the built-in engine instead of a custom system"],"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"}