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

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.3.1
File Size Uploaded Provenance
luma_audit-0.3.1.tar.gz 13.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 27.6 kB

Release files / luma_audit-0.3.1.tar.gz

Download URL luma_audit-0.3.1.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
73ca9faa3ee0134464e1a5079b7f20da30a39845a32b66dd66094242a0f16e0e
BLAKE2b-256 checksum
How to use checksums
1b3be8c570c5499f26a33dba7c0ab7b7c73baa90fb925bde6304904a4920d293
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.3.1-py3-none-any.whl

Download URL luma_audit-0.3.1-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46502e8d4656b53a085465215e2c87b21758e4e31d7cd10de283cb0203655c88
BLAKE2b-256 checksum
How to use checksums
3af80c979d876147c5d015099fdeb9f89c763412967ba35cdd7ea577200dcecb
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.3.1

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