Skip to main content
TealEngine v1.3 extends the parallel evaluation pipeline with pre-evaluation stages (FREEZE rules, NHI verification), post-evaluation hooks (evidence emission, response transformation), automation levels, and PLAN_ONLY mode.
TealEngine v1.3 is backward-compatible with v1.2 policies. Existing evaluate_v12() calls continue to work. The new evaluate() method adds pre/post stages and automation level support.

Installation


Quick Start


Class Signature


evaluate()

The primary v1.3 evaluation method. Executes the full pipeline:

PLAN_ONLY Mode

Returns what the governance decision would be without executing enforcement or emitting evidence.

approve_decision()

Resolves a PENDING decision by providing human approval.

reject_decision()

Resolves a PENDING decision by rejecting it.

load_policy()

Hot-swap the policy bundle at runtime. FREEZE rules are preserved across swaps.
If the bundle includes an integrity hash, TealEngine validates it before applying. A mismatched hash triggers BundleIntegrityError and the swap is rejected.

Post-Evaluation Hooks

Post-evaluation hooks run after the decision is computed but before it’s returned:

Error Handling


Performance


Migration from v1.2