Skip to main content

Tamper-evident evidence bundles for AI outputs

Project description

AELITIUM

License tests python

pip install aelitium

Provable AI outputs.

AELITIUM turns AI outputs into tamper-evident evidence bundles that can be verified anywhere, on any machine.

It allows engineers to prove what a model actually said — even long after the original system is gone.


Why this exists

AI outputs are usually stored in logs or databases.

Those records can be edited, overwritten, selectively deleted, or disputed later.

When AI outputs influence decisions — finance, healthcare, support automation, legal workflows — teams eventually face the question:

"Can you prove what the model actually said?"

AELITIUM provides a deterministic, cryptographic evidence bundle that allows anyone to verify the output independently.


30-second demo

pip install aelitium

aelitium pack --input examples/ai_output_min.json --out ./bundle
# STATUS=OK rc=0
# AI_HASH_SHA256=8b647717...

aelitium verify --out ./bundle
# STATUS=VALID rc=0

The hash is deterministic — same input produces the same hash on any machine.

# Tamper with the bundle, then verify:
aelitium verify --out ./bundle
# STATUS=INVALID rc=2 reason=HASH_MISMATCH

All commands accept --json for structured output.


How it works

AI output (JSON)
      ↓
aelitium pack      ← deterministic SHA-256 hash + manifest
      ↓
evidence bundle    ← canonical JSON + ai_manifest.json
      ↓
aelitium verify   ← STATUS=VALID / STATUS=INVALID

The bundle contains a canonicalized payload, a deterministic SHA-256 hash, and a manifest with schema, timestamp, and canonicalization method. Anyone with the bundle can verify its integrity — no network required.


Reproducibility

AELITIUM is designed to be deterministic. The same AI output always produces the same hash, on any machine.

Run the full reproducibility check from a clean environment:

bash scripts/verify_repro.sh

This script creates a fresh virtual environment, installs the project, runs the test suite, packs the example twice, and confirms the resulting hashes match.

=== RESULT: PASS ===
AI_HASH_SHA256=8b647717...

All tests also pass on two independent machines (A + B) with identical hashes.


CLI reference

aelitium

Command Description
validate --input <file> Validate against ai_output_v1 schema
canonicalize --input <file> Print deterministic hash
pack --input <file> --out <dir> Generate canonical JSON + manifest
verify --out <dir> Verify integrity of a pack output dir
verify-receipt --receipt <file> --pubkey <file> Verify Ed25519 authority receipt offline

Exit codes: 0 = success, 2 = failure. Designed for CI/CD pipelines.


Documentation


Design principles

  • Deterministic — same input always produces the same hash, on any machine
  • Offline-first — verification never requires network access
  • Fail-closed — any verification error returns rc=2; no silent failures
  • Auditable — every pack includes a manifest with schema, timestamp, and hash
  • Pipeline-friendly — all output parseable (STATUS=, AI_HASH_SHA256=, --json)

Trust boundary

AELITIUM provides tamper-evidence, not truth guarantees.

What AELITIUM proves:

  • the bundle contents have not changed since packing
  • the canonicalized payload matches the recorded hash

What AELITIUM does not prove:

  • that the model output was correct or safe
  • that the system that packed the bundle was trustworthy
  • that the model actually produced the output

Stronger provenance — signing authorities, hardware-backed keys — is the direction of P3. See TRUST_BOUNDARY.md for the full analysis.


Compliance alignment

AELITIUM provides tamper-evident evidence bundles that support the following regulatory and audit requirements:

Framework Requirement How AELITIUM helps
EU AI Act — Article 12 Logging and traceability of high-risk AI system outputs Evidence bundles provide immutable, verifiable records of AI outputs with deterministic hashes
SOC 2 — CC7 System monitoring and integrity controls Independent offline verification confirms records have not been altered after creation
ISO 42001 AI management system auditability Canonical bundles with schema versioning support third-party audits without infrastructure access
NIST AI RMF — MG 2.2 Traceability of AI decisions and outputs Each bundle contains a complete, reproducible record: payload, hash, timestamp, and optional signature

AELITIUM does not replace logging infrastructure. It adds cryptographic integrity on top of any existing pipeline — offline, without a server, without a blockchain.


License

Apache-2.0. See LICENSE.

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

aelitium-0.2.1.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

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

aelitium-0.2.1-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file aelitium-0.2.1.tar.gz.

File metadata

  • Download URL: aelitium-0.2.1.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for aelitium-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2f4751898345356a3e930b3c184c5aa59bca788c7ee97e7682153d7cca01aacd
MD5 aee9b759a7dd8cddfab7caedec47531d
BLAKE2b-256 735bddb3a8c6197bbb81542946dba47220a50f0c7a3583b7d12e0064a4f9ec28

See more details on using hashes here.

File details

Details for the file aelitium-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: aelitium-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for aelitium-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3396c46dde2cfbb260fdc3909e75a9df4727b83877bbefbcaf0a03bd9f6d2df5
MD5 2f9d464e38b6b1e13634ab62842f2d07
BLAKE2b-256 b6fc74c03c15b75bd0bddd4d2b6a90d20a57d19270bfd9d639a0c26292ad5b04

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