Skip to main content

visiq — VisIQ agent-governance harness for Python

Action governance, retrieval governance, and audit-trail reporting, from one Governor wrapper. Decisions are made in-process by the compiled VisIQ core that every VisIQ SDK shares — the same engine behind @visiq/harness — exposed through an ergonomic Python API. The engine ships as compiled machine code.

import visiq
d = visiq.gate_action(bundle, tool_name="wire_transfer", args={"amount": 999}, agent_id="a")
if not d["allowed"]:
    ...  # block — the tool never runs

One call for Pydantic AI and Semantic Kernel

from visiq import govern

govern(agent, agent_id="support-bot")    # a pydantic_ai.Agent (pydantic-ai >= 1.107)
govern(kernel, agent_id="support-bot")   # a Microsoft semantic_kernel.Kernel

Every tool on the agent or kernel is governed with no per-tool wiring: a deny means the tool never runs and the model reads why, a mask hands the tool only the redacted arguments, and retrieval_tools= (Pydantic AI) / retrieval_functions= (Semantic Kernel) governs a RAG tool's result before the model sees it. For other frameworks, route each tool through Governor.gate_tool.

Why it's real (not a prototype)

  • Installable: maturin builds an abi3 wheel (pip install visiq) — ONE binary for py3.9+; the engine is compiled machine code, no source in the artifact (closed / hard-to-RE, better than npm minification).
  • Correct: it reuses the proven rego engine (../rseval/engine, 1316/1316 vs L0) + the unified-runtime layer matched to the real TS UnifiedRuntime.

Structure

  • src/lib.rs — the Path-B core + PyO3 _core.evaluate(event_json, bundle_json).
  • python/visiq/__init__.py — the ergonomic API (decide / gate_action / gate_retrieval).
  • conformance.py — GATE 1: the installable SDK reproduces the event-corpus stamps (== shipped TS SDK decisions) across the full 118-vector corpus.
  • interception_smoke.py — GATE 2: a REAL LlamaIndex FunctionAgent's tool dispatch is governed by the REAL compiled core (denied tool never executes; committed negative control).

Publishing (CTO-gated)

.github/workflows/pypi-publish.yml — workflow_dispatch-only; builds closed abi3 wheels for every platform, runs both gates (required), then publishes via PyPI OIDC Trusted Publishing behind the production environment (CTO approval). No SDK is claimed "supported" on the integrations page until it is genuinely installable AND passes both gates.

Build + verify

./run.sh

Prereq: Rust toolchain + python3 -m venv .venv && .venv/bin/pip install maturin llama-index-core.

Scope + next

Covers every event→input dimension + verb + the no-coverage posture (action: verb→read/write/delete/admin→approve/deny/ask, a faithful port of the TS resolveNoCoverage; retrieval: always fail-closed). Next: grow the event corpus toward full L0 breadth; then the Ruby/Go/Java/Node bindings over the SAME core, each gated by this same corpus.

Metadata

Release files for visiq 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for visiq 0.5.2
File
visiq-0.5.2-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
visiq-0.5.2-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
visiq-0.5.2-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
visiq-0.5.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
visiq-0.5.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
visiq-0.5.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl CPython 3.9 abi3 macOS 10.12+ x86-64, macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64 Details

Total release size: 9.1 MB

Release files / visiq-0.5.2-cp39-abi3-win_amd64.whl

Download URL visiq-0.5.2-cp39-abi3-win_amd64.whl
Size 1.1 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e84bd33d9f946b7ce2922122af94b9cec1b76d6388d899eaaff190aa54c6b1fb
BLAKE2b-256 checksum
How to use checksums
939e60d71eac96bc90a3fba34eb372bc49311e6cd9cb654ca9870c7349ae6ee1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / visiq-0.5.2-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL visiq-0.5.2-cp39-abi3-musllinux_1_2_x86_64.whl
Size 1.6 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
7ff65bd0867802253f79277610c6a602c02c06c69a5aefab92bb1c405d44be8f
BLAKE2b-256 checksum
How to use checksums
764b48d758acf5b04d054098d8b1dc46846c5649c3f2cc6a67422d2411964940
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / visiq-0.5.2-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL visiq-0.5.2-cp39-abi3-musllinux_1_2_aarch64.whl
Size 1.5 MB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
b08c46b2f8fd6451743784e19de4f80fdad1bebcf4fdab8e5cb3ffe79a975c2d
BLAKE2b-256 checksum
How to use checksums
b0a2f98050baf0caf40610300fe89fa99767a52952fe3a07600434c48d9c45d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / visiq-0.5.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL visiq-0.5.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ed553714fbb4f583af09d90a24344bcdb4eedf5b5263e146141e95375741e7ef
BLAKE2b-256 checksum
How to use checksums
90f1a863042a9715b247858a7c6834bc8d7862b62c32e42bf4a951c169b1edb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / visiq-0.5.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL visiq-0.5.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.3 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
bacfcedbc18dd6e505921bd0f90c82685fc3de27defbeba0f0f96f64878566a2
BLAKE2b-256 checksum
How to use checksums
7777b1f970fc6680c85d468fdcd5b2c86bee2382d1fc2e24c973eeb54f723009
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / visiq-0.5.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL visiq-0.5.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 2.3 MB
Tags CPython 3.9 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
eee6d5cb74df6787fa17b1bc061b5a18b15bf2e8981de68782150153a84d47b2
BLAKE2b-256 checksum
How to use checksums
c18e933651d01d899f4d02e3451b3f8d53d177ce3e24d58ce99d7c4bb84599de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.4

6 release files

0.5.3

6 release files

This release

0.5.2 This release

6 release files

0.5.1

6 release files

0.3.0

6 release files

0.2.4

6 release files

0.2.3

6 release files

0.2.2

6 release files

0.2.1

6 release files

0.2.0

6 release files

0.1.0

6 release files

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