summaryrefslogtreecommitdiff
path: root/internal/executor/preamble_test.go
blob: 448ad3aa090753aa93ec709b59fe1b1d2884e916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package executor

import (
	"strings"
	"testing"
)

func TestPlanningPreamble_ContainsFinalSummarySection(t *testing.T) {
	if !strings.Contains(planningPreamble, "## Final Summary (mandatory)") {
		t.Error("planningPreamble missing '## Final Summary (mandatory)' heading")
	}
}

func TestPlanningPreamble_SummaryRequiresMarkdownHeader(t *testing.T) {
	if !strings.Contains(planningPreamble, `Start it with "## Summary"`) {
		t.Error("planningPreamble does not instruct agent to start summary with '## Summary'")
	}
}

func TestPlanningPreamble_SummaryDescribesRequiredContent(t *testing.T) {
	for _, phrase := range []string{"What was accomplished", "Key decisions made", "Any issues or follow-ups"} {
		if !strings.Contains(planningPreamble, phrase) {
			t.Errorf("planningPreamble missing required summary content description: %q", phrase)
		}
	}
}