Skip to main content

permits_category

Function permits_category 

Source
pub const fn permits_category(
    namespace: &ErrorNamespace,
    category: OperationCategory,
) -> bool
Expand description

Validate that a namespace permits the given operation category.

§Category Enforcement Policy

Enforces semantic constraints to prevent obvious mismatches:

  • IO namespace: Cannot use Deception/Detection/Containment
  • DCP namespace: Must use deception-related categories
  • Log/Tel namespaces: Restricted to Audit/Monitoring/System

§Strict Taxonomy Mode

When strict_taxonomy feature is enabled, formerly permissive namespaces enforce strict category mappings. See governance docs for migration guide.

Returns true if the pairing is semantically valid.