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.8.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.8.1
File Size Uploaded Provenance
luma_audit-0.8.1.tar.gz 21.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 46.9 kB

Release files / luma_audit-0.8.1.tar.gz

Download URL luma_audit-0.8.1.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ac720a980e2532871e03e4519f681cd84802a00c9bfb714073b2e8a98a10ae00
BLAKE2b-256 checksum
How to use checksums
668e9a178106fba75625940ebcad2bef089744ae6c3865ff932d3f421abefd43
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.8.1-py3-none-any.whl

Download URL luma_audit-0.8.1-py3-none-any.whl
Size 25.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d77c3d1a3d8a1f249e43d71bc98233a3289a45e1538c2b580f3d03a239c3a8d
BLAKE2b-256 checksum
How to use checksums
a314256257f416bb6d384e65fd4ce997af213434acc2d4333252f51b4ae7dc99
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.8.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