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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cwn_llama_index_trust_gate-0.2.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cwn_llama_index_trust_gate-0.2.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file cwn_llama_index_trust_gate-0.2.0.tar.gz.

File metadata

File hashes

Hashes for cwn_llama_index_trust_gate-0.2.0.tar.gz
Algorithm Hash digest
SHA256 585c3797bba027c68c13d859ad36865ad97e59680203478593d85f90e83baacc
MD5 652d9212616754eb9e3f37a015fd96b0
BLAKE2b-256 46fb20d1445ae766fea020da39c7204d20c7f1bca30f34c57b567a92f9ed651e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwn_llama_index_trust_gate-0.2.0.tar.gz:

Publisher: release.yml on CWNApps/llama-index-trust-gate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cwn_llama_index_trust_gate-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cwn_llama_index_trust_gate-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 187a29596e1d83f5ba6ea870624cb108c65ec9209ab4bfd0d6abcb7642ef7dd5
MD5 52165ac53b833b7351b038e7f1687b68
BLAKE2b-256 55a4c3e7d2b20ef79bc339b84664d85c3b886ebf64740ca3dd21470e086eef09

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwn_llama_index_trust_gate-0.2.0-py3-none-any.whl:

Publisher: release.yml on CWNApps/llama-index-trust-gate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page