UPLOAD_DIR and DB_PATH were read directly from os.environ, bypassing the Settings dataclass. This caused an inconsistency where overriding Settings had no effect on these values. Now all modules import from infra.settings.settings.
Schema migration for new columns, repository read/write support, and dedicated update_chunks method for re-chunking operations.