EnterprisePolicyEngine class

Central Enterprise Configuration & Policy Engine.

Features:

  1. Hierarchical, composable policy resolution: Organization Policy -> Project Policy -> Package Policy -> Environment Policy.
  2. Declarative policy evaluation across release, security, AI usage, dependencies, naming, and operations.
  3. Profile presets (Standard, Strict, Financial, Healthcare, Government, OpenSource).
  4. Pure deterministic evaluation and gating logic.

Constructors

EnterprisePolicyEngine({required String projectRoot, EnterprisePolicyDocument? overridePolicy})

Properties

hashCode → int
The hash code for this object.
no setterinherited
projectRoot → String
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

evaluatePolicy({EnterprisePolicyScope scope = EnterprisePolicyScope.project, String? targetPackagePath, String? operationName, Map<String, dynamic>? operationContext, EnterprisePolicyDocument? activePolicy, DateTime? executionTimestamp}) → Future<PolicyEvaluationResult>
Evaluates workspace or operation against resolved enterprise policy.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolvePolicy({String? relativePackagePath}) → EnterprisePolicyDocument
Loads and resolves hierarchical enterprise policy for the workspace.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited