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.4.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.4.0
File Size Uploaded Provenance
luma_audit-0.4.0.tar.gz 15.8 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 33.4 kB

Release files / luma_audit-0.4.0.tar.gz

Download URL luma_audit-0.4.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b35950c762fe7c425bcf1ecdac1241282a440276440e49e14d13ebf38fe7ea9e
BLAKE2b-256 checksum
How to use checksums
1757a9c2e6a1e4a4b900753c4b34b4f4acbebd51c265b30478d27a15baf7c815
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.4.0-py3-none-any.whl

Download URL luma_audit-0.4.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3146c84c6b3bf232847fa1e8184030c92ab6d11f1210026928eed4b53c80bdbe
BLAKE2b-256 checksum
How to use checksums
78e752555da6e93b92ccd853db184720cfc0baa716d62ac0f495d01d2bcd6a61
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.4.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