pub fn classify_intent(input: &str) -> IntentClassExpand description
Classify a user input string into a coarse intent class.
Why: Lets submit_task and run_pm_task_with_session route each input
to its cheapest viable path — direct reply (Conversational), in-process
tool-armed loop (Research), or full subprocess pipeline (Implementation).
What: Applies heuristics in priority order — empty, slash command, greeting,
closing, self-question, research-question, action-verb scan, length-based
fallback.
Test: tests::* below covers greetings, closings, self-questions, research
verbs, question words, clear task verbs, slash commands, and edge cases.