moo.agent.tests.test_brain_prompt

Tests for moo/agent/brain_prompt.py — pure string construction.

Both builders are pure functions with no Brain state. These tests pin the exact shape of the output for each branch so we catch any drift when the prompt preambles change.

Functions

test_system_prompt_has_mission_persona_response_format()

test_system_prompt_includes_addendum_at_end()

test_system_prompt_includes_context_when_present()

test_system_prompt_omits_empty_addendum()

test_system_prompt_omits_empty_context()

test_system_prompt_omits_tool_reference_block()

Stage-2: tools are registered on the Agent, not the prompt.

test_system_prompt_section_order()

test_user_message_current_goal_included()

test_user_message_current_plan_joined_with_pipes()

test_user_message_idle_wakeup_counter_included()

test_user_message_idle_wakeup_hidden_when_zero()

test_user_message_memory_summary_included()

test_user_message_minimum()

test_user_message_plan_exhausted_hidden_when_plan_present()

A live plan takes priority over the exhausted-marker fallback.

test_user_message_plan_exhausted_overrides_plan_line()

test_user_message_section_order()

test_user_message_window_lines_joined()