refactor: separate DAG-run work directories from history (#2564)