An open-source framework that enforces provable behavioral guarantees through formal verification, runtime security mechanisms, and comprehensive audit trails.
provability-fabric/
├── README.md # Project documentation
├── LICENSE # Apache 2.0 license
├── VERSION # Current version
├── Makefile # Build system
├── lakefile.lean # Lean build configuration
├── lean-toolchain # Lean version specification
├── .gitignore # Version control exclusions
├── config/ # Configuration files
│ ├── schemas/ # JSON schemas (e.g., aispec-schema.json)
│ └── specifications/ # Specification documents
├── scripts/ # Utility scripts
│ └── setup/ # Infrastructure setup scripts
├── tests/ # Test suites
│ ├── integration/ # Integration tests
│ ├── unit/ # Unit tests
│ ├── privacy/ # Privacy tests
│ ├── replay/ # Replay tests
│ └── debugging/ # Debugging tests
├── core/ # Core framework
├── runtime/ # Runtime components
├── bundles/ # Agent bundles
├── tools/ # Development tools
├── docs/ # Documentation
└── [other directories...]
Adopt the ecosystem standards and end-to-end evidence loop:
- CERT-V1 (schema + verifiers): https://github.com/verifiable-ai-ci/CERT-V1
- TRACE-REPLAY-KIT (runner + oracles): https://github.com/verifiable-ai-ci/TRACE-REPLAY-KIT
- morph-lean-ci (sharded Lean): https://github.com/SentinelOps-CI/morph-lean-ci
- morph-replay-runner (branch-N replays): https://github.com/SentinelOps-CI/morph-replay-runner
- mcp-sidecar-demo (permissions/epochs/IFC): https://github.com/SentinelOps-CI/mcp-sidecar-demo
See docs/standards.md, docs/Evidence.md, and docs/Replay.md for usage.
# Clone the repository
git clone https://github.com/SentinelOps-CI/provability-fabric
# Run the installation script
./scripts/install.sh # For Linux/macOS
scripts/install.bat # For Windows Command Prompt (RECOMMENDED for Windows)
# Note: Git Bash on Windows may have execution issues
# Test the installation
./scripts/test-new-user.sh # For Linux/macOS
scripts/test-new-user.bat # For Windows Command Prompt (RECOMMENDED for Windows)
# Troubleshoot Windows Git Bash issues (if needed)
bash scripts/windows-troubleshoot.sh # For Windows Git Bash troubleshootingThe project includes a comprehensive web ecosystem with real-time capabilities, advanced search, and secure authentication:
# Quick launch all services (Recommended)
./launch-web-interfaces.bat # Windows
./launch-web-interfaces.sh # Linux/macOS
# Or launch services individually:
# 1. Start the Ledger API with WebSocket and Authentication
cd runtime/ledger && node minimal-server.js
# Available at: http://localhost:8080
# 2. Start the Console UI
cd console && npm install && npm start
# Available at: http://localhost:3000
# 4. Start the Documentation Site
mkdocs serve --dev-addr=127.0.0.1:8002
# Available at: http://127.0.0.1:8002
### Option 3: Manual Installation
```bash
# Clone the repository
git clone https://github.com/SentinelOps-CI/provability-fabric
# Build the CLI from source
cd core/cli/pf
go build -o pf . # On Windows, output is pf.exe
# Add to PATH (Important for Windows users)
# Linux/macOS
export PATH=$PATH:$(pwd)
# Windows (Command Prompt) - RECOMMENDED
set PATH=%PATH%;%CD%
# Windows (PowerShell)
$env:PATH += ";$PWD"
# Go back to repository root
cd ../../..
# Initialize a new agent specification
./pf init my-agent # Linux/macOS
pf.exe init my-agent # Windows CMD or PowerShell (RECOMMENDED for Windows)
# Create and verify proofs (must be run from the correct directory)
cd spec-templates/v1/proofs
lake build # Requires Lean 4 to be installed
cd ../../../
# Run TRUST-FIRE GA test suite (must be run from repository root)
python tests/trust_fire_orchestrator.py
# Deploy with runtime monitoring (Kubernetes)
# Note: The deployment files are Helm templates and require proper setup
# For testing, you can use the inline deployments from the GitHub workflows:
kubectl apply -f - <<EOF
apiVersion: apps/v1
kind: Deployment
metadata:
name: attestor
spec:
replicas: 1
selector:
matchLabels:
app: attestor
template:
metadata:
labels:
app: attestor
spec:
containers:
- name: attestor
image: provability-fabric/attestor:test
ports:
- containerPort: 8080
env:
- name: REDIS_URL
value: "redis://redis-master:6379"
---
apiVersion: v1
kind: Service
metadata:
name: attestor-service
spec:
selector:
app: attestor
ports:
- protocol: TCP
port: 8080
targetPort: 8080
EOFBefore running the installation, ensure you have:
- Go 1.21+ - For building CLI tools
- Python 3.8+ - For running tests and scripts
- Node.js 18+ - For UI components (optional)
- Lean 4 - For formal proofs (optional, see Lean installation guide)
- kubectl - For Kubernetes deployment (optional)
- Rust - For runtime components (optional)
For Data Retention Manager:
- PostgreSQL - For hot storage (7-day retention)
- AWS S3 - For warm storage (compressed Parquet)
- Google BigQuery - For cold storage analytics
- Python packages:
psycopg2-binary,boto3,google-cloud-bigquery,pandas,pyarrow,pyyaml
Provability-Fabric consists of six core components with comprehensive security and real-time capabilities:
- Specification Bundles - YAML specifications with Lean proofs
- Runtime Guards - Sidecar containers that monitor execution
- Solver Adapters - Verification engines for neural networks and hybrid systems
- Marketplace UI - React-based dashboard with advanced search and real-time updates
- WebSocket Real-Time System - Live communication for monitoring and notifications
- Authentication & User Management - JWT-based security with role-based access control
flowchart TD
A[Agent Specification] --> B[Lean Proof Generation]
B --> C[Specification Bundle]
C --> D[Admission Controller]
D --> E[Container Deployment]
E --> F[Sidecar Watcher]
F --> G[Runtime Monitoring]
G --> H[Constraint Enforcement]
I[Neural Network] --> J[Marabou Adapter]
J --> K[Verification Proof]
K --> C
L[Hybrid System] --> M[DryVR Adapter]
M --> N[Reach Set]
N --> C
O[GPU Neural Network] --> P[α-β-CROWN Adapter]
P --> Q[GPU Verification Proof]
Q --> C
C --> O[Transparency Ledger]
O --> P[GraphQL API]
style A fill:#e1f5fe
style C fill:#f3e5f5
style F fill:#fff3e0
style O fill:#e8f5e8
We welcome contributions! Please see our Contributing Guide for details.
# Clone the repository
git clone https://github.com/SentinelOps-CI/provability-fabric
# Build CLI tools from source
cd core/cli/pf && go build -o pf.exe . && cd ../..
cd cmd/specdoc && go build -o specdoc.exe . && cd ../..
# Install Python dependencies for testing (if requirements.txt files exist)
if [ -f "tests/integration/requirements.txt" ]; then pip install -r tests/integration/requirements.txt; fi
if [ -f "tests/proof-fuzz/requirements.txt" ]; then pip install -r tests/proof-fuzz/requirements.txt; fi
if [ -f "tools/compliance/requirements.txt" ]; then pip install -r tools/compliance/requirements.txt; fi
if [ -f "tools/insure/requirements.txt" ]; then pip install -r tools/insure/requirements.txt; fi
if [ -f "tools/proofbot/requirements.txt" ]; then pip install -r tools/proofbot/requirements.txt; fi
# Install Node.js dependencies for Console UI
cd console && npm install && cd ..
# Start the Console UI development server (optional)
cd console && npm start
# The UI will be available at http://localhost:3000
# Run tests (from repository root)
python tests/trust_fire_orchestrator.pypfcommand not found: Make sure you've built the CLI and added it to your PATHlake buildfails: Ensure you're in thespec-templates/v1/proofsdirectory and have Lean 4 installed- Python script errors: Make sure you're running scripts from the repository root
deployment.yamlnot found: The deployment files are Helm templates, not plain Kubernetes YAML. Use the inline examples from the README or set up Helm properly- Kubernetes deployment fails: Requires a running Kubernetes cluster (Docker Desktop, Minikube, or cloud cluster)
- Git Bash path issues: Use forward slashes (
/) instead of backslashes (\) in Git Bash - Windows file removal issues: Use the updated scripts with Windows-compatible file removal methods
- "Device or resource busy" errors: Close any applications accessing the files and try again
- UI module resolution errors: Ensure TypeScript configuration is properly set up in
marketplace/ui/tsconfig.json - Heroicons import errors: Use the correct icon names (e.g.,
CubeIconinstead ofPackageIcon,ArrowDownTrayIconinstead ofDownloadIcon)
- Windows: Use
pf.exeinstead ofpfand ensure proper PATH setup. Use Windows Command Prompt instead of Git Bash for running installation scripts - Git Bash/WSL: Use
bash scripts/install.shfor installation and forward slashes for paths - Lean 4: May require network access for dependency downloads
- Kubernetes: Install Docker Desktop with Kubernetes enabled, or use Minikube for local development
If you encounter path-related errors in Git Bash on Windows:
-
Use forward slashes: Always use
/instead of\in paths# Correct bash scripts/install.sh cd core/cli/pf # Incorrect bash scripts\install.sh cd core\cli\pf
-
File removal issues: If you get "Device or resource busy" errors:
- Close any file explorers or text editors accessing the files
- Use the updated scripts which handle Windows file removal properly
- Try running the script again after closing applications
-
Command interpretation: Git Bash interprets backslashes as escape characters:
# Correct export PATH=$PATH:$(pwd)/core/cli/pf # Incorrect export PATH=$PATH:$(pwd)\core\cli\pf
-
Troubleshooting: If you're still having issues, run the troubleshooting script:
bash scripts/windows-troubleshoot.sh
For Lean 4 formal proofs:
- Install Lean 4: Follow the official installation guide
- Build proofs: Run
cd spec-templates/v1/proofs && lake build - Network issues: If you encounter certificate errors, try using a VPN or check your network settings
If you're using Git Bash on Windows and encounter issues:
- Path separators: Use forward slashes (
/) instead of backslashes (\) - Command execution: Use
bash scripts/install.shinstead ofscripts\install.bat - File permissions: Some file operations may require different permissions in Git Bash
- Line endings: Ensure files use Unix line endings (LF) instead of Windows line endings (CRLF)
- "Device or resource busy" errors: Close any applications (file explorers, editors) that might be accessing the files
- File removal issues: The scripts now use Windows-compatible file removal methods
- Backslash interpretation: Git Bash interprets backslashes as escape characters, so always use forward slashes
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- Lean 4 - Formal proof system
- Marabou - Neural network verification
- DryVR - Hybrid system verification
- α-β-CROWN - GPU-accelerated neural network verification
- Sigstore - Cryptographic signing
- Memurai - Redis-compatible server for Windows
Provability-Fabric - Trust in AI through formal verification and comprehensive security mechanisms with advanced multi-channel security and performance guarantees.
