> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-docs-sync-code-change-91427ab.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IPolicyRegistry.MAX_COMPOSITE_CHILD_POLICIES

> Returns the maximum number of child policies a composite policy may reference.

## Signature

```solidity IPolicyRegistry.sol theme={null}
function MAX_COMPOSITE_CHILD_POLICIES() external view returns (uint256);
```

| Field               | Value                            |
| ------------------- | -------------------------------- |
| Selector            | `0x54309870`                     |
| Canonical signature | `MAX_COMPOSITE_CHILD_POLICIES()` |

## 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 by `createCompositePolicy` 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

```solidity Usage Example theme={null}
uint256 max = IPolicyRegistry(target).MAX_COMPOSITE_CHILD_POLICIES();
```
