Skip to main content

NVS Runtime

The Runtime for Layer-Oriented AI Systems

License Python Version Tests

NVS Runtime is a provider-agnostic runtime substrate for layer-oriented AI systems.

It is not an MCP runtime.
It is not an LLM framework.
It is not a RAG framework.

Applications talk only to a stable Runtime API. Providers are interchangeable.

Application
    ↓
NVS Runtime
    ↓
Providers (MCP · HTTP · gRPC · Local · Kernel · HEKB · …)

Installation

# nvs-observation is not on PyPI yet, so install it from GitHub first
pip install "git+https://github.com/GemminAI/nvs-observation.git"
pip install -e ".[dev]"

Optional extras:

pip install -e ".[mcp,http]"

Requires Python ≥3.12 (supported: 3.12, 3.13, 3.14). Licensed under Apache-2.0.

Quick Start

import asyncio
from nvs_runtime import build_runtime

async def main():
    runtime = build_runtime()

    runtime.discover()
    plan = runtime.plan({
        "goal": "summarize text",
        "input_type": "text",
        "target_outputs": ["summary"],
    })
    result = await runtime.invoke({
        "plan_id": plan.plan_id,
        "payload": {"text": "hello nvs runtime"},
    })
    print(result.output)
    print(runtime.observe({"kind": "statistics"}).statistics)
    print(runtime.metrics())
    await runtime.shutdown()

asyncio.run(main())

Or run the examples:

python examples/hello_runtime.py
python examples/plan_and_invoke.py

Runtime API

Method Purpose
runtime.discover() List providers and capabilities
runtime.plan(...) Search the capability graph
runtime.invoke(...) Execute a capability or plan
runtime.observe(...) Timeline / topology / statistics
runtime.session(...) Create / pause / resume / cancel
runtime.checkpoint(...) Save / restore durable state
runtime.metrics() In-process counters and latency
runtime.shutdown() Stop providers cleanly

Architecture

NVSRuntime
├── Planner
├── Capability Graph
├── Session Manager
├── Governance
├── Metrics
├── Observability
├── Event Bus
├── Transport Layer
└── Provider Registry
        ↓
   Local · HTTP · gRPC · MCP · Kernel · HEKB

See docs/architecture.md.

Provider Architecture

Provider Kind Role
LocalProvider local Deterministic in-process capabilities
HttpProvider http HTTP-shaped invoke (offline stub by default)
GrpcProvider grpc gRPC-shaped invoke (offline stub by default)
McpProvider mcp MCP tools as capabilities (optional SDK)
KernelProvider kernel Optional kernel geometry (DEFERRED if unavailable)
HekbProvider hekb Knowledge store via ObjectStore

No provider is privileged. MCP is one adapter among many.

See docs/provider-guide.md.

What is here, and what is not

This repository is the public runtime. It holds the Runtime API, the providers, the observation capture path (capture records, the capture archive, the Gate and Formal Store clients, the observe and log commands), and the readers of what was stored: the record schema, the read-back of a stored run, the item-set entry, the comparison of a stored Risk and Control record with a replay, and the verify command.

Measuring the K path of a capture and checking it again are done by a separate package, the Developer Tools, which this repository does not contain. It plugs in through the nvs_runtime.k_measurer entry point. Without it the runtime still captures, stores and reads, but a K path is recorded as not measured (edge_unavailable), and verify reports how many positions with a measured K it could not check (k_unchecked; the exit code does not change).

The code that drives experiments (replays, variants, end-to-end runners, analysis scripts) is not part of the public nvs-runtime either; it lives with the Developer Tools. The tests here read stored measured results from tests/fixtures/measured_k, which were made by the real kernel and are only read, so they run without the kernel or the Developer Tools.

Documentation

Order Guide
1 Architecture
2 Runtime Guide
3 Provider Guide
4 Developer Guide
5 Contribution Guide

Also: Roadmap · Release Notes v1.0.0 · Support

Testing

pytest --cov=nvs_runtime --cov-report=term-missing
  • Offline and deterministic
  • No external APIs or API keys
  • Coverage target ≥ 90%. The 90% gate applies where the NVS-Kernel edge and sensos are installed; the public CI reports coverage without gating on it.

Roadmap

High-level milestones live in ROADMAP.md.

  • v1.1 — Provider SDK, registry hardening, streaming, plugin discovery
  • v1.2 — Distributed / remote runtime
  • v2.0 — Stable Runtime ABI

Contributing

See CONTRIBUTING.md, GOVERNANCE.md, and the Code of Conduct.

License

Licensed under the Apache License, Version 2.0.

Citation

See CITATION.cff.

Philosophy

We are not building an MCP runtime.
We are building the runtime that future AI systems execute on.
MCP is only one provider among many.
The runtime must remain stable even if every provider changes.

Metadata

Release files for nvs-runtime 1.0.0

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

Source distribution (sdist)

Source distribution for nvs-runtime 1.0.0
File Size Uploaded Provenance Actions
nvs_runtime-1.0.0.tar.gz 327.4 kB With provenance Details for nvs_runtime-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nvs-runtime 1.0.0
File Interpreter ABI Platform Actions
nvs_runtime-1.0.0-py3-none-any.whl Python 3 none any Details for nvs_runtime-1.0.0-py3-none-any.whl

Total release size: 517.0 kB

Release files / nvs_runtime-1.0.0.tar.gz

Download URL nvs_runtime-1.0.0.tar.gz
Size 327.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9737ebbee6e78764d25e3afb8d71449549f2028893de2f0bb6d44c32a92ccc17
BLAKE2b-256 checksum
How to use checksums
a1a0fb6d41c8586131eb388fed855923b87b2e820a3e3a6f0753dad1d685b134
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / nvs_runtime-1.0.0-py3-none-any.whl

Download URL nvs_runtime-1.0.0-py3-none-any.whl
Size 189.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58061161b1a08e35d7a0fbbd3f05b58a15dcd2b7f0ae4380ca553be07b72e136
BLAKE2b-256 checksum
How to use checksums
bbe0d9da8edcaddb43a226513a1fba667f8af55b52754f7ad1400c4ef92dbbb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for nvs-runtime 1.0.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nvs_runtime-1.0.0.tar.gz

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 Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

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