pub fn print_error_envelope(kind: &str, message: &str)
Write a structured error envelope as the last line of stderr.
Consumers can parse this JSON to branch on error.kind without parsing free-form error text.
error.kind