package main
import "testing"
func TestInternalContextIsNotConversation(t *testing.T) {
for _, s := range []string{
"Another language model started to solve this problem and produced a summary",
"# AGENTS.md instructions\nprivate context",
"<environment_context>workspace</environment_context>",
"You are performing a CONTEXT CHECKPOINT COMPACTION",
"## Task and agreed scope\ncheckpoint summary",
"<skill>injected skill instructions</skill>",
} {
if !internalContext(s) {
t.Fatalf("would export injected context %q", s)
}
}
if internalContext("Let's implement!") {
t.Fatal("excluded actual user message")
}
}