Reorganize into scripts/ tests/ data/ layout; auto-migrate existing data; make numeric-env test hermetic