Complete pipeline preflight verification

This commit is contained in:
2026-11-28 04:45:29 +00:00
parent d5056d77b6
commit c08e5ab670
9 changed files with 114 additions and 29 deletions

View File

@@ -69,6 +69,11 @@ prompts:
resolved.Chunk.LLMProfile = "missing"
if _, err := DiscoverTargets(context.Background(), resolved, catalog, engine); !errors.Is(err, promptkit.ErrProfileNotFound) {
t.Fatalf("missing profile cause = %v", err)
} else {
var targetErr *TargetError
if !errors.As(err, &targetErr) || targetErr.Scope.Module != "chunk" {
t.Fatalf("missing profile binding scope = %v", err)
}
}
resolved.Chunk.LLMProfile = ""
resolved.Chunk.Module = "dynamic"