Allow prepared forks to use source revalidation (#59468)

## What changed

Add `PreparedFork::with_source_revalidation` for backends that revalidate the source when making the child's history reference durable, allowing the source reservation to be omitted.

Rename the reservation-backed constructor to `with_source_reservation` and update the local thread store to use it, preserving its source deletion protection.

GitOrigin-RevId: 659c23aaf83a3856eb628ea37f1b0a153d376516
This commit is contained in:
Owen Lin
2026-11-04 17:56:42 +00:00
committed by copyberry
parent ba057e4375
commit 9ff072db8a
2 changed files with 24 additions and 5 deletions
@@ -51,7 +51,7 @@ pub(super) async fn prepare(
read_fork_history(store, thread_id, boundary, lineage)
})
.await?;
Ok(PreparedFork::new(
Ok(PreparedFork::with_source_reservation(
thread_id,
history_base,
Arc::new(model_context),