Implement is_allowed(policies, principal, action, resource). Each policy is a mapping with effect ("allow" or "deny") plus lists principals, actions, and resources.
List entries use shell-style * wildcards. A policy matches only when all three dimensions match. Any matching deny overrides every allow; otherwise at least one matching allow grants access, and no match denies by default. Reject unknown effects with ValueError. Do not mutate policy data.