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.3.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 | |
|---|---|---|---|
| luma_audit-0.3.0.tar.gz | 13.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| luma_audit-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.6 kB
Release files / luma_audit-0.3.0.tar.gz
| Download URL | luma_audit-0.3.0.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e21bb66a65d3e65f0efc5d06740f8978456c834698c8be835b3af36acd2c0a34
|
|
BLAKE2b-256 checksum How to use checksums |
13389dd99e194815dbe2ccc93a4d7de06b72e0477867a77e6dcc1a9f8ab9d077
|
| 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.0-py3-none-any.whl
| Download URL | luma_audit-0.3.0-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be96374ef7d28dd89292b06759919e43124616cae0a9de94b183d059236b9cf2
|
|
BLAKE2b-256 checksum How to use checksums |
263089a6b99adb6376370d5c15d3d12f1e085d4ab9f8de07a2913647a3ae46bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|