Rules:
Normal sudoku rules apply.
Digits on a red line must be broken into one or more contiguous groups of cells that each sum to ten. Such groups cannot overlap.(See exception below) Digits may repeat within such sums if allowed by other rules. For example, 513173 is a valid fill for a length 6 line, because it can be broken into 5131 and 73, each of which sum to 10.
There is one and only one cell on the red line that is a part of more than one Ten-sums. So one overlap is allowed.
Digits separated by a white dot are consecutive.
Digits separated by an X sum to 10.
Black lines are for cosmetical purposes only.
Solution code: Negative diagonal