Signature
IPolicyRegistry.sol
Description
Returns the upper bound on the number of child policies a composite policy may reference. The valid child count range is[MIN_COMPOSITE_CHILD_POLICIES, MAX_COMPOSITE_CHILD_POLICIES], which is 2 through 4. Never reverts.
Access Control
Read-only. No role required.Policy Interaction
Used bycreateCompositePolicy and updateComposite to validate that the supplied child array length does not exceed this bound. Exceeding it reverts ChildPoliciesOutsideOfRange.
Child IDs passed to createCompositePolicy and updateComposite may carry the invert flag (bit 63). The registry strips the flag to locate the base policy for existence and type validation, then stores the child ID with the flag preserved. The child count limit applies to the number of child entries regardless of whether any carry the invert flag.
Example
Usage Example