agent-control icon indicating copy to clipboard operation
agent-control copied to clipboard

VAIG (VALO AI Integrity Gateway) — ACS-compatible runtime governance layer, Apache 2.0

Open nsolland opened this issue 6 months ago • 1 comments

Hi,

We're building VAIG — an open-source runtime governance layer for LLM inference, designed for EU AI Act Annex III compliance and insurance-grade auditability. Apache 2.0.

How VAIG maps to ACS

ACS principle VAIG
Runtime Interception Probabilistic distrust scoring at every inference
Proof of Control SHA-256 hash-chained WORM audit log, append-only
Mandatory Halt Binary HALT state, formally verified (TLA+, 4.78M
states, 0 counterexamples)
Contextual Guardrails DistrustEngine L0–L4 (TRUSTED → MONITOR → WARN →
DEGRADE → HALT)

Key design principle

VAIG sits architecturally outside the model it monitors — it cannot be influenced, overridden, or manipulated by the system it validates. This is the same principle that makes Safety Instrumented Systems (IEC 61511) reliable in industrial process control.

Status

  • Formally verified halt mechanism (TLA+ model-checked)
  • WORM audit log producing legally defensible audit trails
  • Validated on MedQA and LEDGAR benchmarks
  • Designed for deployment on sovereign European infrastructure

We'd like to be listed as a compatible implementation alongside LangChain/CrewAI. Happy to contribute documentation or a reference integration guide.

— Njål Solland, VALO Research Group https://github.com/nsolland/VAIG pip install vaig

nsolland avatar May 30 '26 09:05 nsolland

The architectural separation principle in VAIG — "sits architecturally outside the model it monitors" — is exactly right for governance. The governance layer must be outside the influence boundary of the system it validates. This is the same invariant we enforce in AGENTOWNERS: the policy engine evaluates deterministically, with no LLM in the enforcement path, so prompt injection cannot affect the gate decision.

The VAIG distrust levels (L0–L4: TRUSTED → MONITOR → WARN → DEGRADE → HALT) map cleanly to the tri-state decision model in deterministic policy engines:

  • TRUSTED / MONITOR → allow (proceed, log for audit)
  • WARN → require_approval (escalate to human, wait for signoff)
  • DEGRADE / HALT → block (hard deny, no bypass)

The priority invariant (HALT > DEGRADE > WARN > MONITOR > TRUSTED or equivalently block > require_approval > allow) is preserved in both models.

One question about the ACS compatibility: does VAIG evaluate before or after the model processes the input? The distinction matters for governance timing:

  • Pre-execution: evaluate before agent tool dispatch → gate at the boundary
  • Post-execution: evaluate after model outputs → audit + remediation

AGENTOWNERS operates at the pre-execution boundary (dispatch gate). VAIG with its WORM audit log seems to span both — distrust scoring pre-inference and the WORM audit post-inference. That dual-position architecture is defensible, but the ACS integration docs should clarify which ACS hooks each VAIG layer maps to.

The TLA+ formal verification (4.78M states, 0 counterexamples) is impressive — formal verification of the HALT mechanism is the gold standard for governance invariants. Would be great to see TLA+ specs applied to the priority resolution logic as well (block > require_approval > allow with first-match-wins rule ordering).

cschanhniem avatar Jun 18 '26 17:06 cschanhniem

This is a strong direction. Runtime governance only earns trust when it is present at the moment a real decision gets made, not as a report someone reads after the damage is done.

I'm building MartinLoop from the coding-agent side of the same problem. We have learned that a team does not just need a policy result; it needs a plain answer after each run: what did the agent try, what was allowed, what changed, did it pass verification, and can it be undone. That is how AI writing code becomes AI doing trusted software work.

Would be glad to compare notes on the smallest common contract a governance layer should expose. We are building in the open at https://github.com/Keesan12/martin-loop. Reach me at [email protected] if a direct exchange is easier.

Keesan12 avatar Jul 21 '26 18:07 Keesan12