Skip to content

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

Merge remote-tracking branch 'origin/main' into verdict-by-construction

FABIOTESS09af52dee739
diff --cc Cargo.lock
index 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.md
index 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 Rust
toolchain, and its certificates are checked by the same Lean binaries. It is a second engine, and
diff --cc python/src/open_ontologies_lite/horn/reason.py
index 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[list
The default is the DEFAULT GRAPH ALONE, which is where `OntologyEngine.load()`
puts everything, so this package's own users lose nothing by it. The Rust
engine 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])`). Before
15 September 2026 it excepted nothing, which was the defect above: a store
holding a prior materialisation turned derived triples into assertions.
"""
diff --cc python/tests/test_horn_differential.py
index 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 NOT
The assertion is SET EQUALITY OF DERIVED TRIPLES against the Rust `run_horn`, over
the same `builtin_rules.tsv`. Byte identity of the two `horn.tsv` files is NOT a
goal 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 its
line order is first-appearance order in the store, not lexicographic order.
Reproducing it from Python would mean reimplementing the interner and betting on
identical store-iteration order across two bindings, to buy nothing the set
diff --cc python/tests/test_horn_fixpoint_and_scope.py
index 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 inferre
ASSERTIONS. The checker could not detect it: the soundness theorem is conditional
on the assertions, and it is TOLD what they are, so the result was a green
absolute 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 the
inferred graph is out of scope.
The two engines still differ in HOW, and the difference is deliberate. Rust