Skip to main content

VELLA — deterministic pre-execution governance substrate. SDK for producing signed decision records.

Project description

vella-sdk

Python SDK for deterministic pre-execution adjudication and signed proof-bundle generation.

Install

pip install vella-sdk

From source (development)

python3 -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
pip install -e ".[dev]"
pytest
ruff check .
mypy --strict vella/

Basic usage

from vella import govern

result = govern(
    intent="EXECUTE_CHANGE",
    evidence_mask=1,
)

print(result["decision"])    # ALLOWED | DENIED
print(result["reason_code"]) # reason code string

With proof bundle

from vella import govern

signing_key = open("./proof-signing.pem", "r", encoding="utf-8").read()

result = govern(
    intent="EXECUTE_CHANGE",
    evidence_mask=1,
    proof_signing_key=signing_key,
)

print(result["proof_bundle"]["kind"])  # vella_proof_bundle_v1

When to use this SDK

This SDK runs VELLA in-process inside your Python application. It is the right choice for agent tool-call hooks, CI/CD gating, edge compute, research notebooks, batch processing, and any context where microsecond-latency adjudication is needed without a separate service.

For enterprise service mesh, polyglot environments (Go, Java, .NET), Kubernetes admission control, or multi-tenant deployments, a different VELLA component (the runtime service or sidecar adapter) is the better fit. See the full deployment scope in the repository root.

API

  • govern(intent, evidence_mask, authority_scope=None, policy_version=None, proof_signing_key=None)
    • Returns a dict with decision, reason_code, latency_us, and optional proof_bundle/proof_error

Reference docs

See the root repository docs for full protocol details:

  • spec/icd.md
  • spec/schemas/proof.json
  • verify/

Project details


Download files

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

Source Distribution

vella_sdk-1.0.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

vella_sdk-1.0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file vella_sdk-1.0.1.tar.gz.

File metadata

  • Download URL: vella_sdk-1.0.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vella_sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cb16508a172d3784becd79429722673663bda527d5c1b30143636d3beb3b57b5
MD5 1b03a988b279dc27710e5335f2450394
BLAKE2b-256 55d9283ae3a3b4ee1fb653f613572582460003a2df37662f240788ce87e26b4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for vella_sdk-1.0.1.tar.gz:

Publisher: publish.yml on vellacognitive/vella-substrate

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

File details

Details for the file vella_sdk-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: vella_sdk-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vella_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0b94032dc060540c72acb2a13a3f477196fb92fd52195689d37cef5fc55a6cb
MD5 b3602d2beb3c61b14dee89d0ee5a3808
BLAKE2b-256 fa5f4ffd1c8dffee9f70da1269cf15114f5a1479bc4097f8799bbf95f46df241

See more details on using hashes here.

Provenance

The following attestation bundles were made for vella_sdk-1.0.1-py3-none-any.whl:

Publisher: publish.yml on vellacognitive/vella-substrate

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