//! Wire-format envelope constants.
/// Leading magic bytes for the vyre IR wire format.
///
/// The `VIR0` tag identifies the wire envelope; the version byte pair
/// [`WIRE_FORMAT_VERSION`] immediately after the magic identifies
/// which schema version the payload follows. Downstream consumers
/// that parse this format must reject any blob whose version is
/// greater than their compiled-in `WIRE_FORMAT_VERSION`.
pub const MAGIC: & = b"VIR0";
/// Current wire-format schema version. Incremented on any
/// breaking schema change (variant added/removed, field reorder, new
/// non-additive framing). Audit L.1.47: the previous format lacked a
/// version field entirely; any schema drift produced arbitrary
/// parse errors with no way to tell caller "you're on a newer
/// version than this decoder knows about".
pub const WIRE_FORMAT_VERSION: u16 = 1;