luma-audit
Deterministic governance for AI actions. No LLM in the decision path.
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.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| luma_audit-0.6.0.tar.gz | 17.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| luma_audit-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.4 kB
Release files / luma_audit-0.6.0.tar.gz
| Download URL | luma_audit-0.6.0.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f24ae2d048c49be6a762dea7774c79bb18c2a980099a33e7d5af08658e53a835
|
|
BLAKE2b-256 checksum How to use checksums |
0252aba8e9b4b3a5ab19c98adae4453697975d172f450cd55420d3600c8fa0c4
|
| 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.6.0-py3-none-any.whl
| Download URL | luma_audit-0.6.0-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f4c46bb461f7bf89b703923df93d16bc0eef5a9e49c21116f07f05909f1aeab
|
|
BLAKE2b-256 checksum How to use checksums |
b70adfe931bf9adcbd3ef0a97e604a84980abd050d1b6a213beec1c6baaf53f3
|
| 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.6.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.