pub fn validate_envelope_freshness(
envelope: &ActionEnvelope,
) -> Result<(), ComputerUseError>Available on crate feature
computer-use only.Expand description
Verifies that an action envelope is inside its runtime-declared validity window.
The runtime owns the validity duration. ADK only enforces that both timestamps are
readable, that the interval is ordered, and that execution happens before expires_at.
This check belongs immediately before mutation because an approval interrupt or lease
acquisition can consume the rest of an otherwise-valid preview window.
ยงErrors
Returns ComputerUseError::IdentityMismatch when either timestamp is unreadable,
expires_at is not later than proposed_at, or the envelope has expired.