jacopy.research.register_family_rule

jacopy.research.register_family_rule(when, build, why, *, order)

Add build(registry) to an assembled engine when the scanned families satisfy when: a tag ("wedge"), a set of tags (ALL present) or a predicate families -> bool. Rules are added in ascending order (ties: registration order).

Idempotent: registering the same rule again (same when tag / tag set / predicate object, same build object, why and order) returns the existing entry instead of adding a second copy. The library’s own rules are always loaded first (ensure_builtin_kinds()).

Parameters:
Return type:

FamilyRule