April 12, 2026

Refactor Tests & Cleanup Dead Files

Improved the test_message_processor_v2 suite by removing mocks for dispatcher/handleTool

Improved the test_message_processor_v2 suite by removing mocks for dispatcher/handleTool.

This change moves tests toward an integration-style unit testing approach.

Real ActDispatcherService instances and injected handlers are now used to verify the tool loop against actual dispatch logic.

Removed dead prompts/skills/goals.md as it had zero references in the backend Python code.

The prompts/skills/ subfolder was also removed, as it only contained this orphaned file.

This cleanup was identified during a post-trait-extraction-rip audit.

Eleven other backend/prompts/*.md files still have live callers in the codebase.

  • refactor: improve test_message_processor_v2 suite by removing dispatcher/handleTool mocks

  • Moves toward integration-style unit tests by using real ActDispatcherService instances and injected handlers

  • chore: rip dead prompts/skills/goals.md

  • Zero references in backend Python code. grep of ‘skills/goals’, ‘prompts/skills’, and ‘goals.md’ across the repo returns no callers

  • The prompts/skills/ subfolder only existed for this file – parent directory also removed

  • trait-synthesis.md stays for now – still read by run.py