# Axioma Feature Maturity This document defines the public support tiers for Axioma features alongside the architectural pillars and lifecycle labels in `resources/docs/claude/NORTH_STAR.md` and `resources/docs/claude/SYNTAX_EXPLORATION_POLICY.md`. It is the source of truth for public release-readiness expectations; `docs/semantics/reference.md` defines normative runtime semantics. The release gate checklist is defined in `docs/release-readiness.md`. ## Tiers | Tier | Meaning | Compatibility Promise | | --- | --- | --- | | **Stable / Kernel** | Core language, value, contract, and reasoning surfaces | Guarded by CI, Go unit tests, golden CLI fixtures, and verified textbook examples (`make test-textbook`). Breaking changes require release notes and migration hints. | | **Provisional** | Cross-language or ergonomic dual spellings under corpus evaluation | Desugars cleanly to stable AST/runtime semantics, fully tested, and covered by editor/LSP support; may be normalized by `--fmt` or refined between `0.x` previews with clear migration diagnostics. | | **Beta** | Public subsystem or tooling surface still narrowing edge contracts | Usable, documented, and regression-tested; flags, edge diagnostics, or `--vm` coverage may tighten with notice. | | **Experimental** | Research, foreign-bridge, or exploratory UI/solver surface | Opt-in; may evolve without deprecation shims and does not block core `0.x` releases. | | **Internal / Demo** | Teaching showcases, book passes, and prototype binaries | Not part of the compatibility contract. | ## Stable / Kernel Stable features form the core contract enforced by `go test ./...`, `make test-production`, `make test-textbook`, and `tests/golden/cli`: - **CLI & Diagnostics:** Script execution (`cmd/axioma`), structured parse/runtime diagnostics, advisory static warning pass (including cross-frame compound-write warnings), `--typecheck` / `--strict` / `--strict-bottoms`, and `--lint`. - **Exact Numeric & Dimensional Tower:** Arbitrary-precision `Integer` (with strict whole-string `integer(s)` and `Integer.parse(s)`), exact `Rational`, `Float`, `Complex`, `Byte`/`Bytes`, exact `Money`, and dimensional `Quantity` (`unit`, `qty`, `as_unit`). - **Collections & Patterns:** 1-based `Array`, `Tuple`, `List`, first-class `Set` (`{}` = `∅`), `Dictionary` (`{:}`), `Matrix`/`Vector`, comprehensions, slices, spread (`[...xs]`, `{...d}`, `f(...args)`), `data` ADTs, `struct` (with `invariant:` and module-scoped `/private` fields), and exhaustive `match` / destructuring (including `..rest`/`...rest` and defaults). - **Functions, Control & Contracts:** Lexical closures, explicit `let`/`val` vs `var`/`local`/`let mut`, `rebind` and `global`, single-evaluation compound writes (`+=`, `-=`, `*=`, `/=`, `%=`, `**=`, `??=`, `???=`), `??`/`???` coalescing, `?.` safe navigation (`o?.k`, `o?.m()`, `f?.()`, `xs?.[i]`), `|>` / `|?>` pipes, `try`/`catch`/`finally`, `attempt`, `otherwise`, `defer`, `with`, and runtime `::` contracts. - **Knowledge & Logic Core:** `concept` (C3 multiple inheritance, `init:`, `invariant:`, `parent`/`super` delegation, `is` / `extends` / `===`), `relation` (KB Horn & defeasible `<~~` rules, `relation/datalog`, `relation/prolog`), Belnap `B4` + Kleene `om` (`Ω`) truth lattices, epistemic grounding tiers, and provenance inspection (`why`, `proof`, `grounding`). - **Editor & Documentation Surface:** `cmd/axioma-lsp`, `vscode-axioma` grammar/completions, normative `docs/semantics/reference.md`, `Axioma Manual`, and *HtDP in Axioma*. ## Provisional Tracked per `resources/docs/claude/SYNTAX_EXPLORATION_POLICY.md`: - Borrowed statement/declaration spellings (`:=`, brace `{ ... }` bodies on functions/loops/conditionals, `begin ... end`, arrow lambdas, conditional plain calls `f?.(args)` and optional indexing `xs?.[i]`, `...rest` destructuring alias, `{...d}` dictionary spread). ## Beta | Surface | Current Scope & Boundary | Path to Stable | | --- | --- | --- | | **Bytecode VM (`--vm`)** | Governed strictly by **§911**: byte-equal to the reference evaluator on supported functional, numeric, collection, loop, `??`/`???`/`??=`/`???=`, and `in` code, or loud compile/runtime refusal | Continue widening compilation to pattern destructuring, ADTs, safe navigation, and closures with captured mutations while preserving zero silent drift. | | **Self-hosting (`lib/self/`)** | Differential lexer and parser parity against Go reference corpus | Complete full-surface round-trip coverage. | | **Closed Hindley–Milner (`axioma/hm`)** | Sound Hindley–Milner island with explicit subset refusal for dynamic host constructs | Maintain strictness and module-signature integration. | | **Shared SQLite KB & MCP (`--kb`, `--mcp`)** | Persistent KB interoperability across `AxiomaLang`, `AxiomaKB`, `AxiomaCascade`, and `AxiomaAgent`; `--mcp` tool server | Expanded multi-process transaction and schema-migration golden tests. | | **Symbolic Algebra (`sym` / `Expr` / `cas.*`)** | Native exact surds, symbolic expressions, AST rewriting, and optional SymPy bridge | Native canonical `simplify`/`factor`/`solve` parity per `NORTH_STAR.md` §6.1. | | **Playground, Notebooks & DAP (`playground/`, `.anb`, `cmd/axioma-dap`)** | Browser WASM execution, `.anb` notebooks, and step debugging | End-to-end automated smoke suite in release CI. | ## Experimental - Foreign language execution bridges (`[js|…]`, `[ts|…]`, `[python|…]`, `[julia|…]`, `foreign_function`) requiring external toolchains. - Advanced specialized reasoners (Z3-backed `[logic/smt]`, `[logic/chase]`, ASP `stable_models`, modal/epistemic Kripke worlds, conceptual graphs, NSM/natural-language translation) while individual solver contracts narrow. - Autonomous candidate synthesis (`cmd/axioma-improve`) and exploratory desktop/web GUIs (`gui/`, `web-gui/`, `wails-gui/`). ## Internal / Demo - Cross-language book-pass showcases under `tests/axioma/showcase/` and `demo/` / `demos/`. - Design records and historical comparisons under `resources/docs/claude/`. ## Promotion Criteria A feature moves upward only when it has: 1. Normative specification in `docs/semantics/reference.md` and user coverage in the Manual/Textbook. 2. Positive and boundary regression tests (`expect(...)` + Go unit tests), plus `--vm` parity or explicit §911 refusal. 3. Full `axioma-lsp` and `vscode-axioma` grammar/completion parity.