Skip to main content

VisIQ agent-governance SDK — local, in-process policy decisions from ONE compiled core (Path B).

Project description

visiq — VisIQ agent-governance Python SDK (Path B)

The first REAL, installable, CLOSED multi-language SDK. ONE compiled Rust core (the Path-B engine) makes the SAME governance decisions as the shipped TypeScript SDK (@visiq/harness), exposed through an ergonomic Python API.

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

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.pyGATE 1: the installable SDK reproduces the event-corpus stamps (== shipped TS SDK decisions) across the full 93-vector corpus.
  • interception_smoke.pyGATE 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.ymlworkflow_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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

visiq-0.1.0-cp39-abi3-win_amd64.whl (913.1 kB view details)

Uploaded CPython 3.9+Windows x86-64

visiq-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

visiq-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

visiq-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

visiq-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

visiq-0.1.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.0 MB view details)

Uploaded CPython 3.9+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file visiq-0.1.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: visiq-0.1.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 913.1 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for visiq-0.1.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 60f8ef73158e0cede6cb8576b85c51835fee80b381cbd9e1d58e09ef693dbbd0
MD5 05a536caaf13945175e83f2c1ee2ccf9
BLAKE2b-256 36a44f48333eea8fe0e46edc0dfbaa60108c62ad892ff1d9cad9d4135283edf2

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.1.0-cp39-abi3-win_amd64.whl:

Publisher: pypi-publish.yml on VISIQ-LABS/xy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visiq-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for visiq-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 849736a7ca5de9ffc4cb4c6818485298f188eef51aeaaed21487b3362cdd5c35
MD5 c5b37b338aba12f2de30ec56a289340b
BLAKE2b-256 6ab840ca7aa4b8c3010d89ed9af2205e21db53ed207ac9c85bf682cb2baafb5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl:

Publisher: pypi-publish.yml on VISIQ-LABS/xy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visiq-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for visiq-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 772c8cb27e3e2839e3e31566cfcafd5de4106eeea0e62bf4f88ce2c05ce33a6e
MD5 3bc31f63290e214dfa803dee2cd113f9
BLAKE2b-256 b7437f34cedc41dc13f05ea1ed95fa3ad09e81185e2510660a97def0f47dc837

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl:

Publisher: pypi-publish.yml on VISIQ-LABS/xy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visiq-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for visiq-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0993c08e231675b7e4c7aa238ef43aaf4724721a8953d27814d7fa4de542fe11
MD5 aa24bf2d0f82eac634b4af25c222f140
BLAKE2b-256 882f8562c9209ccd9fb2511e3cd520bfbeabb9ea04943929336ae47f594d9fa4

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi-publish.yml on VISIQ-LABS/xy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visiq-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for visiq-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 624f07c68b48fe0d8c6296ccca3113a2249f107a4d7ee4312583ce56178af0cf
MD5 3c0afcb71900d32ce638fc00d97df424
BLAKE2b-256 580c50c07d0b2501fefcf3aa07363c961990f7c436ecf3a7c3aaad7a03d44265

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: pypi-publish.yml on VISIQ-LABS/xy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visiq-0.1.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for visiq-0.1.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 adc7b29f3a373fbe42c2dddf6a44077be6a3ac77264aa5fbb061f66087cfe174
MD5 4cf077a99b6cd648df6ee755ac0d1d4b
BLAKE2b-256 511523b86ede762b27a6b3bcdb4dbdc15313ac7a2e382b8e04c2811093c72cea

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.1.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: pypi-publish.yml on VISIQ-LABS/xy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page