Skip to main content

compile_decision

Function compile_decision 

Source
pub fn compile_decision(
    bundle: &ContractBundle,
    expected: &ContractBundle,
    original_bytes: &[u8],
) -> Result<PolicyOutcome, QdnfError>
Expand description

Admit a compiled view only when exact original bytes hash to the bundle digest, expected shape/rules/context/ontology/vocabulary match, and the required vocabulary is present in the verifier’s known table.

There is no signed / supported boolean. Empty bytes are malformed. Vocabulary mismatch is PolicyOutcome::Incomplete (no Unsupported variant exists on PolicyOutcome); it is never PolicyOutcome::Allow.