Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cyberpaisa-dof-mesh-40-27.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Installation

pip install dof-sdk==0.8.0
dof version
# dof-sdk 0.8.0

All Commands

CommandDescription
dof verify <text>Constitution + AST + DataOracle
dof verify-code <code>AST only
dof check-facts <text>DataOracle only
dof proveZ3 formal verification — 4/4 theorems
dof verify-statesZ3 state invariants
dof verify-hierarchyZ3 hierarchy — 42 patterns
dof benchmarkAdversarial benchmark
dof privacyPrivacy leak benchmark
dof healthComponent status 16/16
dof regression-baselineCapture current baseline
dof regression-checkCompare vs baseline (exit 1 if regressions)
dof regression-historyShow history
dof versionv0.8.0

Global Flags

dof --json <command>    # JSON output for any command
dof --help             # Help text

Quick Examples

# Verify text
dof verify "Bitcoin was created in 2009"
# Status: PASS | Score: 0.95 | Latency: 12.4ms

# Verify code
dof verify-code "x = eval(input())"
# Passed: False | UNSAFE_CALLS blocked

# Check facts
dof check-facts "Ethereum was launched in 2010."
# Status: DISCREPANCY | expected=2015, got=2010

# Run Z3 proofs
dof prove
# All verified: True | Total: 8.6ms

# System health
dof health
# DOF v0.8.0 — 16/16 components available

16 Components (dof health)

ConstitutionEnforcer    ASTVerifier         DataOracle
GovernedMemoryStore     ExecutionDAG        LoopGuard
TokenTracker            MerkleTree          CertificateSigner
OAGSIdentity            GenericAdapter      TestGenerator
AgentLeakMapper         Z3Verifier          BayesianProviderSelector
RuntimeObserver

CLI: verify

verify, verify-code, check-facts

CLI: prove

prove, verify-states, verify-hierarchy

CLI: benchmark

benchmark, privacy, health, regression