pub const ADVANCED_PRIMITIVES_ENABLED: bool = true;
Compile-time flag exported to downstream crates so the middleware branch can constant-fold away when advanced primitives are disabled.