core/config_paths.py resolves a single override so tests and multiple instances can run against isolated temp config/db without touching user data.
Import the pre-repair source tree as the history baseline. Runtime data (data/), virtualenvs, bytecode caches and logs are gitignored so local secrets and user state stay out of the repo.