Skip to main content

Crate harness_core

Crate harness_core 

Source
Expand description

AiEGIS Harness core library.

Provides policy-pack loading + validation, the rule evaluator, and the audit-log entry shape. Wire it up via the harness-cli crate (or any embedder).

Behaviour is a direct port of the Python reference daemon at aiegis-harness-reference/reference-daemon/harness.py; every translation has been cross-checked against the Python source. See module-level docs for the Python function each Rust function corresponds to.

Spec: policy-pack-format.md (sha 72e33894c738f5c9). Canonical positioning: AIEGIS_HARNESS_SPEC.md (Nel, sha d4f0b5d19066eba9).

Re-exports§

pub use audit::AuditEntry;
pub use audit::AuditLog;
pub use audit::AuditSink;
pub use audit::SqliteAuditLog;
pub use eval::evaluate_packs;
pub use eval::Decision;
pub use eval::DecisionResult;
pub use pack::load_pack;
pub use pack::PackError;
pub use pack::PolicyPack;
pub use pack::Rule;
pub use pack_sig::verify_pack_tarball;
pub use pack_sig::SigError;
pub use pack_sig::DEFAULT_PACK_ISSUER_PUBKEY_HEX;

Modules§

audit
Append-only audit ledger.
eval
Rule + pack evaluator.
pack
Policy-pack types + loader.
pack_sig
Signature verification for remotely-fetched policy packs.

Constants§

DAEMON_VERSION
SPEC_VERSION