Skip to main content

Universal AI provenance layer — cryptographic receipts for every call, with HOLD inference halt protocol

Project description

Cascade Lattice

Universal AI provenance layer — cryptographic receipts for every call, with HOLD inference halt protocol

PyPI version License: MIT

Installation

pip install cascade-lattice

With optional dependencies:

pip install cascade-lattice[torch]  # PyTorch integration
pip install cascade-lattice[all]    # All integrations

Quick Start

from cascade import Monitor

# Create a monitor for your component
monitor = Monitor("training_loop")

# Observe events (parses logs, extracts metrics)
event = monitor.observe("Epoch 5: loss=0.0234, accuracy=0.9812")
print(event.data)  # {'loss': 0.0234, 'accuracy': 0.9812, ...}

# Get metrics summary
print(monitor.metrics.summary())

Features

  • Universal Observation — Monitor training, inference, system logs, API calls
  • Cryptographic Receipts — Every observation gets a verifiable hash chain
  • HOLD Protocol — Inference halt capability for safety-critical applications
  • Tape Storage — JSONL event streams for replay and analysis
  • Provider Patches — Drop-in monitoring for OpenAI, Anthropic, LiteLLM, Ollama

CLI Usage

cascade --help              # Show all commands
cascade stats               # Lattice statistics
cascade list -n 20          # Recent observations
cascade watch               # Live observation feed
cascade fingerprint model/  # Fingerprint a model
cascade pii scan.log        # Scan for PII

Tape Utilities

from cascade.viz import load_tape_file, find_latest_tape, list_tape_files

# Find and load tape files
latest = find_latest_tape("./logs")
events = load_tape_file(latest)

for event in events:
    print(event['event']['event_type'], event['event']['data'])

License

MIT

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

cascade_lattice-0.5.5.tar.gz (209.7 kB view details)

Uploaded Source

Built Distribution

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

cascade_lattice-0.5.5-py3-none-any.whl (246.8 kB view details)

Uploaded Python 3

File details

Details for the file cascade_lattice-0.5.5.tar.gz.

File metadata

  • Download URL: cascade_lattice-0.5.5.tar.gz
  • Upload date:
  • Size: 209.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cascade_lattice-0.5.5.tar.gz
Algorithm Hash digest
SHA256 a9aaa8006e17723a9a47de0b4b29d60688bbefe560c3a5843f1fbc16316f3dcd
MD5 64f739d0fc6d6fec3a97063252f75722
BLAKE2b-256 9625cd5edd89072d5ab9c20751ff4f62098e95039cca5e681764f1c3df2bc6fb

See more details on using hashes here.

File details

Details for the file cascade_lattice-0.5.5-py3-none-any.whl.

File metadata

File hashes

Hashes for cascade_lattice-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 be9cde8aa1d653ebbc3b1c4cea3924f10de62599a4a9466676fbe35fcba29575
MD5 c0f7c3c25973095cb92a6ddee3db7c69
BLAKE2b-256 c1dc0f4ecdc546057b3e372431ed93026e6267653979a21318994477776a2a39

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