- Pass recent history to classify_query for context-aware routing
- Add multi-turn continuation rules to ROUTER_PROMPT
- Add deterministic _rescue_classification guardrail for active sessions
- Increase max_tokens in router (1500) and agent loop (3500) to prevent thinking tag cutoffs
- Add unit test coverage for multi-turn and continuation classification
feat(alerts): add Pulse AI double opt-in alert subscriptions system
- Add 10 alert criteria types with RPC-based evaluation and 24h rolling cooldown
- Implement pluggable email service with Gmail SMTP and unsubscribe links
- Add ALERT_SUBSCRIPTION query classification and isolated 2-tool resolution
- Add confirmation, unsubscribe, and internal evaluate API routes
- Add background evaluator, digest sender, and cleanup workers
- Add comprehensive test suite with 45 unit tests and 44 simulated tool tests
refactor(core): reduce cyclomatic complexity to <=10, enforce <=500 lines per file, apply comment discipline, and add 22-tool test suite