pub fn validate_replayed_effect_envelope(
recorded: &CanonicalRuntimeEffectEnvelope,
reconstructed: &CanonicalRuntimeEffectEnvelope,
mismatch_code: &str,
trace: Option<&RuntimeEffectReplayTrace>,
) -> Result<(), RuntimeEffectControllerError>Expand description
Validate a reconstructed effect envelope against a substrate-recorded canonical envelope.
This is the shared replay-validation seam. Substrates supply only their public mismatch code; canonical comparison, summary construction, and gated diagnostics remain identical for every consumer.