Runtime API

Updated Jul 27, 2026

Use PolicyEngine or PolicyDefinition from zamburak-policy:

  • PolicyEngine::from_yaml_str(...),
  • PolicyEngine::from_json_str(...),
  • PolicyDefinition::from_yaml_str(...),
  • PolicyDefinition::from_json_str(...).

These entrypoints return canonical policy objects and hide migration evidence.

For auditable migration evidence, use:

  • PolicyEngine::from_yaml_str_with_migration_audit(...),
  • PolicyEngine::from_json_str_with_migration_audit(...),
  • PolicyDefinition::from_yaml_str_with_migration_audit(...),
  • PolicyDefinition::from_json_str_with_migration_audit(...).

Audit outcomes include:

  • source and target schema versions,
  • source and target canonicalized SHA-256 document hashes,
  • ordered per-step transform records (policy_schema_v0_to_v1).