//! Prompt content hash computation.
use ;
use cratePromptSpec;
/// Computes `sha256:<hex64>` over the JCS-canonical authored Prompt JSON.
///
/// The authored form is the durable identity: derived request, variables,
/// and response type never contribute, and key order never matters.
///
/// # Panics
///
/// Panics if the spec cannot be serialized, which compiling it on
/// construction rules out.