The summary template writes task count as `**Tasks:** N` in the Performance section, but `cmdMilestoneComplete` only counted `## Task N` markdown headers — which don't exist in that format. Now checks three patterns in order: `**Tasks:** N` field (primary), `<task` XML tags, then `## Task N` headers (legacy fallback). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>