Skip to main content

vlabs-sdk

Verifiable Labs builds clean feedback and promotion gates for increasingly general AI agents.

SDK contracts for the Verifiable Labs platform: run configuration, the model-provider interface, and the typed schemas that evaluation contracts, score sets, gate outcomes, and assurance cards are built from.

  • pip package: vlabs-sdk
  • import package: vlabs_sdk
  • CLI: vlabs (clean promotion gate)

Install

pip install vlabs-sdk        # once published; until then:
pip install "vlabs-sdk @ git+https://github.com/verifiablelabs/vlabs-sdk@main"
from vlabs_sdk.providers.dummy_provider import DummyProvider
from vlabs_sdk.providers.base import ModelRequest
from vlabs_sdk.schemas import AssuranceCardV2, ScoreSet, TransferMetrics
from vlabs_sdk.run_config import default_config
from vlabs_sdk.formal_spec.clean_promotion_gate import accept_clean_update

Migrating from the legacy verifiable-labs-envs package? See MIGRATION.md.

clean-gate CLI

The vlabs CLI ships with the vlabs-sdk distribution — no extra install:

pip install vlabs-sdk
vlabs --help
vlabs clean-gate --old baseline.json --new candidate.json
# exit 0 = ACCEPT, exit 1 = REJECT (reasons printed)

The CLI is implemented in the bundled vlabs_prm_eval package (depends only on vlabs_sdk + typer); both import packages are included in the wheel.

What ships here

Surface Path
Run config — modes evaluate_only / gate_only / improve_and_gate / substrate, privacy-preserving defaults src/vlabs_sdk/run_config.py
Provider interface + dummy provider (validate_config / estimate_cost / run / dry_run) src/vlabs_sdk/providers/
Schemas — EvaluationContract, ScoreSet, TransferMetrics, GateOutcome, AssuranceCard v2, split policy src/vlabs_sdk/schemas/
Formal-spec math mirror (clean score, CleanVGS, generalization gap, 8-condition promotion gate) src/vlabs_sdk/formal_spec/
vlabs clean-gate CLI (ACCEPT exit 0 / REJECT exit 1) tools/vlabs-prm-eval/

This repository is a mirror of the canonical monorepo with the import namespace remapped (see PROVENANCE.md); it becomes canonical at split-flip time.

Formal scope

Selected mathematical properties behind the contamination-resistant promotion gate are machine-verified in Lean 4. The implementation is property-tested against the formal specification.

License

Apache-2.0.

Release files for vlabs-sdk 0.0.2

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

Source distribution (sdist)

Source distribution for vlabs-sdk 0.0.2
File Size Uploaded
vlabs_sdk-0.0.2.tar.gz 43.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vlabs-sdk 0.0.2
File Interpreter ABI Platform
vlabs_sdk-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 92.9 kB

Release files / vlabs_sdk-0.0.2.tar.gz

Download URL vlabs_sdk-0.0.2.tar.gz
Size 43.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f4e839591021b189b0442a1830aeab0c821d61f5f5bdd9e222e21868ae73bb2c
BLAKE2b-256 checksum
How to use checksums
758878d56030a75a949674658f878ab86d5d1a95bb4f685f0d09ede0b5170271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / vlabs_sdk-0.0.2-py3-none-any.whl

Download URL vlabs_sdk-0.0.2-py3-none-any.whl
Size 49.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6d5836ac5319c24f1141db07d6cf5b8ad93fb5c4181e088149da5ac7241a516
BLAKE2b-256 checksum
How to use checksums
687fa0207f434b5474b657b5c91c7f9a7c691ea2c8ebce89d23edb8e60431491
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 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