refactor: fold persistent DAG state into dagrun (#2546)