Skip to content
Proofgate Runtime

Proofgate Runtime

github.com • November 29, 2026

Where this fits. One stack, one order. gama-mandate is the product: it signs a business commitment, executes it once and proves it offline. Everything else is a layer you add only when you need what it does: layer install what it adds gamai-tripwire pip install gamai-tripwire inbound detection from access logs: canaries, bursts, credential reuse; a deny needs identity evidence gamai-guard pip install gamai-guard prompt-injection filter: lexical + multilingual embeddings, block / advise bands sigil-profile pip install sigil-profile proof-carrying execution profile over MCP/A2A: gate, verify, anchor proofgate-runtime pip install proofgate-runtime small claim-verification and signed-receipt core gama-l pip install gama-l a small language with types, effects and proofs gamai-trust pip install gamai-trust trust marketplace and managed policy evaluation gamai-plugins pip install gamai-plugins MCP plugins: policy, sandbox, team None of these is a compliance certificate, a tamper-proof guarantee or an independent audit; each README says what it does not claim.

Where this fits. One stack, one order. gama-mandate is the product: it signs a business commitment, executes it once and proves it offline. Everything else is a layer you add only when you need what it does:

None of these is a compliance certificate, a tamper-proof guarantee or an independent audit; each README says what it does not claim.

Evidence-first claim verification, signed receipts, and a lite injection guard for AI agents. v0.3.0 · Python 3.10+ · stdlib (+ ssh-keygen for Ed25519 receipts) · Apache-2.0

Agent says "done". ProofGate asks: where is the evidence?

Start here if you are new: gama-mandate — sign a business commitment, execute it once, prove it offline.

Start here if you are new: gama-mandate — sign a business commitment, execute it once, prove it offline.

This package is the small, installable core of the gamAI trust layer:

Claims — confirmed / refuted / unverified per claim, fail-closed, SHA-256-bound report.

Receipts — bind an intent to a result with SHA-256 digests; optional HMAC-SHA256 signature.

Guard (lite) — fast lexical prompt-injection pre-filter. Full embedding cascade: gamai-guard .

MCP server — stdio JSON-RPC tools for OpenCode/Claude/MCP clients.

CLI — verify claims, make/verify receipts, check injection.

From source (development):

No third-party runtime dependencies.

Result: confirmed / confirmed / refuted , with a report_hash that changes if any evidence is edited.

Make and verify a receipt

Tamper with result.json or the receipt and verification fails closed.

Add to an MCP client (OpenCode, Claude Desktop, etc.):

Tools: verify_claims , make_receipt , verify_receipt , check_injection , runtime_info .

What v0.1 does not do (yet)

No anchor/lease service. That is sigil (grants, receipts, anchor, MCP middleware). ProofGate v0.1 is the local verification core.

No embedding-based guard. This is the lexical layer; the full multilingual cascade is gamai-guard .

No independent security audit. Treat v0.1 as a reference implementation, not a certified product.

MCP receipts are signed only when PROOFGATE_HMAC_KEY is set and are rejected as unsigned otherwise. Set it in the server environment; never put the key in a client or in git.

PyPI 0.3.0 is available. Install with pip install proofgate-runtime .

Fail closed — missing or malformed evidence is unverified , never confirmed .

Refuted wins — refuted > unverified > confirmed when aggregating.

Tamper-evident — recompute canonical hashes; mismatch invalidates.

No secrets in receipts — hash the result; do not put credentials in intent/result.

Small surface — stdlib only; can run offline.

sigil — proof-carrying execution: grants, receipts, anchor, conformance.

gamai-guard — multilingual prompt-injection cascade.

crossnode-bench — claim-vs-truth benchmark. Shipped v1.4.0: honest fleet 25,600/25,600 pass, 0 false successes ; controlled liar variant 28,800 records with 400 false successes, all on the lying node (detected). The separate 93.75% / 6.25% Slurm run is reported in evidence-gate-runtime and its dataset is not public yet.

evidence-gate-runtime — fuller runtime with replay.

floor-copilot — production case study: invoice intake with 17% VAT gate.

Ed25519 receipts (0.3.0)

HMAC proves integrity to whoever shares the secret; a bank cannot verify another company's receipt with it. Receipts can now be signed with an SSH key and verified against an allowed_signers file — the same primitive gama-mandate and SIGIL use:

What is shared with the rest of the stack, and what still is not, is in docs/INTEROP.md .

verify_receipt() now requires a valid signature by default. For legacy unsigned receipts, call verify_receipt(..., require_signature=False) or the CLI with --allow-unsigned . Create signed receipts with proofgate make-receipt ... --key-file ; the MCP server signs when PROOFGATE_HMAC_KEY is set.

Claim verification: tested (BHS/EU/US money formats, predicates, tamper detection).

Receipts: SHA-256 + optional HMAC; no asymmetric signatures yet.

Guard: lexical only; false negatives are expected. Measure before production use.

Not independently audited.

Apache-2.0. claims.py is extracted from gamai-io/gamai-trust (Apache-2.0), with the BHS/EU/US number parser fix.

Extracted Entities