Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.
Rust ai-nativedescription-logicsformal-verificationinfrastructure-as-codeisabelle-languageknowledge-graphleanlean4mcpmcp-serverontologyowlowl2reasoningrustshaclsparqltheorem-proving
Merge remote-tracking branch 'origin/main' into verdict-by-construction
FABIOTESS09af52dee739
diff --cc Cargo.lockindex f51cf8bd,f51cf8bd..a61e8014--- a/Cargo.lock+++ b/Cargo.lock@@@ -2811,7 -2811,7 +2811,7 @@@ dependencies =[[package]]name = "open-ontologies"--version = "1.3.0"++version = "1.4.1"dependencies = ["anyhow","arrow 54.3.1",diff --cc README.mdindex ae5966c0,0da29845..676e7e25--- a/README.md+++ b/README.md@@@ -415,13 -415,11 +415,13 @@@ Restart, and the `onto_*` tools are ava## What is in the box- **114 tools** to build, validate, query, diff, lint, version, reason over, align, plan, certify- and govern RDF and OWL, over an in-memory Oxigraph store. A default build advertises 106 tools.+ **115 tools** to build, validate, query, diff, lint, version, reason over, align, plan, certify-and govern RDF and OWL, over an in-memory Oxigraph store. A default build advertises all 115 tools.-Eight need an optional Cargo feature and return an error without it: four need `embeddings`, two-need `plugins`, two need `postgres` or `duckdb`. The published binaries and the GHCR image are-built with the default feature set, so they do not carry those eight.++and govern RDF and OWL, over an in-memory Oxigraph store. A default build advertises 107 tools.+Eight need an optional Cargo feature: four need `embeddings`, two need `plugins`, two need+`postgres` or `duckdb`. A build without the feature does not advertise them at all, because a+tool that appears in `tools/list` and is guaranteed to fail is a promise the binary cannot keep.+The published binaries and the GHCR image are built with the default feature set, so they do not- carry those eight. A build with `--features embeddings,plugins,sql` has the full 114.++carry those eight. A build with `--features embeddings,plugins,sql` has the full 115.The Python package `open-ontologies-lite` now reasons as well, in pure Python with no Rusttoolchain, and its certificates are checked by the same Lean binaries. It is a second engine, anddiff --cc python/src/open_ontologies_lite/horn/reason.pyindex 6cd3c7dd,74ef1b49..62cdcb47--- a/python/src/open_ontologies_lite/horn/reason.py+++ b/python/src/open_ontologies_lite/horn/reason.py@@@ -246,7 -246,7 +246,7 @@@ def _facts(store, graphs) -> tuple[listThe default is the DEFAULT GRAPH ALONE, which is where `OntologyEngine.load()`puts everything, so this package's own users lose nothing by it. The Rustengine flattens every named graph here EXCEPT the inferred one- (`src/reason.rs:2695`, `graph.triples_outside(&[INFERRED_GRAPH])`). Before- (`src/reason.rs:2745`, `graph.triples_outside(&[INFERRED_GRAPH])`). Before++ (`src/reason.rs:2753`, `graph.triples_outside(&[INFERRED_GRAPH])`). Before15 September 2026 it excepted nothing, which was the defect above: a storeholding a prior materialisation turned derived triples into assertions."""diff --cc python/tests/test_horn_differential.pyindex 450aedb7,da3f7533..425b56ef--- a/python/tests/test_horn_differential.py+++ b/python/tests/test_horn_differential.py@@@ -26,7 -26,7 +26,7 @@@ WHAT IS COMPARED, AND WHAT IS NOTThe assertion is SET EQUALITY OF DERIVED TRIPLES against the Rust `run_horn`, overthe same `builtin_rules.tsv`. Byte identity of the two `horn.tsv` files is NOT agoal and must not be asserted: the Rust emitter sorts interned `u32` triples- (`src/reason.rs:2765`, `all.sort_unstable()` over `Vec<(u32,u32,u32)>`), so its-(`src/reason.rs:2815`, `all.sort_unstable()` over `Vec<(u32,u32,u32)>`), so its++(`src/reason.rs:2823`, `all.sort_unstable()` over `Vec<(u32,u32,u32)>`), so itsline order is first-appearance order in the store, not lexicographic order.Reproducing it from Python would mean reimplementing the interner and betting onidentical store-iteration order across two bindings, to buy nothing the setdiff --cc python/tests/test_horn_fixpoint_and_scope.pyindex 424f9f56,db871fcc..a23f1f19--- a/python/tests/test_horn_fixpoint_and_scope.py+++ b/python/tests/test_horn_fixpoint_and_scope.py@@@ -24,7 -24,7 +24,7 @@@ previous materialisation in the inferreASSERTIONS. The checker could not detect it: the soundness theorem is conditionalon the assertions, and it is TOLD what they are, so the result was a greenabsolute verdict about a graph nobody asserted. It now reads- `src/reason.rs:2695`, `graph.triples_outside(&[INFERRED_GRAPH])`, and the-`src/reason.rs:2745`, `graph.triples_outside(&[INFERRED_GRAPH])`, and the++`src/reason.rs:2753`, `graph.triples_outside(&[INFERRED_GRAPH])`, and theinferred graph is out of scope.The two engines still differ in HOW, and the difference is deliberate. Rust