pub type RulesHook<'h> = dyn FnMut(&str, &[u8]) -> Result<BackendDescriptor, String> + 'h;
Derives a rules program’s descriptor from its bytes; the host owns the rules backend (spec 027, 3.3.2).