pub fn select_thread_base(
requested_from: Option<StateId>,
existing_tip: Option<StateId>,
) -> Result<ThreadBaseSelection, ThreadBaseError>Expand description
Select the base state for a new or resumed thread start.
Rules (matching CLI start_thread):
- Existing tip + matching
--from(or no--from) → use existing tip - Existing tip + mismatched
--from→ThreadBaseError::AnchorMismatch - No existing tip +
--from→ use the resolved--from - Neither →
ThreadBaseSelection::RequireCurrent