🧠 Phronesis
A More Transparent, Auditable, and Hopefully Safer Language for Agentic Ethical Reasoning
Author: Jonathan D. A. Jewell
Version: 0.9.0
Repository:https://github.com/hyperpolymath/phronesis
License: MPL-2.0 (code) and CC-BY-SA-4.0 (documentation)
Phronesis* is a neuro-symbolic, agentic language designed to formalize ethical reasoning in autonomous systems. It fuses the precision of Symbolic AI with the adaptability of neural networks, enforcing provable safety and fault tolerance through a dedicated BEAM VM runtime.
Phronesis uses a dual-licensing model:
MPL-2.0: The runtime, compiler, and all source code — file-level copyleft that keeps the implementation free and open-source, even in networked deployments.
CC-BY-SA-4.0: The documentation, philosophical core, and benchmark suite — open research and reuse under attribution and share-alike.
The root LICENSE carries the MPL-2.0 text — the single licence GitHub detects for the repository. See LICENSING.adoc (and its machine twin .machine_readable/licensing-policy.toml) for the full policy: the file-class mapping, the GitHub marker, and exclusion cases.
| Component | Novelty / Claim | Technical Significance |
|---|---|---|
Hybrid Semantic Definition | Formal axiomatic + operational semantics | Guarantees trustworthiness and auditability |
Probabilistic Types |
| Solves symbol grounding between neural and symbolic layers |
Metaiconic API | Modules return | Enables introspection and self-correction |
Map-Territory Mandate | Mandatory | Enforces epistemological safety |
Reflexion Design Layer | Judgement-Evidence Graph + Invariant-Path Equivalence Engine that records why a design is valid and gates regressions | Surfaces design obligations on safety-weakening changes without auto-mutating language semantics |
BEAM/Raft Architecture | BEAM VM + Raft consensus for ethical loop execution | Ensures fault-tolerant, distributed reasoning |
| Feature | Rationale |
|---|---|
Strong Static Typing | Prevents runtime errors in safety-critical systems |
BEAM VM Execution | Fault-tolerant, memory-safe, concurrent runtime for 24/7 operation |
Sandboxing & Isolation | Containerized (Podman) for secure module execution |
Formal Logic Integration | Supports ∀, ∃, ¬, ∪, ∩ for rigorous ethical reasoning |
Phase 1: Reference Interpreter (Elixir/BEAM) — implemented Lexer, parser, type checker, interpreter, consensus, LSP, debugger, profiler, and the reflexion design layer, all running on the BEAM.
Phase 2: Production Compiler (Rust → WASM) Compile to WebAssembly via the
compiler/phronesis-astandcompiler/phronesis-wasmcrates.
| Component | Tool / Language Preference |
|---|---|
Development | Elixir (reference implementation), Rust (WASM compiler) |
Runtime | Erlang / Elixir (BEAM VM) |
Containerization | Podman (Containerfile, Chainguard base) |
Consensus | Raft (TLA+ specification in |
Formal verification | TLA+ (consensus), proof corpus in |
To begin contributing:
Clone the repo: + [source,bash] ---- git clone git@github.com:hyperpolymath/phronesis.git ----
Install dependencies:
Erlang/OTP + Elixir (BEAM runtime)
Rust toolchain (WASM compiler)
just(task runner)
Run the test suite with
just test: Passing all ethical scenarios is the definitive measure of correctness.the name is purposely ironic, though why, I will let you figure out.