Skip to main content

luma-audit

Deterministic governance for AI actions. No LLM in the decision path.

Python 3.10+ License: MIT Status: Alpha


What it does

luma-audit is a deterministic execution-control layer that approves or rejects AI actions before they happen.

  • Deterministic - same input, same output. Always.
  • Outside the model - a layer the LLM cannot bypass.
  • Auditable - every decision is hash-chained.

It does not filter text, detect toxicity, or replace authentication. It audits actions.


Install

pip install luma-audit

30-second example

from luma_audit import LUMA

auditor = LUMA()
auditor.avaliar('ler_ficheiro')      # -> aprovada
auditor.avaliar('apagar_ficheiro')   # -> rejeitada
auditor.avaliar('acao_desconhecida') # -> rejeitada (unknown = high risk)

What it does NOT do

  • Does not filter text (that is a prompt guardrail - different problem)
  • Does not detect toxicity
  • Does not replace authentication
  • Does not use any LLM in the decision path

Architecture

src/luma_audit/
    auditor.py       # LUMA class + Veredito enum
    trajetoria.py    # Sessao, AuditorTrajetoria, Decisao, hash chain
    canal.py         # CanalUnico, MensagemFunil
    funil.py         # FunilUnico, FILA_DIR
    cli.py           # luma CLI entrypoint

Tests

22 red-team tests: hash chain integrity + tampering, quarantine escalation, flood detection, atomic writes, corrupted proposal rejection, executor revalidation.


Philosophy

Guardrails based on prompts compete against the model's weights - and lose. The only layer that cannot be bypassed is the one running outside the model, at the point of execution.

luma-audit is that layer.


License

MIT. Community Edition. Enterprise Edition available commercially.

Metadata

Release files for luma-audit 0.8.2

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

Source distribution (sdist)

Source distribution for luma-audit 0.8.2
File Size Uploaded Provenance
luma_audit-0.8.2.tar.gz 22.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for luma-audit 0.8.2
File Interpreter ABI Platform
luma_audit-0.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 47.6 kB

Release files / luma_audit-0.8.2.tar.gz

Download URL luma_audit-0.8.2.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ca2e7aa8df33bd5e4e7ec49a26870aa04db54441fc0f0ce4dbaec3dbf8041525
BLAKE2b-256 checksum
How to use checksums
899d6da62704b192c3c08abd7e9b0b8c744ba38c5d48de3580864b57efc55e30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / luma_audit-0.8.2-py3-none-any.whl

Download URL luma_audit-0.8.2-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
291126b494f235dc9e0b47bb4e97bd7f1a6864c31aba2df8b5d8d88a844bffae
BLAKE2b-256 checksum
How to use checksums
106d05cfc3998b26cef60ba15885d2aab6b47335ffcf3a671b43e44cd14f3a05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for luma-audit 0.8.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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