Skip to main content
Scyvera

Scyvera

Set the boundary once. Get it enforced everywhere. Prove it forever.

Operational contracts for AI agents: what a system can do, what it can access, and what it must never do — enforced at runtime and provable after the fact.

License PyPI PyPI Downloads npm Container CI Blast Radius Docs


MCP and A2A standardize how agents talk to tools and to each other. Scyvera defines the layer above them: the boundary those agents run inside. The contract is a file — not a prompt — and the same bytes are enforced by the universal image or by the native Python, TypeScript, and Rust runtimes.

# any machine with Docker — no Python install, no runtime choice
docker run --rm -v "$PWD:/work:ro" ghcr.io/skull-boy/scyvera:control audit /work

# or use the host CLI
pip install scyvera && scyvera audit .

ghcr.io/skull-boy/scyvera:control is the full control plane: audit, init, validate, lint, check, and vectors. ghcr.io/skull-boy/scyvera:base adds Python, Node, and Rust toolchains and runs scyvera up. Both are multi-arch (amd64/arm64) with SBOM and provenance attestations. The native packages remain for teams that want in-process enforcement or cannot run containers.

See it run

docker run --rm -v "$PWD:/work:ro" ghcr.io/skull-boy/scyvera:control audit /work inside this repository:

WARN  /work
      Blast Radius: 92/100 (Shielded)
      raw (all findings): 82/100 (Controlled)

      MEDIUM    [AU-N8N-001] n8n workflow with external writes
                implementations/n8n/competitor-feature-parity-watcher/workflow.json:169 + 3 more
      MEDIUM    [AU-NET-002] outbound network calls in source
                implementations/langgraph/duplicate-issue-detector/backfill.py:23 + 1 more

      GOVERNED  [AU-CI-002] deploy or publish job detected
                .github/workflows/publish-scyvera-rs.yml:45 + 1 more
                registry:publish declared and approved in contract.yaml

Those publish workflows are this repository's own npm and crates.io releases. They are measured and governed, not waived: contract.yaml declares registry:publish and requires a named approver, so the findings leave the governed score, stay visible in the report with governed_by, and still count in the raw number (RFC 0004 Amendment 2). The scan is read-only; it did not change a file.

The TypeScript runtime gates the same contract with no install — the contract is the artifact, and every runtime reads the same bytes:

npx scyvera-ts gate --contract contract.yaml --mode full \
  --action github:issues:read --action-type permission
# ALLOWED  github:issues:read
npx scyvera-ts vectors --root vectors     # 33/33 at suite-version 1

Scyvera in 23 seconds: scan, draft, and a blocked action

Quickstart

The command-line steps below have container forms. The host CLI is shown for brevity; the exact docker run equivalents are in docs/container.md.

1. Scan. What can this environment actually do?

docker run --rm -v "$PWD:/work:ro" ghcr.io/skull-boy/scyvera:control audit /work

Or on the host:

scyvera audit .

2. Draft. The scan writes your first contract; you never start from a blank page.

scyvera audit . --generate contract.yaml
version: 1.1
system:
  name: research-agent
permissions: [github:issues:read]
side_effects:
  - {resource: github, type: comment}
approvals:
  - {action: github:comment, required: true}

3. Verify. The draft is schema-valid and lint-clean by construction.

scyvera validate contract.yaml && scyvera lint contract.yaml

4. Enforce. There are two depths, and they compose.

Run one process inside the container boundary — read-only root filesystem, dropped capabilities, no-new-privileges, network denied by default, and no Docker socket:

scyvera up -- python agent.py
scyvera up --path ./service -- npm start

up uses the published :base image by default. The host CLI generates the flags; without Python, the equivalent docker run form is in docs/container.md.

Or gate calls in-process. Undeclared actions fail closed:

from scyvera import ContractEnforcer

enforcer = ContractEnforcer.load("contract.yaml")

@enforcer.gate("github:issues:read", "permission")
def read_issue(number: int): ...

@enforcer.gate("github:comment", "side_effect")
def comment(number: int, body: str): ...   # requires approval until enforcer.approve(...)

The TypeScript and Rust runtimes read the same contract. See Runtimes.

5. Expose it to an agent host. The same engines over MCP, no shelling out:

scyvera serve-mcp   # five tools over stdio — see docs/mcp.md

Capabilities

You want to… Use Docs
See what a repo can actually do scyvera audit — deterministic AUxxx scan, Blast Radius bands, badge, CI floor Quickstart
Run the control plane without a runtime docker run ghcr.io/skull-boy/scyvera:control — no Python, Node, or Rust install Containers
Turn findings into a boundary --generate drafts a schema-valid v1.1 contract; --pack starts from a policy Policy Packs
Check code against its contract scyvera check — Tier 0 structural, Tier 1 static (n8n, LangGraph) Conformance
Run one governed process scyvera up — read-only rootfs, dropped caps, no Docker socket Containers
Gate calls in-process ContractEnforcer (Python), scyvera-ts (Node), scyvera-rs (Rust) Python API
Bound behavior, not just actions v1.2 guardrails — rate limits, side-effect budgets, fail-closed Python API
Score what an agent actually did scyvera eval — four axes over RFC 0003 traces Evals
Prove which contract governed what Hash-chained registry, time-travel queries, re-seal, human promotion Python API
Expose tools to an agent host scyvera serve-mcp — five MCP tools over stdio MCP server
Gate CI and adopt a runtime scyvera-gate Action, harness skill, per-target kits (n8n, LangGraph) Kits

How it works

Scan, draft, enforce, prove
  • Scan is pattern-level and review-grade; it tells you what the code can reach, not what it does.
  • Draft produces one schema-valid contract, the same format hand-authored contracts use.
  • Enforce is default-deny at two depths: undeclared calls raise in-process, and the container boundary removes capabilities the process never had. Every decision can go to an audit trail.
  • Prove is trace + registry: what ran, under which contract, and whether that contract ever changed.

Runtimes

One standard, one universal image, three native implementations. Every runtime passes the same shared corpus.

Artifact Install Status Vectors
Universal image docker run ghcr.io/skull-boy/scyvera:control multi-arch, SBOM + provenance 33/33
Python (reference) pip install scyvera 1.5.0 on PyPI 33/33
TypeScript npm install @scyvera/scyvera-ts 0.1.1 on npm, OIDC + SLSA provenance 33/33
Rust cargo install scyvera-rs 0.1.1 on crates.io — OIDC trusted publishing, human-gated, attested .crate 33/33

The images are not a fourth engine: control packages the reference control plane, and base adds the three toolchains. A single-runtime user still gets a complete product. vectors/ is the acceptance corpus: suite-version: 1, 33 vectors across contract-model, gate-decision, and trace-roundtrip. A runtime that passes a subset is not conformant.

Use it from your agent host

skills/scyvera-governance/ is an Agent Skill: it teaches a host to run the CLI and the MCP tools and to report their verdicts unchanged. It grants no authority — the engines still decide, and a misbehaving agent is caught by the same exit codes.

Copy the folder into the host's skills directory, keeping its name:

Host Project path Global path Invoke with
Claude Code .claude/skills/ ~/.claude/skills/ /scyvera-governance
Codex .agents/skills/ ~/.agents/skills/ $scyvera-governance
OpenCode .opencode/skills/ or .agents/skills/ ~/.config/opencode/skills/ @scyvera-governance
Antigravity .agents/skills/ ~/.gemini/config/skills/ /scyvera-governance
git clone --depth 1 https://github.com/Skull-boy/scyvera /tmp/scyvera

cp -R /tmp/scyvera/skills/scyvera-governance .agents/skills/   # Codex, OpenCode, Antigravity
cp -R /tmp/scyvera/skills/scyvera-governance .claude/skills/    # Claude Code

pip install scyvera   # the skill drives the CLI; it does not bundle a runtime
scyvera --version

On Windows, copy the folder by hand. The skill is self-contained (no network, no secrets, no sudo), hash-locked in skills-registry.json, and the same SKILL.md works in all four hosts. If your host prefers MCP over skills, register scyvera serve-mcp instead — the same five tools are there (docs/mcp.md).

Proof, not promises

  • 33/33 vectors at suite-version 1 — Python, TypeScript, and Rust, in their own CI.
  • 92/100 Shielded is this repository's own governed audit score, with raw 82/100 Controlled always reported beside it. Both numbers and the exact scored/governed surface are pinned by a covenant test; they move only through an RFC amendment.
  • Published images: :control and :base are on GHCR for amd64 and arm64, with SBOM and provenance attestations. The publish command builds multi-arch and signs the image digest.
  • The container path is tested: CI builds both images, runs scyvera up in place, and runs the host-to-container scyvera up flow against :base.
  • Performance on generated 1,000–50,000-file corpora: method, hardware class, cache state, and every requested row, all measured.
  • Signed installs: scyvera self-check verifies 39 shipped files, and releases carry Sigstore build provenance plus a CycloneDX 1.5 SBOM.
  • Same suite everywhere: Linux and Windows on Python 3.10–3.14 gate every pull request (10 cells, fail-fast: false); macOS runs all five versions in a nightly job. macOS is not on the merge gate because its hosted runners were failing ~45% of the time (measured 2026-11-24) — a gate that random is not a gate. The two sets together are still the full 15-cell matrix.

Honest limits

  1. Gate bypass at call sites (T4) — enforcement happens at @enforcer.gate(...). Use the gateways so credentials and raw clients stay private, and assert_gated() in integration tests.
  2. Third-party internals (T6) — Scyvera verifies declared intent, not a library's background calls. There is no bytecode or packet inspection.
  3. Pre-load tampering (T5) — integrity checks are post-load. The registry, identity pinning, and re-seal cover history; they cannot prove a file was clean before it was read.
  4. Install integrity is not a sandbox (T11) — self-check verifies the installed package, not your interpreter, your site-packages, or code installed beside it.
  5. The container is a boundary, not a dependency builder — scyvera up runs the command against the mounted workspace; v0 does not install project dependencies or build a derived app image. It validates the contract but does not yet interpret permissions, approvals, or budgets. A process outside the image is outside the boundary; never mount the Docker socket into the agent.
  6. Governed is not waived (governed findings) — a finding your contract declares and approves leaves the governed score but stays in the report with governed_by, and raw_score always shows what it would be. A provisional contract, an undeclared permission, required: false, or a nameless approver governs nothing.

Full threat models: lifecycle · enforcer · distribution.

Documentation

Start Go deeper
Quickstart — audit → draft → enforce Containers — images, up, publishing
Install & verify — platforms, self-check, attestations Python API — enforcer, gateways, registry, re-seal
Contract reference — field-by-field Conformance — tiers and T101–T103
MCP server — host config, five tools Evals — case format and scoring axes

Background: vision · design principles · architecture · RFCs · SPEC.

Contributing

Contributions are welcome: audit rules with fixtures, Policy Packs, framework reference implementations, runtime work, and documentation. Start with CONTRIBUTING.md and the good first issue label.

If Scyvera is guarding something real in your stack, add yourself to ADOPTERS.md — the honest version of a logo wall.

Security issues: SECURITY.md.

License

MIT — see LICENSE. Maintained by Shinjan Das and open-source contributors; see CONTRIBUTORS.md.

Metadata

Release files for scyvera 1.5.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 scyvera 1.5.0
File Size Uploaded Provenance Actions
scyvera-1.5.0.tar.gz 279.8 kB With provenance Details for scyvera-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scyvera 1.5.0
File Interpreter ABI Platform Actions
scyvera-1.5.0-py3-none-any.whl Python 3 none any Details for scyvera-1.5.0-py3-none-any.whl

Total release size: 457.9 kB

Release files / scyvera-1.5.0.tar.gz

Download URL scyvera-1.5.0.tar.gz
Size 279.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8dd73dc7a330fa49e8851ad49199f3faeface1f32aa1058b2b5850ec3571fc1b
BLAKE2b-256 checksum
How to use checksums
ce8e866211342c40b60fcaf1855e84fc80a4bd11515823e7d9e96911756d9f2d
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 30, 2026.

Transparency log

Release files / scyvera-1.5.0-py3-none-any.whl

Download URL scyvera-1.5.0-py3-none-any.whl
Size 178.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1048c553d6aa35ed22de9d4eac84869734a1edd3d3fb9677ac01f15430e3678b
BLAKE2b-256 checksum
How to use checksums
a832a78459b2fa3d472c8f246f33df664c796c02cab9772040d21af038313782
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 30, 2026.

Transparency log

Security for scyvera 1.5.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 scyvera-1.5.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 30, 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.

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