Minimal deterministic governance kernel for autonomous systems.
ExoArmur is a minimal deterministic governance kernel for autonomous systems. It enforces policy gates, produces cryptographic audit trails, and enables deterministic replay verification.
A deterministic governance runtime that sits between an AI decision layer and execution targets. Every action passes through a policy gate, produces a cryptographic audit trail, and is deterministically replayable.
- Not a full autonomous system — it is a governance layer, not an agent
- Not a platform executor — Core does not include vendor SDK integrations (LangChain, OpenAI, Anthropic, HuggingFace are scaffolds only)
- Not production-certified — this is a reference implementation seeking formal verification
- Not externally audited — security and compliance are self-validated, not third-party audited
- Not a web service — the kernel is importable as a pure Python library with zero network dependencies
pip install exoarmur-coreRequires Python 3.10 or later.
Optional Demo API:
To run the optional FastAPI demo server (not required for Core runtime):
pip install exoarmur-core[demo-api]
python scripts/demo_api.pyRun the health check to verify installation:
exoarmur healthRun the demo to see deterministic governance in action:
exoarmur demoUsage: exoarmur [OPTIONS] COMMAND [ARGS]...
ExoArmur Core — deterministic governance and replayable audit layer
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
demo Run demonstration scenarios
evidence Evidence pack operations
health Quick health check
proof Run deterministic proof mode - single command system...
verify-all Run complete system verificationTest Suite: 338 passed, 17 skipped, 0 failed
python -m pytest tests/ -q -rsE2E Tests: 22 passed, 0 failed
python -m pytest tests/e2e/ -vDACT Compliance: Levels 1-5 are internally validated by the ExoArmur test suite. Third-party audit has not yet been completed. Level 6 remains pending external/formal review.
See PROJECT_STATUS.md for detailed validation status.
Core Executors (included in exoarmur-core):
- FileSystemExecutor — governs file operations (create, delete, rename, modify) with automatic rollback and state hash verification
- DatabaseExecutor — governs database operations with transaction rollback and state verification
Platform Executor Scaffolds (reference implementations only):
- langchain_executor.py — Scaffold for LangChain agent governance
- openai_executor.py — Scaffold for OpenAI API governance
- anthropic_executor.py — Scaffold for Anthropic API governance
- huggingface_executor.py — Scaffold for HuggingFace model governance
Note: Real platform integrations (with actual API calls) belong in optional addon packages (e.g., exoarmur-openai-executor). Core provides the plugin infrastructure and evidence schema for external effects, but does not include vendor SDK integrations.
ExoArmur includes demo artifacts in examples/demo_artifacts/ that are safe public sample data generated from real Core E2E flows. These artifacts are intended for future Web UI/demo use and require no vendor SDKs, network calls, secrets, or machine-specific paths.
See examples/demo_artifacts/README.md for details.
The kernel enforces deterministic replay through:
- Canonical JSON (sorted keys, no whitespace variation)
- Controlled clock abstraction (deterministic time for replay, wall-clock for coordination)
- Zero randomness in the decision path
- Zero ML in the authority path
ExoArmur-Core implements the Deterministic Autonomy Compliance Test (DACT) v0.2:
| Level | Requirement | Status |
|---|---|---|
| 1 | Deterministic Replay | ✅ Internally validated |
| 2 | Cryptographic Attestation | ✅ Internally validated |
| 3 | Counterfactual Analysis | ✅ Internally validated |
| 4 | ML Isolation | ✅ Internally validated |
| 5 | Air-Gap Integrity | ✅ Internally validated |
| 6 | Formal Verification | ⏳ Pending third-party review |
Note: Levels 1-5 are internally validated by the ExoArmur test suite. Third-party audit has not yet been completed.
The kernel consists of:
| Module | Purpose |
|---|---|
kernel/boundary.py |
Minimal routing: Intent → Policy → Safety → Executor → Audit |
kernel/clock.py |
Clock abstraction with utc_now and DeterministicClock |
kernel/ids.py |
Deterministic ULID generation for governance entities |
kernel/trust_evaluator.py |
Formal interface (raises NotImplementedError) |
kernel/external_effect.py |
External effect evidence and replay verification |
kernel/replay_verification.py |
Replay verification engine |
kernel/plugin_registry.py |
Plugin discovery and registration |
kernel/canonicalization.py |
Canonical JSON encoding |
executors/file_system_executor.py |
FileSystemExecutor with governance integration |
executors/database_executor.py |
DatabaseExecutor with transaction rollback |
executors/langchain_executor.py |
LangChainExecutor scaffold (reference implementation) |
executors/openai_executor.py |
OpenAIExecutor scaffold (reference implementation) |
executors/anthropic_executor.py |
AnthropicExecutor scaffold (reference implementation) |
executors/huggingface_executor.py |
HuggingFaceExecutor scaffold (reference implementation) |
Total kernel: ~1,680 lines
Reference implementation. Single maintainer. Not production-certified. Not externally audited. Seeking formal verification partnership and pilot integrations in high-assurance environments (defense, sovereign infrastructure, critical systems).
- Documentation Index — Table of contents for all documentation
- The ExoArmur Doctrine — Verified claims and compliance
- Architecture — System architecture
- ML Isolation Policy — Advisory-only ML components
- DACT Standard v0.2 — Deterministic Autonomy Compliance Test specification
- Formal Verification Invariants — Formal specifications for DACT Level 6
- LangChain Executor Integration — Scaffold integration guide
- Project Status — Current validation status and roadmap
- Security Policy — Security policy and threat model
- Contributing — Contribution policy and development setup
- Changelog — Version history
Apache 2.0 — see LICENSE for full terms.
ExoArmur Core is free, open-source software. You may use, modify, and distribute it under the terms of the Apache License 2.0. Commercial support, hosted offerings, and proprietary module integrations are not covered by this license and require separate agreement.
We welcome contributions — bug reports, architecture feedback, porting efforts, and formal verification collaboration. See CONTRIBUTING.md for setup, guidelines, and safety rules.
Please open an issue before proposing large changes so we can align on design.