A deterministic pre-execution verification protocol that evaluates transaction feasibility before on-chain submission. Probabilistic verdicts. Cryptographic anchoring. Configurable policy per caller.
Current DeFi systems execute blindly — no pre-check before capital is committed
Each layer is independently testable, upgradeable, and auditable
ALEX API · on-chain pool reads · mempool · historical replayFW_CONSENSUS · FW_SIM · FW_LIQ · FW_REGIMEEXECUTE · WARN · BLOCKdex (strict) · bot (standard) · agent (permissive)Mathematical formula — no black boxes
POST /epc/v1/evaluate — standard endpoint
"route": "STX→ALEX", "amount": 1000, "context": "swap", "caller": "dex_router"
"verdict": "non_executable", "probability": { "executable": 0.04, "fail": 0.85 }, "policy": { "decision": "BLOCK", "rule": "P_BELOW_THRESHOLD" }, "model_confidence": 0.89
Every verdict is cryptographically anchored on Stacks mainnet
// Before enabling Swap button: const res = await fetch('https://fwgate.to/epc/v1/evaluate', { method: 'POST', body: JSON.stringify({ route, amount, caller: 'dex' }) }); if (res.policy.decision === 'BLOCK') disableSwapButton();
agent.plan() → epc1.check() → if allowed: agent.execute()