Skip to main content

Signed provenance receipts for LLM calls with policies and drift checks

Project description

receiptkit

Signed, policy-evaluated receipts for LLM calls. Privacy-preserving (hashes only), tamper-evident (HMAC), and CI-friendly.

Quick start

from receiptkit import ReceiptManager

rm = ReceiptManager(enabled=True, receipts_dir="receipts", policies_path="policies.yaml")
# Call your LLM...
rm.write_receipt(
  model="your-model",
  params={"temperature": 0.2},
  prompt_text="...",
  response_text="...",
  latency_ms=120,
  context_key="feature-name"
)

Policies

Define guardrails in policies.yaml (PII, jailbreak, citation, topics). Receipts include pass/fail per rule.

Signing

Set RECEIPT_SECRET to add an HMAC signature to each receipt.

Project details


Download files

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

Source Distribution

modly-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

modly-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file modly-0.1.0.tar.gz.

File metadata

  • Download URL: modly-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for modly-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ccd59feaf01fd46efeb207e3fa132cec41eb76020a4a8611be2d8335651d737a
MD5 5b1ecfe05a0a08c67324c6afae350ddb
BLAKE2b-256 5d514134459cfd22d291d2e9bff836b5774744ed7dfed1c7d9a07084f3272644

See more details on using hashes here.

File details

Details for the file modly-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: modly-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for modly-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88c8be8f8f8ba903f4e3d3ef5c17f684c16cfd179f59cf185477cf9323a870c7
MD5 8fc87d905e051834567b9f29afccd405
BLAKE2b-256 5eee1e3b8e6b3adf7171c5565b4b86ffa87beb4b530633173463892d85411874

See more details on using hashes here.

Supported by

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