fn architect_commit_preview_edit<F>(
store: &ArchitectStore,
version_id: i64,
generated_root: &Path,
actor_id: i64,
summary: &str,
record_undo: bool,
apply: F,
) -> Result<(), AgentErrorKind>Expand description
Serializes preview changes and preserves accepted snapshots on promotion failure.