pub fn apply_side_effects( intent: &IntentRecord, project_root: Option<&str>, session_id: &str, ) -> Result<(), String>