Add guards for ill-conditioned cases (near-singular Jacobians, overlapping solutions, zero/near-zero curvature segments). Provide stable fallbacks and clear error messages.
Acceptance criteria:
- Tests for singular/near-singular setups
- Proper fallback or informative exceptions
- Tolerance constants centralized and documented