fix herdr launch safety and task context

This commit is contained in:
kami
2026-07-28 13:20:28 +04:00
parent 636ed8a811
commit 58793a5aa3
8 changed files with 826 additions and 74 deletions
@@ -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)
}
}
}