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_SummaryUsesFileEnvVar(t *testing.T) { if !strings.Contains(planningPreamble, "CLAUDOMATOR_SUMMARY_FILE") { t.Error("planningPreamble should instruct agent to write summary to $CLAUDOMATOR_SUMMARY_FILE") } } func TestPlanningPreamble_SummaryInstructsEchoToFile(t *testing.T) { if !strings.Contains(planningPreamble, `"$CLAUDOMATOR_SUMMARY_FILE"`) { t.Error("planningPreamble should show example of writing to $CLAUDOMATOR_SUMMARY_FILE via echo") } }