pub fn kernel_to_yaml(kernel: &ExtractedKernel) -> String
Generate YAML contract from extracted kernel.