fix herdr launch safety and task context
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package orchestrator
|
||||
|
||||
import (
|
||||
"orchestra/internal/domain"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestTaskLaunchPromptIncludesRemoteTaskInstructions(t *testing.T) {
|
||||
prompt := taskLaunchPrompt(domain.Task{
|
||||
ID: "task-1",
|
||||
Title: "Create marker",
|
||||
Description: "Create E2E_RESULT.md containing ok.",
|
||||
})
|
||||
for _, want := range []string{"task-1", "Create marker", "Create E2E_RESULT.md containing ok."} {
|
||||
if !strings.Contains(prompt, want) {
|
||||
t.Fatalf("launch prompt missing %q: %s", want, prompt)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user