Feat: Verify create-essential-article completion on-wiki + make it repeatable (T433369 phase 4)

Register create-essential-article in the T433014 verification machinery so a run is complete only when the caller CREATED the picked article on the target wiki — retiring the hollow "Mark as done" click and the status-4 "exists → done for everybody" bug.

- server/db/verifications.js: add the create-essential-article VERIFIABLE_TASKS entry (open-editor cta_click) with verifyEssentialArticleRun — OAuth-free: reads the run's approach from the per-event open (falling back to metadata), resolves the target title (translate → resolveLanglinkTarget; write-from- scratch → captured targetTitle, else the English source), and credits only when getPageCreator shows the caller authored the page's oldest revision, in ns0, non-redirect, created at/after the run's open. Ledger keeps the ENGLISH article_title as the UNIQUE/anti-join key; the new created_title column stores the actual page as audit. getPendingOpens now surfaces the per-event approach so an in-flight translate run isn't misread as write-from- scratch when the single metadata row is clobbered by a later pick.

- server/db/schema.sql + index.js: created_title column + idempotent ALTER boot migration. task-verification.js: verifyOpen forwards createdTitle to creditVerifiedRun.

- server/routes/tasks.js: add to PER_USER_TASKS; rebuild getEssentialArticleCompletionStatus per-caller and LEDGER-FIRST (a verified run_count means done regardless of whether metadata survived Phase 1's re-key or a re-pick), dropping status 4 and the global langlink existence gate. The ledger is the ONLY source of done: a published CX translation reads as in-progress, not done — CX happily publishes over an article someone else created, which the verifier refuses (creator != caller), so mapping published→done would show the completion screen for a run the ledger never credits. A publish that really created the page is credited by verify-pending on the very next completions read.

- client: registry gets repeatable/completionScope:'user' and completedStatuses [3,4]→[3]; markDone is UI-only (no api.completeTask — POST /tasks/complete now 400s for this task), completion resolving via the status-read/sweep triggers like HotCat.

Depends on phases 1-3 (!148 (merged)/ !149 (merged)/ !150 (merged)). Write-from-scratch on non-English wikis auto-credits only once the captured target title (T433039, !147 (merged)) lands; until then it falls back to the English title (safe false-negative, never a false credit).

Co-Authored-By: Claude Opus 4.8

Co-Authored-By: Claude Fable 5

Bug: T433369

Edited by Nik Gkountas

Merge request reports

Loading