pub fn validate_knowledge_record( record: &Value, expected_hash: Option<&str>, ) -> Result<()>
Validate a service receipt and optionally bind it to the requested ID.