memra_engine/plan_backend.rs
1//! Compatibility re-export for build-time execution manifests owned by the ModelPlan compiler.
2
3pub use memra_gguf::execution_manifest::*;
4
5pub fn bind_rewrite_artifact(
6 receipt: RewriteParityReceipt,
7) -> Result<RewriteParityReceipt, Box<dyn std::error::Error>> {
8 let path = std::env::var_os("MEMRA_ARTIFACT_LOCK")
9 .ok_or("rewrite receipt requires MEMRA_ARTIFACT_LOCK")?;
10 Ok(receipt.bind_artifact_lock(&std::fs::read(path)?))
11}