ceco proof gate
ceco proof gate
Runtime policy enforcement extracted from ceco-offline
(development @ 484bb16, 2026-07-04).
This package is the proof gate only: an MCP server that evaluates agent actions against a Policy State Machine, emits a tamper-evident audit trail, and optionally dispatches approved transitions to internal / federated handlers.
It does not include the ceco compile / synthesis pipeline (ceco derive,
SMT/Lean generation, ceco-mcp analysis server, or supplier-onboarding demo).
What is included
Area | Modules |
Gate MCP + SSE daemon |
|
Transition evaluation |
|
Federation / handlers |
|
Context & anchors |
|
Audit / attestation |
|
Docs
Proof Gate API — MCP tool reference
MCP Architecture — tiered gate / internal / domain
Gate Runtime Performance — SSE daemon, machine cache, transition index
Full specification — Part II is the runtime gate; Parts I/III describe the offline compile pipeline (not shipped here)
Install
cd /home/martyn/repos/ceco
poetry install
# or: pip install -e ".[dev]"Quick start (payment example)
export CECO_GATE_CONFIG=examples/gate_config.payment.yaml
export CECO_GATE_INTERNAL_MODE=inprocess
# stdio MCP (Cursor / Claude Desktop spawn this)
poetry run ceco-gate-mcp
# or persistent SSE daemon for multi-turn agents
poetry run ceco-gate-daemon
curl http://127.0.0.1:14780/healthPoint an MCP client at stdio ceco-gate-mcp, or at
http://127.0.0.1:14780/sse for the daemon.
Entry points
Script | Module |
|
|
|
|
|
|
Tests
poetry run pytest tests/ -qProvenance
Source: /home/martyn/repos/ceco-offline branch development commit 484bb16.
Feature branches feat/gate-daemon, feat/machine-cache, and feat/transition-index
are already merged into that tip. Local uncommitted edits in ceco-offline that
removed the machine cache / transition index were not carried over.