Skip to main content

ExoArmur Core – deterministic governance and replayable audit layer for execution

Project description

ExoArmur Core

CI PyPI Python License Version

Deterministic execution governance for AI agents. Every action passes through a policy gate, produces a cryptographic audit trail, and is deterministically replayable.


5-Minute Proof

pip install exoarmur-core
python examples/quickstart_replay.py

Or inline:

from exoarmur import ReplayEngine
from exoarmur.replay.event_envelope import CanonicalEvent
import hashlib, json

payload = {"kind": "quickstart", "ref": "demo"}
event = CanonicalEvent(
    event_id="01ARZ3NDEKTSV4RRFFQ69G5FAV",
    event_type="quickstart_replay",
    actor="demo",
    correlation_id="corr-1",
    payload=payload,
    payload_hash=hashlib.sha256(
        json.dumps(payload, sort_keys=True, separators=(",", ":")).encode()
    ).hexdigest(),
)
engine = ReplayEngine(audit_store={"corr-1": [event]})
report = engine.replay_correlation("corr-1")
print("Replay result:", getattr(report.result, "value", report.result))
print("Failures:", report.failures or "none")

Run the full suite (1033 tests, three-run stability gate):

git clone https://github.com/slucerodev/ExoArmur-Core.git
cd ExoArmur-Core
pip install ".[dev]"
python -m pytest -q

What It Does

ExoArmur sits between your AI decision layer and execution targets. It enforces that every action:

  • Passes a policy decision point before it runs
  • Produces a cryptographic audit trail tied to the original intent
  • Is deterministically replayable — same inputs always reconstruct the same trace
  • Can be vetoed or queued for operator approval
Decision Source → ActionIntent → PolicyDecisionPoint → SafetyGate → [Approval?] → Executor → ExecutionProofBundle

What It Is Not

  • Not an LLM or agent framework
  • Not a general workflow engine
  • Not a distributed systems platform

ExoArmur is a governance and accountability layer that wraps whatever agent framework you already use.

Architecture

Layer Path Purpose
Core engine src/exoarmur/ Deterministic replay, audit, policy enforcement
V2 governance src/exoarmur/execution_boundary_v2/ ProxyPipeline, approval workflow, executor boundary
Contracts spec/contracts/ Immutable V1 data shapes
Examples examples/ Quickstart and demo scripts

Key invariants:

  • ProxyPipeline is the sole execution boundary — all actions route through it
  • Executors are sandboxed, untrusted plugins
  • Determinism is enforced by CI — three-run stability gate on every push
  • V1 contracts are immutable — new capabilities are additive and feature-flag gated

Feature Flags

V2 capabilities default to off:

Flag Purpose
EXOARMUR_FLAG_V2_FEDERATION_ENABLED Multi-cell coordination
EXOARMUR_FLAG_V2_CONTROL_PLANE_ENABLED Governance control plane
EXOARMUR_FLAG_V2_OPERATOR_APPROVAL_REQUIRED Human approval gate

Governance Pipeline Demo

EXOARMUR_FLAG_V2_FEDERATION_ENABLED=true \
EXOARMUR_FLAG_V2_CONTROL_PLANE_ENABLED=true \
EXOARMUR_FLAG_V2_OPERATOR_APPROVAL_REQUIRED=true \
python scripts/demo_v2_restrained_autonomy.py --operator-decision deny

Expected output:

DEMO_RESULT=DENIED
ACTION_EXECUTED=false
AUDIT_STREAM_ID=det-...

Replay the audit stream:

python scripts/demo_v2_restrained_autonomy.py --replay <AUDIT_STREAM_ID>

CI

Every push runs:

  • Core Invariant Gates — three deterministic test runs, boundary enforcement, repo cleanliness
  • Multi-Platform Tests — Python 3.8–3.12 on Linux, macOS, Windows
  • Security Scan — CodeQL + pip-audit
  • V2 Demo Smoke Test — full governance pipeline end-to-end

Current: 1033 passing, 11 skipped, 11 xfailed. No external infrastructure required for the core suite.

Live Demo (Requires NATS JetStream)

docker compose up -d
EXOARMUR_LIVE_DEMO=1 python -m pytest tests/test_golden_demo_live.py -v

Documentation

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributing

Issues and PRs welcome. All contributions must pass the full gate suite including the three-run stability check (python scripts/infra/stability_ci.py).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exoarmur_core-2.0.0.tar.gz (579.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exoarmur_core-2.0.0-py3-none-any.whl (460.6 kB view details)

Uploaded Python 3

File details

Details for the file exoarmur_core-2.0.0.tar.gz.

File metadata

  • Download URL: exoarmur_core-2.0.0.tar.gz
  • Upload date:
  • Size: 579.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for exoarmur_core-2.0.0.tar.gz
Algorithm Hash digest
SHA256 31b5a16eb4abf4d13124bb2c118e5272b61a0f73e4c44815b0fc90de6118f3fd
MD5 35bde0c07f20f517cda8c5a7ea5e1b86
BLAKE2b-256 1685bb6eeb70d8897f6ffa947e57f34f535a1ae8522fd4bccd90031d12de6ec7

See more details on using hashes here.

Provenance

The following attestation bundles were made for exoarmur_core-2.0.0.tar.gz:

Publisher: publish-pypi.yml on slucerodev/ExoArmur-Core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file exoarmur_core-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: exoarmur_core-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 460.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for exoarmur_core-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 822e3c31d9279e21473c9540b4ec5278a0fa5a2452a8044ffaeade558ce6d2d0
MD5 d11af5fb1fb81e42e9c490487285af46
BLAKE2b-256 5ed719b1502950177f986e6f5140543d14dbcca6fcaafa58bfb98c8b0a73cfe0

See more details on using hashes here.

Provenance

The following attestation bundles were made for exoarmur_core-2.0.0-py3-none-any.whl:

Publisher: publish-pypi.yml on slucerodev/ExoArmur-Core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page