Skip to main content

Crate logicpearl_engine

Crate logicpearl_engine 

Source
Expand description

Application-facing loader and execution facade.

This crate is the library entrypoint for services that want to run LogicPearl bundles without invoking the CLI. It resolves artifact manifests with the shared bundle path policy, loads gate, action, and pipeline artifacts, and delegates deterministic evaluation to the runtime. It does not learn new artifacts or execute build-time discovery.

use logicpearl_engine::LogicPearlEngine;
use serde_json::json;

let engine = LogicPearlEngine::from_path("artifacts/access_policy")?;
let result = engine.run_single_json(&json!({
    "clearance_ok": false,
    "mfa_enabled": true
}))?;
println!("{result:?}");

Structs§

ActionArtifactBatchExecution
ActionArtifactExecution
ArtifactBatchExecution
ArtifactExecution
LogicPearlEngine

Enums§

EngineBatchExecution
EngineExecutionEnvelope
EngineKind
EngineSingleExecution

Type Aliases§

ArtifactEvaluation