"""Opt-in asset-owned artifact reuse; scene decisions remain case-local.""" from pathlib import Path def configure_artifact_reuse(runtime, root=None): value = root or runtime.get('artifact_cache_root') if value is None: return path = Path(value).expanduser().resolve() path.mkdir(parents=True, exist_ok=True) runtime['artifact_cache_root'] = str(path)