pub fn try_record_session_event( session: Option<&Session>, cwd: &Path, event_type: impl AsRef<str>, payload: Value, ) -> Result<SessionAppendOutcome>
Best-effort session event recording for runtime telemetry.