@@ -418,23 +418,25 @@ func TestMysisContextMemoryWithRecentSystemPrompt(t *testing.T) {
418418 }
419419
420420 func TestSystemPromptContainsCaptainsLogExamples(t *testing.T) {
421- if !strings.Contains(constants.SystemPrompt, "captains_log_add({\"entry\":") {
422- t.Fatal("SystemPrompt missing captains_log_add example")
423- }
424- if !strings.Contains(constants.SystemPrompt, "non-empty entry field") {
421+ // Check for captain's log guidance in Critical Rules section
422+ if !strings.Contains(constants.SystemPrompt, "Captain's log entry field must be non-empty") {
425423 t.Fatal("SystemPrompt missing non-empty entry reminder")
426424 }
427- if !strings.Contains(constants.SystemPrompt, "Max 20 entries") {
425+ if !strings.Contains(constants.SystemPrompt, "max 20 entries") {
428426 t.Fatal("SystemPrompt missing captain's log limit guidance")
429427 }
428+ if !strings.Contains(constants.SystemPrompt, "100KB each") {
429+ t.Fatal("SystemPrompt missing captain's log size limit")
430+ }
430431 }
431432
432433 func TestContinuePromptContainsCriticalReminders(t *testing.T) {
433- if !strings.Contains(constants.ContinuePrompt, "captains_log_add") {
434- t.Fatal("ContinuePrompt missing captains_log_add reminder")
434+ // Check for get_notifications reminder which is the critical reminder in ContinuePrompt
435+ if !strings.Contains(constants.ContinuePrompt, "get_notifications") {
436+ t.Fatal("ContinuePrompt missing get_notifications reminder")
435437 }
436- if !strings.Contains(constants.ContinuePrompt, "100KB") {
437- t.Fatal("ContinuePrompt missing captain's log limit reminder")
438+ if !strings.Contains(constants.ContinuePrompt, "What's your next move?") {
439+ t.Fatal("ContinuePrompt missing autonomy prompt")
438440 }
439441 }
440442
@@ -572,32 +574,27 @@ func TestMysisContextCompaction(t *testing.T) {
572574 }
573575
574576 func TestSystemPromptContainsSearchGuidance(t *testing.T) {
577+ // Check for search tools in Swarm Coordination section
575578 if !strings.Contains(constants.SystemPrompt, "zoea_search_messages") {
576579 t.Fatal("SystemPrompt missing zoea_search_messages reference")
577580 }
578581 if !strings.Contains(constants.SystemPrompt, "zoea_search_reasoning") {
579582 t.Fatal("SystemPrompt missing zoea_search_reasoning reference")
580583 }
581- if !strings.Contains(constants.SystemPrompt, "Context & Memory Management") {
582- t.Fatal("SystemPrompt missing Context & Memory Management section")
584+ if !strings.Contains(constants.SystemPrompt, "zoea_search_broadcasts") {
585+ t.Fatal("SystemPrompt missing zoea_search_broadcasts reference")
586+ }
587+ // Check for context limitation guidance
588+ if !strings.Contains(constants.SystemPrompt, "Context is limited") {
589+ t.Fatal("SystemPrompt missing context limitation guidance")
583590 }
584591 }
585592
586593 func TestContinuePromptContainsSearchReminder(t *testing.T) {
587- if !strings.Contains(constants.ContinuePrompt, "zoea_search_messages") {
588- t.Fatal("ContinuePrompt missing zoea_search_messages reminder")
589- }
590- if !strings.Contains(constants.ContinuePrompt, "zoea_search_reasoning") {
591- t.Fatal("ContinuePrompt missing zoea_search_reasoning reminder")
592- }
593- if !strings.Contains(constants.ContinuePrompt, "zoea_claim_account") {
594- t.Fatal("ContinuePrompt missing zoea_claim_account reminder")
595- }
596- if !strings.Contains(constants.ContinuePrompt, "Crustacean-themed") {
597- t.Fatal("ContinuePrompt missing themed username reminder")
598- }
599- if !strings.Contains(constants.ContinuePrompt, "real-world time") {
600- t.Fatal("ContinuePrompt missing real-world time reminder")
594+ // ContinuePrompt is intentionally minimal - only checks for critical get_notifications reminder
595+ // Search tools, account claiming, and other guidance are in SystemPrompt
596+ if !strings.Contains(constants.ContinuePrompt, "get_notifications") {
597+ t.Fatal("ContinuePrompt missing get_notifications reminder")
601598 }
602599 }