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.5.0

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.5.0
File Size Uploaded Provenance
luma_audit-0.5.0.tar.gz 18.0 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 38.0 kB

Release files / luma_audit-0.5.0.tar.gz

Download URL luma_audit-0.5.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
af87b9c3665f87173a455b417a40d91f8be6e139d40f2404803d04b519d10e58
BLAKE2b-256 checksum
How to use checksums
6ae8789edb7760a94045aa680e49b58f7d770f1d835dd9454802052ca228c2e6
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.5.0-py3-none-any.whl

Download URL luma_audit-0.5.0-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8bb30afd2f14a10a05629f5e6d335bd4451fb37efd9fa99f62c34d678564e7b
BLAKE2b-256 checksum
How to use checksums
8865f21c811a135314b43b449c776b84371ce58afd308ed4dad77957d98001e3
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.5.0

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