Files
OpenShell/python/conftest.py
T
Alexander Watson d7f1f8052d feat(prover): add OpenShell Policy Prover (OPP) to Python SDK
Integrate Z3-based formal verification for sandbox policies as
openshell.prover. Detects data exfiltration paths, write bypass
attacks, L7 enforcement gaps, overpermissive methods, and privilege
escalation via binary capability chains.

Closes #699

Signed-off-by: Alexander Watson <zredlined@gmail.com>
2026-03-31 08:31:00 -07:00

21 lines
639 B
Python

# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
"""Root conftest for Python tests.
Pre-register openshell as a namespace package so subpackage tests (e.g.,
the prover) can run without the full Rust build that generates proto stubs.
"""
from __future__ import annotations
import sys
import types
from pathlib import Path
if "openshell" not in sys.modules:
_pkg = types.ModuleType("openshell")
_pkg.__path__ = [str(Path(__file__).resolve().parent / "openshell")]
_pkg.__package__ = "openshell"
sys.modules["openshell"] = _pkg