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.

readme: lead with the thing nothing else does, point at the product, and stop the count drifting

FABIOTESS728957cadbd3
diff --git a/README.md b/README.md
index 7e2bf527..5595f7ed 100644
--- a/README.md
+++ b/README.md
@@ -7,11 +7,17 @@
<h1 align="center">Open Ontologies</h1>
<p align="center">
- <strong>A Terraforming MCP for Knowledge Graphs</strong><br>
- Validate, classify, and govern AI-generated ontologies. Written in Rust. Ships as a single binary.
+ <strong>An ontology engine whose answers carry their evidence</strong><br>
+ Reason, validate and align over RDF and OWL, then have a small verified checker in Lean 4
+ confirm the result. Written in Rust. Ships as a single binary.
</p>
<p align="center">
+ <a href="https://tesseractsemantics.com"><strong>tesseractsemantics.com</strong></a>
+</p>
+
+<p align="center">
+ <a href="https://tesseractsemantics.com"><img src="https://img.shields.io/badge/Tesseract%20Semantics-tesseractsemantics.com-111827?style=for-the-badge" alt="Tesseract Semantics"></a>
<a href="https://github.com/fabio-rovai/open-ontologies/stargazers"><img src="https://img.shields.io/github/stars/fabio-rovai/open-ontologies?style=for-the-badge&logo=github" alt="Stars"></a>
<a href="https://github.com/fabio-rovai/open-ontologies/network/members"><img src="https://img.shields.io/github/forks/fabio-rovai/open-ontologies?style=for-the-badge&logo=github" alt="Forks"></a>
<a href="https://github.com/fabio-rovai/open-ontologies/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/fabio-rovai/open-ontologies/ci.yml?branch=main&style=for-the-badge" alt="CI"></a>
@@ -40,7 +46,26 @@
---
-Open Ontologies is a **Rust MCP server** and **desktop Studio** for AI-native ontology engineering. It exposes **110 tools** that let Claude build, validate, query, diff, lint, version, reason over, align, plan, certify, and govern RDF/OWL ontologies using an in-memory Oxigraph triple store, alongside a three-layer Dynamics → Causal → Planner architecture, a marketplace of 33 standard ontologies, clinical crosswalks, semantic embeddings, and a lineage audit trail. A default build advertises all 110 tools. Eight of them need an optional Cargo feature and return an error without it: four need `embeddings`, two need `plugins`, and 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. Build from source with `cargo build --release --features embeddings,plugins,sql` to get them.
+Open Ontologies is a **Rust MCP server** and **desktop Studio** for ontology engineering, built by
+[Tesseract Semantics](https://tesseractsemantics.com). It exposes **111 tools** that let Claude build,
+validate, query, diff, lint, version, reason over, align, plan, certify and govern RDF and OWL using an
+in-memory Oxigraph triple store, alongside a marketplace of 33 standard ontologies, clinical
+crosswalks, semantic embeddings and a lineage audit trail.
+
+What separates it from every other engine of this kind is what comes back with the answer. An
+inference arrives with a derivation certificate. A satisfiable ontology arrives with a model. An
+inconsistent one arrives with a refutation. A retrieval slice arrives with the entailments it
+preserves. Each of those is replayed by a small checker written in Lean 4, in core Lean with no
+Mathlib, whose theorems say the conclusion holds in every model of what you asserted. You do not have
+to trust this engine. You can check what it did.
+
+The discipline matters more than the machinery, and it runs through the whole system. A rule you
+supplied is an assumption the certificate carries, never a fact it establishes, so it earns a
+different verdict word. A model a solver hands back can be checked and becomes a certificate; a
+refutation cannot be replayed in core Lean and stays an oracle opinion, and the two never share a
+word. Where something is measured rather than proved, the documentation says measured.
+
+A default build advertises all 111 tools. Eight of them need an optional Cargo feature and return an error without it: four need `embeddings`, two need `plugins`, and 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. Build from source with `cargo build --release --features embeddings,plugins,sql` to get them.
The **Studio** wraps the engine in a visual desktop environment: virtualized ontology tree with hierarchy lines, breadcrumb navigation, and connection explorer; AI chat panel with `/build` (IES-level deep) and `/sketch` (quick prototype) commands; Protégé-style property inspector; and lineage viewer.
@@ -878,7 +903,7 @@ The same tool, applied to any ontology, produces the same kind of improvement. T
## Tools
-110 tools organized by function, available as MCP tools (prefixed `onto_`) and CLI subcommands. A default build advertises all 110. Eight require an optional Cargo feature at call time: `embed`, `search`, `similarity` and `hnsw_build` need `embeddings`; `plugin_list` and `plugin_call` need `plugins`; `import-schema` and `sql-ingest` need `postgres` or `duckdb`.
+111 tools organized by function, available as MCP tools (prefixed `onto_`) and CLI subcommands. A default build advertises all 111. Eight require an optional Cargo feature at call time: `embed`, `search`, `similarity` and `hnsw_build` need `embeddings`; `plugin_list` and `plugin_call` need `plugins`; `import-schema` and `sql-ingest` need `postgres` or `duckdb`.
| Category | Tools | Purpose |
| --- | --- | --- |
@@ -947,7 +972,7 @@ flowchart TD
REST["REST API\n/api/query · /api/update\n/api/save · /api/load · /api/lineage"]
end
- subgraph ToolGroups["110 Tools"]
+ subgraph ToolGroups["111 Tools"]
direction LR
Core["Core\nvalidate · load · save · clear\nstats · query · diff · lint\nconvert · status"]
DataPipe["Data Pipeline\nmap · ingest · shacl\nreason · extend · import-schema"]
diff --git a/tests/readme_claims_test.rs b/tests/readme_claims_test.rs
new file mode 100644
index 00000000..331bab8d
--- /dev/null
+++ b/tests/readme_claims_test.rs
@@ -0,0 +1,102 @@
+//! The README's tool count must be the tool count, in every place it is stated.
+//!
+//! It drifted. The file said 110 while the server exposed 111, and it said it in four
+//! separate places, which is exactly why nobody noticed: a number repeated by hand has
+//! four chances to go stale and no mechanism to notice that it has.
+//!
+//! The house rule is that a figure next to the thing it measures must be DERIVED, never
+//! typed. A README cannot compute, so the next best thing is a test that refuses to let
+//! the two disagree. This is that test.
+//!
+//! It deliberately checks each stated claim BY ITS SURROUNDING PHRASE rather than
+//! scanning for every "N tools" in the file, because the README also contains subgroup
+//! counts that are correctly smaller than the total. A test that flagged those would be
+//! noise, and a noisy gate gets disabled.
+
+use std::path::PathBuf;
+
+fn repo() -> PathBuf {
+ PathBuf::from(env!("CARGO_MANIFEST_DIR"))
+}
+
+/// The measurement. One `#[tool(name = ...)]` attribute per exposed MCP tool.
+fn exposed_tool_count() -> usize {
+ let server = std::fs::read_to_string(repo().join("src").join("server.rs"))
+ .expect("src/server.rs must be readable");
+ server.matches("#[tool(name = ").count()
+}
+
+/// Every place the README states the TOTAL, with the phrase that identifies it as a
+/// total rather than a subgroup. Add a row here when a new one is written, and the
+/// test will hold it to the same number as the rest.
+fn total_claims(n: usize) -> Vec<(&'static str, String)> {
+ vec![
+ ("the lead paragraph", format!("**{n} tools**")),
+ ("the default-build sentence", format!("A default build advertises all {n} tools.")),
+ ("the tool-reference heading", format!("{n} tools organized by function")),
+ ("the architecture diagram", format!("ToolGroups[\"{n} Tools\"]")),
+ ]
+}
+
+#[test]
+fn the_readme_states_the_tool_count_it_actually_exposes() {
+ let n = exposed_tool_count();
+ assert!(n > 0, "no #[tool(name = ...)] attributes found; the measurement itself is broken");
+
+ let readme = std::fs::read_to_string(repo().join("README.md")).expect("README.md must exist");
+
+ let mut wrong = Vec::new();
+ for (where_, claim) in total_claims(n) {
+ if !readme.contains(&claim) {
+ wrong.push(format!("{where_}: expected to find {claim:?}"));
+ }
+ }
+
+ assert!(
+ wrong.is_empty(),
+ "src/server.rs exposes {n} tools and the README does not say so everywhere it \
+ claims a total.\n{}\n\nFix the README rather than this test: the server is the \
+ measurement and the prose is the claim. If a claim was deliberately removed or \
+ reworded, update `total_claims` in this file and say why in the commit.",
+ wrong.join("\n")
+ );
+}
+
+/// The other half, and the one that catches a HALF-DONE correction: if someone updates
+/// three of the four places, a stale number is still in the file and the test above
+/// would pass on the three it found. This fails on the leftover.
+#[test]
+fn no_stale_tool_count_survives_anywhere() {
+ let n = exposed_tool_count();
+ let readme = std::fs::read_to_string(repo().join("README.md")).expect("README.md must exist");
+
+ // The shapes a total is written in here. Any number in one of them that is not the
+ // measured count is a leftover from a partial edit.
+ let shapes: [(&str, &str); 4] =
+ [("**", " tools**"), ("advertises all ", " tools."), ("", " tools organized by function"), ("ToolGroups[\"", " Tools\"]")];
+
+ let mut stale = Vec::new();
+ for (prefix, suffix) in shapes {
+ let mut rest = readme.as_str();
+ while let Some(i) = rest.find(suffix) {
+ let head = &rest[..i];
+ let digits: String =
+ head.chars().rev().take_while(|c| c.is_ascii_digit()).collect::<Vec<_>>().into_iter().rev().collect();
+ if !digits.is_empty() && (prefix.is_empty() || head.ends_with(&format!("{prefix}{digits}"))) {
+ if let Ok(found) = digits.parse::<usize>() {
+ if found != n {
+ stale.push(format!("{prefix}{found}{suffix} (server exposes {n})"));
+ }
+ }
+ }
+ rest = &rest[i + suffix.len()..];
+ }
+ }
+
+ assert!(
+ stale.is_empty(),
+ "a tool-count claim in the README disagrees with src/server.rs:\n {}\n\nThis is what \
+ a half-finished correction looks like: some copies updated, one left behind.",
+ stale.join("\n ")
+ );
+}