Feat: Reconcile dashboards to verified completions for on-wiki tasks (T433369 phase 5)
The /impact "Tasks completed" headline and the /analytics journey card counted raw .complete/CTA events. Once a task's completion becomes on-wiki verified (create-essential-article in phase 4; HotCat already), those events stop firing, so the metrics would read zero. Read the task_verifications ledger instead for verifiable tasks; non-verifiable tasks stay event-derived.
- server/db/journey.js: verifiedCompletionPairs(taskKey, days, excludeUsers) reads the ledger; buildTaskCompletion and getTaskParticipants take the completed set (and completedTypes from created_title) from it for VERIFIABLE_TASKS. getTaskParticipants now drops ghost rows (pairs neither started nor completed) so a historical hollow
.complete/mark-done click no longer surfaces in the drill-down. Headline count == drill-down row count is preserved by sourcing both from the same ledger read. - server/db/impact.js: getTaskCompletionsDetail overwrites each VERIFIABLE_TASKS entry with the ledger's verified runs (one row per created article; re-runs of different articles still count again), applying the same window + test/staff exclusions — so the headline tile and its drill-down both read reconciled completions.
Depends on phase 4 (the created_title column + the create-essential-article ledger entry). Part of the phases 1+4+5+6 single-deploy set.
Co-Authored-By: Claude Opus 4.8
Bug: T433369