Skip to main content

llama-index-trust-gate

LlamaIndex tools for Trust Gate post-quantum, tamper-evident receipts on consequential agent actions.

Trust Gate receipts are signed Ed25519 + ML-DSA-65 (FIPS 204) by the hosted MCP server (no local signing key). Each receipt is verifiable offline from the certificate alone. The hosted server defaults to PQ-required verify mode; set TRUST_GATE_REQUIRE_PQ=false to allow Ed25519-only receipts.

Install

pip install cwn-llama-index-trust-gate

Usage

from llama_index.core.agent import ReActAgent
from llama_index_trust_gate import mint_action_receipt_tool, verify_receipt_tool

agent = ReActAgent.from_tools(
    [mint_action_receipt_tool(), verify_receipt_tool()],
    llm=...,
)

Tools

Factory Name Purpose
mint_action_receipt_tool() trust_gate_mint_action_receipt Mint a post-quantum receipt for any consequential agent action.
verify_receipt_tool() trust_gate_verify_receipt Verify a Trust Gate receipt from the certificate alone (offline).
gate_decision_tool() trust_gate_gate_decision Two-phase gate. PREVIEW assesses risk without acting; COMMIT verifies the inputs still match and mints a receipt carrying an execution permit.
check_egress_tool() trust_gate_check_egress Classify data PUBLIC / INTERNAL / CONFIDENTIAL / RESTRICTED before it leaves. Blocks RESTRICTED.
run_exit_drill_tool() trust_gate_run_exit_drill Vendor exit-readiness drill. Informational, no side effects.

Configuration

export TRUST_GATE_URL="https://trust-gate-mcp.onrender.com"  # default; override for self-hosted

Telemetry

One fire-and-forget GET /x?via=llamaindex&kind=api per tool call. No PII, no cookies, never blocks the tool.

Related

License

Apache-2.0.

Release files for cwn-llama-index-trust-gate 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cwn-llama-index-trust-gate 0.2.0
File Size Uploaded
cwn_llama_index_trust_gate-0.2.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cwn-llama-index-trust-gate 0.2.0
File Interpreter ABI Platform
cwn_llama_index_trust_gate-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / cwn_llama_index_trust_gate-0.2.0.tar.gz

Download URL cwn_llama_index_trust_gate-0.2.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
585c3797bba027c68c13d859ad36865ad97e59680203478593d85f90e83baacc
BLAKE2b-256 checksum
How to use checksums
46fb20d1445ae766fea020da39c7204d20c7f1bca30f34c57b567a92f9ed651e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log

Release files / cwn_llama_index_trust_gate-0.2.0-py3-none-any.whl

Download URL cwn_llama_index_trust_gate-0.2.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
187a29596e1d83f5ba6ea870624cb108c65ec9209ab4bfd0d6abcb7642ef7dd5
BLAKE2b-256 checksum
How to use checksums
55a4c3e7d2b20ef79bc339b84664d85c3b886ebf64740ca3dd21470e086eef09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page