Execution Gate Simulator
// DEMO CONTEXT
WHAT THIS PROVES
"Who is allowed to execute" is enforced by policy, constraints, and proofs — fail-closed.
EXPECTED OUTPUT
An allow or deny decision with a resulting hash-linked receipt.
STANDARD TRACE
EXECUTION GATE
model
deploy
pending
Run the demo to generate an Evidence Pack
Integrate
L1: Basic Gate + Receipts
import { evaluateIntent } from "@mindburn/helm";
const decision = evaluateIntent(intent, policy);
// → { decision: "ALLOW" | "DENY", reasonCode, trace }
const receipt = await createReceipt({
intentId: intent.id,
decision: decision.decision,
reasonCode: decision.reasonCode,
policyVersion: policy.version,
parentHash: lastReceipt?.hash ?? null,
});