-- NULL preserves every legacy task's routing. New tasks store immutable snapshots. ALTER TABLE tasks ADD COLUMN IF NOT EXISTS product_profile text; ALTER TABLE features ADD COLUMN IF NOT EXISTS product_profile text; -- Feature custom branch, aligned with tasks.base_ref. ALTER TABLE features ADD COLUMN IF NOT EXISTS base_ref text;