feat(verifier): read llm instructions off config

This commit is contained in:
pj committed 2026-07-13 07:02:17 +05:30
1 parent 5fb01af59c
commit d9d206ee00
2 files changed
+22 -1

No files matched your search

+14
View File
@@ -96,6 +96,20 @@ func TestLLMConfigDetectsMarker(t *testing.T) {
if config.Model != "vendor/model" {
t.Errorf("model = %q, want vendor/model", config.Model)
}
if config.Instructions != "" {
t.Errorf("instructions = %q, want empty when unset", config.Instructions)
}
}
func TestLLMConfigReadsInstructions(t *testing.T) {
v := newLoadedVerifier(t, `globalThis.actions = { kind: "llm", config: { model: "m", instructions: "find bugs" } };`)
config, ok := v.LLMConfig()
if !ok {
t.Fatal("LLMConfig not detected")
}
if config.Instructions != "find bugs" {
t.Errorf("instructions = %q, want %q", config.Instructions, "find bugs")
}
}
func TestLLMConfigAbsentForSeededSpec(t *testing.T) {