pub fn record( unit: &str, stamp: StampKind, commit: Option<&str>, sdd: Option<&str>, ) -> Result<u8, CoreError>