Skip to content

armgit / ARTEX

Public Imported from GitHub
0

ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)

659 B
Raw Blame
package agent

import "strings"
import "testing"

// The operator-handoff discipline must stay in the executor agents' default
// seeds: environmental failures stop the retry loop and become one
// copy-pastable ask_operator command.
func TestPromptSeedsCarryOperatorHandoff(t *testing.T) {
	for name, tmpl := range BuiltinPromptSeeds() {
		switch name {
		case "worker", "pentest":
			for _, marker := range []string{
				"Operator handoff on environmental blocks",
				"one line, copy-pastable",
				"never batch",
			} {
				if !strings.Contains(tmpl, marker) {
					t.Errorf("%s seed missing operator-handoff marker %q", name, marker)
				}
			}
		}
	}
}