This is a "Boulders in Valleys" puzzle (previously called "Balls on Hills"). It's similar to Slitherlink and Corral; your goal is to draw a path along grid cell edges that partitions the grid into two regions. This can be a closed loop, or a path that starts and ends at the grid boundary. The clues are based on the intuition of a boulder rolling down a hill into a valley. There is a unique solution, and you should be able to use logic to find it.
Rules
Path Rules
The solution is a single, non-self-intersecting path that partitions the grid into two zones (whether by looping or starting and ending at the grid boundary)
The path travels along grid edges (like Slitherlink) within the grid boundary
There is only one path that fits the constraints
Clue Rules
There is a boulder at every number. The value of the number indicates the deepest depth the boulder could roll down to. It must roll down to this depth along at least one path, but it does not have to roll down to this depth along every path.
Arrows indicate direction of gravity for the boulder.
Grid boundary stops the boulder as if it were part of the curve.
Mechanics of Rolling Boulders
A boulder can roll “down” any corner, and fall straight “down” if there is no edge below it (“down” defined with respect to gravity).
A boulder cannot roll “up” (against gravity) a wall or along two “horizontal” (perpendicular to gravity) segments in a row (the hill would be too shallow!).
Boulders do not interfere with each other (i.e. they can pass through each other, overlap each other, etc)
Examples of Boulder Rolling Mechanics
Green indicates the path that the deepest boulder took. The example in red is an impossible situation, as the deepest path (2) is deeper than the number on the boulder (1).
Extra
This is the third Boulders in Valleys puzzle. It was previously called Balls on Hills; thanks to Beastly Gerbil for the name suggestion. It was also very tempting to call this "Valleyball", but "Boulders in Valleys" sounded more relaxed.
In the future I'll make more of these, but I'll only post the ones that have an interesting gimmick (such as interesting clue placement/solution shape or a combination with another puzzle).