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.2.0-cp39-abi3-win_amd64.whl (928.1 kB view details)

Uploaded CPython 3.9+Windows x86-64

visiq-0.2.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.2.0-cp39-abi3-musllinux_1_2_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

visiq-0.2.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.2.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.2.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.2.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: visiq-0.2.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 928.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.2.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 97a27112fe36b269e8da5493fa60c0318bc0fceef0e713a91e47182ac02d92aa
MD5 43a31c778b7513af6731fa445a3aaaac
BLAKE2b-256 d9b8798b3394d5bb1e75583629dd3d0a002b6cbc36d1c342691f50a024489ece

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.2.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.2.0-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: visiq-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for visiq-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fc38eb4ca72645e0335c35b6ebb12594d753ed901b0b2608b7172b3cafc905f6
MD5 d24d1ad67f2b45aa58952c43dcc1e011
BLAKE2b-256 027ec90b1555a045a7fe7eaef04a881f3c47830f95a5663facc0f79eb490b3dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.2.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.2.0-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for visiq-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d10a0e2daeddc2875cb2e23982db3df1d985d7c1dda1bc4354e45732bebd67ac
MD5 1ac7812764c28195184102a871dbfba1
BLAKE2b-256 2b2e49464000e1c3dcebe68d255feac88de5b289d6704baa933cc90c845e9f54

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.2.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.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for visiq-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7791f3136258e34a80ad704b7a15212e8bed74dc23606353c4d3d49bf82759de
MD5 d863ddb2232460004a0e9f974b255405
BLAKE2b-256 dde348a4ad3041c2f6a3d7ac36b19033a7d6b1a2864b4d4929b7c6f60a58a7a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.2.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.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for visiq-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cf9a42b828ee1d3a8fc621aa1fcc3e3a75f5e45ce13e7a1925264d49d7b6b16f
MD5 d3403ceb34b333ff4a285c047c525655
BLAKE2b-256 3f1d037d3b46ac03234173547b37fecfc4331dbd8637530795f254b62b65e9b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.2.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.2.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.2.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 1d77527d28082b9c8d6ccce009f0d0aae0794f09381b4e5a4943409cfc2be286
MD5 b01139291614ad91765d34dd1805dc69
BLAKE2b-256 e887e431d7398778f0cd4e92405dbe5dba796c709f0ecd05ea92906b067a5b5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for visiq-0.2.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