44ca3916b6
Phase 2 Task 11 of LLM-first router overhaul. Spec §17 — extends
detectMissedActivations() to recognise the new v4 episode schema while keeping
the v2/v3 conditional rule (Pravila §16.4 v1.36) unchanged for legacy episodes
still flowing in the log.
- tools/missed-activations.mjs:
+ V4_EXEMPT_TASK_TYPES = {conversation, micro, manual_override} (§17 exempt
set; continuation deliberately not in this list per spec §6 / D1).
+ v4 branch: uses classifier_output.task_type +
classifier_output.recommended_node + classifier_output.no_skill_found +
execution_trace.actual_node_invoked_first. classificationMap is ignored
on this path (recommended_node is inline). Dormancy still respected.
+ v2/v3 legacy branch unchanged.
+ signature kept positional (episodes, classificationMap?, dormancy?) —
brain-retro-analyzer.mjs:229 and observer-coverage-checker.mjs:124
untouched; their tests still pass.
- tools/missed-activations.test.mjs: +6 v4-path tests (flagged miss / 3 §17
exempt cases / no_skill_found honest / real node fired / recommended dormant).
Tests: 16 missed-activations + 35 brain-retro-analyzer + 10 observer-coverage-
checker = 61 PASS, 0 regressions.