Skip to content

Reflective-Lab/axiom

Axiom

CI Security Stability Dependency Analysis coverage Crates.io docs.rs dependency status MSRV gitleaks badge License: MIT

The truth layer — validation, simulation, guidance, and policy lens for Converge.

Axiom validates business specifications written in Gherkin-style .truths files using LLMs, generates Rust invariant code, and provides policy analysis tooling.

┌─────────────────────────────────────────────┐
│  Helm          Decision frameworks          │
├─────────────────────────────────────────────┤
│  Axiom         Truth validation & codegen   │  ← you are here
├─────────────────────────────────────────────┤
│  Organism      Reasoning, planning, debate  │
├─────────────────────────────────────────────┤
│  Converge      Engine, governance, commit   │
├─────────────────────────────────────────────┤
│  Providers     LLMs, tools, storage         │
└─────────────────────────────────────────────┘

A New World

The old world demanded that all ambiguity be drained before execution; the new world keeps the gap between human intent and machine decision open and closes it safely at runtime. But "safely" only works if the upfront contract — the thing the human signs onto — is precise and enforceable. Axiom compiles that contract.

Why it matters. Truth Documents, validated and codegenned into Rust + WASM invariants, are how upfront human intent becomes runtime-enforceable structure. Without Axiom, the rest of the stack has no fixed point worth converging on; with it, the new world keeps its rigor where the old world used to keep its workflow.

What it does

Module Purpose
gherkin Validate .truths specs for business sense, compilability, and conventions
codegen Generate Rust invariant code from validated specs
compile Compile and verify generated invariants
simulation Simulate outcomes against specs
guidance Contextual guidance for spec authors
policy_lens Policy analysis and compliance checking
jtbd Jobs-to-be-done framework integration
predicate Predicate logic for truth evaluation

CLI

Axiom ships cz, a workspace orchestrator:

cz doctor      # Check environment health
cz bootstrap   # Set up development environment
cz validate    # Validate .truths specs
cz test        # Run all tests

Quick Start

git clone https://github.com/Reflective-Lab/axiom.git
cd axiom

just build      # Build (release)
just test       # Run tests
just lint       # Format + clippy

Library Usage

use axiom_truth::gherkin::{GherkinValidator, ValidationConfig};

let validator = GherkinValidator::new(backend, ValidationConfig::default());
let result = validator.validate_file("specs/money.truths").await?;

Converge Boundary

Axiom uses the narrow Converge provider surface for live validation help:

  • converge-provider for chat contracts, provider capability vocabulary, and selection types
  • converge-manifold-adapters for concrete backend selection helpers

Axiom does not depend on the Converge engine crate as part of its public integration contract.

Architecture

See architecture/ for ADRs and API surface documentation.

License

MIT — Copyright 2024–2026 Reflective Group AB

About

Converge tooling

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages