Recommendation: Defer structural refactoring until after tomorrow's
demo unless today's work is limited to documentation and creating a
vectis-core repository skeleton. Avoid moving files or changing paths
before a customer demo.
- Create a git tag and backup SQLite/data.
- Capture a successful demo run.
- Record startup time and smoke tests.
Exit criteria: App runs unchanged.
- Add
.envwithDATA_ROOT. - Replace hard-coded paths with a central
paths.py. - No file moves.
Tests: Backend starts, SQLite loads, DuckDB builds, UI matches baseline.
- Create
Data/Power/.... - Copy (don't move) datasets.
- Point one branch to new layout.
Tests: Compare row counts and key queries.
- Create shared package.
- Move path/config/logging utilities only.
Tests: Import from package; all integration tests pass.
- Remove legacy paths.
- Document bootstrap process.
Exit: Demo-quality application with identical behavior.