GCAIaaS Governance Client for secure AI infrastructure
Project description
VAIG — VALO AI Integrity Gateway
Runtime governance layer for LLM inference. Apache 2.0.
VAIG sits architecturally outside the model it monitors — it cannot be influenced, overridden, or manipulated by the system it validates. This is the same design principle that makes Safety Instrumented Systems (IEC 61511) reliable in industrial process control.
What it does
VAIG intercepts every LLM inference and returns a distrust score before the output reaches downstream systems.
from vaig import DistrustEngine
engine = DistrustEngine()
result = engine.evaluate(prompt=prompt, response=response)
# result.level: L0 TRUSTED | L1 MONITOR | L2 WARN | L3 DEGRADE | L4 HALT
# result.score: 0.0 – 1.0
# result.worm_hash: sha256:...
Architecture
| Layer | Component | Role |
|---|---|---|
| Runtime | DistrustEngine | 8-instrument ensemble, probabilistic distrust scoring |
| Audit | WORM log | SHA-256 hash-chained, append-only, legally defensible |
| Control | Halt Switch | Binary HALT state, formally verified (TLA+) |
| Policy | Distrust Matrix | L0–L4 thresholds, configurable per deployment |
Distrust levels
| Level | Label | Action |
|---|---|---|
| L0 | TRUSTED | Pass through |
| L1 | MONITOR | Log and pass |
| L2 | WARN | Flag for review |
| L3 | DEGRADE | Throttle + alert |
| L4 | HALT | Block + WORM entry |
Design principles
Externally positioned. VAIG runs outside the AI stack it governs. A model cannot influence its own validator.
Formally verified halt. The Halt Switch is verified using TLA+ model checking. When the trigger fires, the system stops — provably, regardless of model output.
Tamper-proof audit. Every inference is logged in a SHA-256 hash-chained WORM log. The log cannot be modified retroactively, making it suitable as legal evidence under EU AI Act Article 12.
Architecturally independent. VAIG is a proxy, not a plugin. It requires no changes to the model or the application layer.
ACS compatibility
VAIG implements the core principles of the Agent Control Standard (ACS):
| ACS principle | VAIG |
|---|---|
| Runtime Interception | Distrust scoring at every inference |
| Proof of Control | SHA-256 hash-chained WORM audit log |
| Mandatory Halt | Binary HALT, TLA+-verified (4.78M states, 0 counterexamples) |
| Contextual Guardrails | Policy-bound distrust matrix per deployment |
Compliance
Designed for:
- EU AI Act Annex III (high-risk AI systems) — audit trail, human oversight, logging
- PLD 2024/2853 — traceable causal chain for product liability
- Insurance-grade auditability — WORM log as Loss Prevention Record
Installation
pip install vaig
Benchmarks
| Dataset | Domain | Result |
|---|---|---|
| MedQA (N=170) | Medical | 0% error rate above L0 threshold |
| LEDGAR (N=300) | Legal | 100% of out-of-domain documents flagged |
Status
- DistrustEngine (L0–L4)
- WORM audit log
- Halt Switch (TLA+-verified)
- MedQA / LEDGAR validation
- PyPI release under
valo-systemsorg
Contact
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vaig-0.1.0.tar.gz.
File metadata
- Download URL: vaig-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c7145ab21837baf059079d964eb13a41fe3cddfa35ed66837524fe88483f18f
|
|
| MD5 |
a22398caa40052f4f95cfb91d88d9baa
|
|
| BLAKE2b-256 |
efee98147f6ed377b1ecfeca941ef1623ab095f48ad51531eccebc0e3fdabf42
|
File details
Details for the file vaig-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vaig-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65bdafd78610bf86e0a253dc39ade14c7703bd4c3699f5ea8407f8af87b17435
|
|
| MD5 |
43c5004c11105e3ef237f9c29767c09c
|
|
| BLAKE2b-256 |
7734eb22b44798f94622a51caf5c2d59fcebb190a09d355621566c811302f736
|