Metakit / @doeixd/metakit/prove

policyAllConsistent

function · packages/metakit/src/prove/policy.ts:105

function policyAllConsistent<
  Row,
  Principal,
  Rules extends Readonly<
    Record<string, Expr.Expr<Policy.PolicyEnv<Row, Principal>, boolean>>
  >,
>(
  pol: Policy.Definition<Row, Principal, Rules>,
  options?: ProveOptions,
): Effect.Effect<
  PolicyConsistencyReport<keyof Rules & string>,
  SolverUnavailableError
>

Check consistency (reachability) of every rule in pol: ok is true only when every rule is proved reachable (True); unreachable lists every rule proved dead (False).