5bfc07c7e1
After deploying v5 analysis.py, run this once to overwrite v4 scores in the DB with v5's interpretation. Idempotent — skips rows already at v5. Has --dry-run mode to preview the change without AI calls or DB writes. Live mode prompts for confirmation (skipped if stdin is non-tty so it also works under `docker exec`). Touches only AI-derived columns (signal, ai_confidence, ai_reasoning, sentiment, relevant, prefilter_reason, analysis_version). Leaves all market-derived columns intact (price_at_post, price_impact_*) — those stay accurate regardless of which prompt version interpreted the post. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>