Skip to main content

export

Function export 

Source
pub fn export(
    engine: &GovernanceEngine,
    limits: &Limits,
    signing_key: &SigningKey,
    version: u64,
    issued_at: DateTime<Utc>,
) -> Result<ParentPolicy, ParentPolicyError>
Expand description

User side: snapshot engine, tighten with limits, sign.

limits carries what the engine does not hold (max_processes, spawn_budget) and may only lower the engine’s own threshold or raise its human-approval flag. Refuses to sign an out-of-range threshold.