causalontology/causalontology
Composer 安装命令:
composer require causalontology/causalontology
包简介
The PHP binding of the Causalontology standard - reified causation as a language-neutral standard and shared commons. Bundled sodium/hash extensions only; passes all 38 frozen conformance vectors. (Sources under bindings/php/; this root manifest exists because Packagist reads the repository root, li
README 文档
README
Benchmark scores by the reference implementation, PrologAI, on the public training sets — pure symbolic induction, no LLM.
What do these badges mean? — a plain-language guide to every ribbon (click to open)
Each badge above is a claim, and every claim deserves a plain explanation. Here they are, row by row, written for a newcomer. (The colors follow a uniform code: gold marks the highest honors, dark red is the field color, crimson marks distinction, and the ambers and bronzes mark the standard's machinery.)
Row 1 — The Honors
-
ARC-AGI-1 | 400/400=100%— ARC-AGI stands for the Abstraction and Reasoning Corpus for Artificial General Intelligence: a famous series of public tests designed to measure whether a machine can genuinely reason about puzzles it has never seen, rather than repeat patterns it memorized. This badge says that Causalontology's reference implementation, PrologAI, solved all 400 of 400 tasks in the first benchmark's public training set — a perfect score — using pure symbolic induction: readable logic rules discovered from the puzzle examples, with no Large Language Model (no LLM — the text-predicting technology behind modern chatbots) involved at all. The badge links to PrologAI so you can inspect the work. -
ARC-AGI-2 | 120/120=100%— the same story for the second, harder generation of the benchmark: all 120 of 120 public tasks solved, a perfect score, by the same glass-box symbolic methods. (Honesty note, exactly as the fine print says: both scores are on the public training sets — the openly published task collections — stated precisely and without inflation.) -
WORLD'S FIRST | REIFIED CAUSATION ONTOLOGY STANDARD— the centerpiece claim. To reify means to turn an idea into a thing you can hold, name, and examine — here, turning "A causes B" from a bare arrow into a full object carrying its timing, its strength, its conditions, and its evidence. An ontology is an organized inventory of what exists and how things relate. A standard is a published specification anyone can implement, in any programming language, with a shared test suite deciding what counts as correct. This badge claims Causalontology is the first to deliver all three in one: causation, made into first-class objects, as an open standard.
Row 2 — The Standard
-
CONFORMANCE VECTORS | 38— a conformance vector is a published test case: an input and the exact result a correct implementation must produce. There are 38 of them in this repository, and the rule is simple: an implementation is Causalontology-conformant if and only if it passes every one. This is how a Python version, a Java version, and a Prolog version can all be guaranteed to agree without sharing a single line of code. -
OBJECT KINDS | 8— everything in Causalontology is one of exactly eight kinds of object: four content kinds (the occurrent — a happening; the Causal Relation Object — a causal claim; the continuant — an enduring thing; the realizable — a disposition, function, or role) and four provenance kinds (the assertion, enrichment, retraction, and succession — the signed records saying who claims, adds, withdraws, or rotates what). Eight kinds, no exceptions — a small, learnable vocabulary for all causal knowledge. -
LOCKED DECISIONS | 27— the specification records 27 design decisions as locked: settled on purpose, in writing, so builders can proceed without the ground shifting under them. Changing one requires a formal, versioned process — not a quiet edit.
Row 3 — The Foundations
-
CANONICAL | RFC 8785— an RFC (Request for Comments) is a published internet standard. RFC 8785 defines one exact, byte-for-byte way to write a piece of JSON data, so that the same information always produces the same bytes regardless of who wrote it or how they formatted it. Causalontology uses it so that identity can never depend on formatting accidents. -
IDENTITY | SHA-256— SHA-256 (the Secure Hash Algorithm, 256-bit) is a mathematical fingerprint function: feed it any content and it produces a unique fixed-length code, and any change to the content changes the code. In Causalontology, an object's identity IS the fingerprint of its content — which means two strangers anywhere on Earth who express the same causal claim automatically produce the same identifier, and their contributions merge with no coordinator. -
SIGNED | ED25519— Ed25519 is a fast, widely trusted digital signature scheme. A signature is mathematical proof that a specific keyholder — and nobody else — produced a record. In Causalontology every assertion, every added word, every retraction is signed, so every piece of knowledge in the commons has a verifiable author, and forging someone else's contribution is impossible. -
JSON-LD | LINKED DATA— JSON-LD (JSON for Linked Data) is a way of writing ordinary JSON so that it is simultaneously valid linked data — the web-standard format that lets knowledge from different sources connect into one global graph (the technology family behind Wikidata). Causalontology data speaks that language natively, so it can plug into the wider knowledge ecosystem for free.
Row 4 — The Character
-
GLASS BOX | ALWAYS— a black box gives you an answer but hides its reasons; a glass box lets you see every step. Everything here is inspectable: every claim traces to a named rule and a signed author, and you can always ask "why?" and get a readable answer. This is the project's deepest commitment. -
STIGMERGY | BUILT IN— stigmergy is coordination through the shared environment itself: the way a half-built wall shows the next worker exactly where the next brick goes. In Causalontology, incomplete knowledge is visible and queryable — a claim missing its timing, a term nobody has defined, two claims that contradict — so the store itself continuously announces what most needs doing next, and any contributor (human or machine mind) can ask for the most valuable gap and fill it. -
EVIDENCE | ACTING > WATCHING— Causalontology grades its evidence, and the top grade is intervention: the source acted and observed what followed, like a child flipping a switch rather than staring at it. Acting breaks the ambiguity that haunts pure observation — a coincidence in the data cannot survive your own hand on the switch. Every piece of knowledge carries its evidence grade, so consumers can weigh doing above watching.
Row 5 — The Lineage
-
FLAGSHIP APPLICATION | MENTOVA PROLOGAI— PrologAI is the glass-box cognitive architecture that serves as Causalontology's reference implementation, and Mentova is the synthetic mind built on it — the first full application of this ontology, and one day the first machine mind to read the commons' gaps and contribute causal knowledge back. The badge links to Mentova. -
BOOK | AGI'S MISSING LINK— this repository is the data-structure layer of the book Causalontology: AGI's Missing Link, whose thesis is that the component most conspicuously missing from today's AI is an explicit, learnable, inspectable model of cause and effect, acquired by acting on the world. The complete, lay-readable canon is right here:Causalontology_Standalone_Design_v13.txt. -
LICENSE | ATTRIBUTION ALWAYS; NO PROFIT, NO PROBLEM— the project's license, in its own words: credit the source always, and using it without profit is never a problem. It is the friendly name for the Apache License 2.0 text (seeLICENSEandNOTICE), one license covering everything here — the code, the data, the specification, and the architecture.
Causalontology
A verb-first noun-hosting ontology — reality is what happens, and things are its participants. A language-neutral standard and a shared global commons for reified causation — the data-structure layer of the book Causalontology: AGI's Missing Link.
The World's First
Causalontology's identity, stated from five angles — each the same claim, that this is a first-of-its-kind synthesis:
Reification / Timing / Learning. "Causalontology is the world's first synthesis of reified causal representation, temporal-mechanistic modeling, and interventional learning into a single glass-box unified ontology."
Noun / Verb Governance. "Causalontology is the world's first synthesis of a process-first causal calculus, a continuant noun backbone, and a realizable hinge between them — one foundational ontology governing the verbs and hosting the nouns."
The Bridge. "Causalontology is the world's first synthesis of symbolic causal reasoning, the philosophy of process, and embodied interventional learning, unified in a single glass-box ontology."
Scholarly Framing. "Causalontology is the world's first synthesis of process ontology, causal modeling, and constructivist learning into a single foundational ontology."
Succinctly. "Causalontology is the world's first synthesis of reification, temporal causation, and interventional learning in one unified, glass-box ontology."
And this repository adds a further first of its own: to our knowledge, the first specification to deliver reified, provenance-signed causation as a language-neutral standard with a shared, stigmergic commons — offered, glass-box style, with its evidence: the specification, the conformance vectors, and the running implementations, all inspectable.
Every term above is explained for a newcomer in the master document: Causalontology_Standalone_Design_v13.txt — the complete, self-contained canon of this repository.
What is Causalontology?
Causalontology is a verb-first noun-hosting ontology. Verb-first: the atomic building block is the occurrent — the happening — and the fundamental unit reifies the master verb, causes, itself; even knowing is verb-first, because knowledge enters by acting (intervention) rather than by watching. Noun-hosting: things (continuants) are first-class citizens, but they are understood through what they do and what happens to them — Causalontology governs the verbs and hosts the nouns, with realizable entities as the hinge between them.
Causalontology's purest form is a specification, not a program. It separates the data structure of causation and its rules (language-neutral) from any implementation (twenty exist, from Prolog to Kotlin/Native). Two familiar pictures, held together:
- A standard — like a W3C or IETF specification: a normative document plus a conformance test suite, with independent implementations that all agree because they all pass the same tests.
- A commons — like Wikidata, specialized to causation: one shared, world-wide, provenance-first store of causal knowledge that developers everywhere (and autonomous minds) draw from and contribute to.
The reference implementation is PrologAI, a glass-box cognitive architecture, driving the synthetic mind Mentova.
The eight kinds of thing
Four content kinds — pure, immutable, content-addressed (SHA-256 over RFC 8785 canonical bytes):
| Kind | Prefix | What it is |
|---|---|---|
| Occurrent | occ: |
a process or event type (a verb) — the vocabulary of causes and effects |
| Causal Relation Object (CRO) | cro: |
the fundamental unit: a reified causal claim — causes, effects, mechanism, temporal window, modality, context, refines lineage |
| Continuant | cnt: |
a thing that endures (a noun) |
| Realizable entity | rlz: |
a disposition, function, or role — the hinge between nouns and verbs |
Four provenance kinds — signed (Ed25519), add-only records:
| Kind | Prefix | What it says |
|---|---|---|
| Assertion | ast: |
who claims it, on what evidence (intervention > observation), how strongly |
| Enrichment | enr: |
who added which alias, participant, or taxonomy link — every word has an author |
| Retraction | ret: |
a source's honest withdrawal of its own record — history never erased |
| Succession | suc: |
key rotation with lineage |
The load-bearing decision: content is separated from provenance, uniformly. The same claim from any number of sources is one object; contradictory claims coexist, each with signed provenance; trust is a consumer-chosen policy, never forced consensus. The whole store merges by set union — a CRDT by construction.
Quickstart (30 seconds)
{ "type": "occurrent", "label": "press_button", "category": "action" }
{ "type": "occurrent", "label": "light_on", "category": "state_change" }
{ "type": "cro", "causes": ["occ:press_button"], "effects": ["occ:light_on"] }
That third document — a degenerate CRO, just cause and effect — is already valid, and the store lists it as a gap inviting enrichment (GET /gaps?kind=missing_field). Someone (or some mind) later refines it with a temporal window and modality, and the gap visibly closes. That is stigmergy: the structure's own partiality guides the next contribution. Full walkthrough: examples/quickstart.md.
Install (one line, your language)
| Language | Command |
|---|---|
| Python | pip install causalontology |
| JavaScript / TypeScript | npm install causalontology (typings included) |
| Rust | cargo add causalontology |
| Java | io.github.ai-university-aiu:causalontology:1.0.0 (Maven Central) |
| Swift | .package(url: "https://github.com/ai-university-aiu/causalontology", from: "1.0.0") |
| Go | go get github.com/ai-university-aiu/causalontology/bindings/go@v1.0.0 |
All published at specification 1.0.0 (vectors frozen 2026-07-13). Reach, stated precisely: Kotlin, Scala, Clojure, and Groovy consume the Java artifact from Maven Central as-is; Deno and Bun consume the npm package directly; and any WebAssembly host (browsers, edge workers, wasmtime embeddings) can use the WASM core attached to the v1.0.0 release — so six direct installs serve ten-plus languages in practice. Nine further implementations — C#, Ruby, PHP, Dart, Elixir, Haskell, Perl, R, and Lua — are conformant in the repository (registry publications pending the owner's accounts; see PUBLISHING.md). C++, Zig, Julia, and Kotlin/Native joined in the second wave — twenty implementations now stand. Anything still missing (OCaml, Scala Native, Fortran, COBOL if you dare, ...) remains the open invitation: the 38 frozen vectors are the gate. Details and status: PUBLISHING.md.
Repository layout
causalontology/
Causalontology_Standalone_Design_v13.txt the canon (complete, lay-readable)
spec/ normative core, identity, semantics, provenance,
store, safety; schema/ = 8 JSON Schemas + JSON-LD
context + Protobuf + the OWL mapping (BFO/RO/PROV)
conformance/ the 38 FROZEN vectors (specification 1.0.0) + the
freeze tool; the meaning of "correct"
bindings/ python · javascript (+ TypeScript typings) · rust
(+ the WebAssembly core) · java · swift · go —
all conformant; PrologAI is the reference
store/server/ Tier A store (live), SPARQL subset, N-Triples
export, reputation, Tier B federation, Tier C
offline replication + the test suites
store/stigmergy/ the contribution dashboard (served at /dashboard)
examples/ the quickstart + the Mentova gardener (the first
synthetic mind contributing to the commons)
.github/workflows/ 8 CI gates: every implementation, every push
archive/ superseded editions of versioned documents
GOVERNANCE.md · PUBLISHING.md · LICENSE · DATA_LICENSE · NOTICE
Conformance
An implementation is Causalontology-conformant if and only if it passes every vector in conformance/vectors/ for the specification version it declares. That single rule is how twenty implementations in twenty languages — Prolog, Python, JavaScript, Rust, Java, Swift, Go, C#, Ruby, PHP, Dart, Elixir, Haskell, Perl, R, Lua, C++, Zig, Julia, and Kotlin/Native — agree without sharing a line of code — down to the length of a month (2,629,746 seconds) and the ranking of a resolve().
Roadmap — built, proven, and shipped
- Step 1 — publish the specification, schemas, and conformance vectors (this repository)
- Step 2 —
causalontology-py: the second implementation — 38/38 conformance vectors pass; language independence is proven - Step 3 — the Tier A store: the HTTP binding is live — signature verification, materialized views, quarantine, retraction/lineage, pagination, auth; 20/20 end-to-end smoke checks pass
- Step 4 — the stigmergy layer: all six gap kinds live (including
demand_supplyfrom real read telemetry), value-rankedGET /gaps, and the contribution dashboard at/dashboard— the commons guides its own growth; the MVP is complete - Step 5 — the whole beyond-MVP program:
- JavaScript SDK — the third verified implementation: 38/38 vectors pass locally, zero dependencies, byte-identical signatures with Python
- Java SDK — 38/38 vectors pass in CI (JDK 21) — complete port, JDK standard library only (workflow)
- Swift SDK — 38/38 vectors pass in CI (Swift 5.10) — complete port, swift-crypto for the primitives
- SPARQL endpoint —
GET|POST /sparql(documented SELECT subset) +GET /export/triples(N-Triples) + the OWL mapping to BFO / RO / PROV - Federation (Tier B) —
GET /sync/export+POST /sync/pull: two live stores converge by signed set-union; 11/11 checks - Decentralization (Tier C) —
replicate.py: offline bundles, order-independent merge (the CRDT laws proven 8/8), tamper evidence from content addresses and signatures alone - Reputation —
GET /reputation?source=: glass-box, computed from the signed history, succession-aware - Mentova gardening the commons — a glass-box SWI-Prolog mind reads
/gaps, intervenes (its own hand on the switch), induces the missing fields, signs with Ed25519, contributes, and the gap closes: 11/11 checks — the first synthetic mind gardening the commons - Reserved for a future MAJOR batch, per governance: the token-level (
tok:) kind and the bounty layer
- Step 6 — the systems tier:
- Rust SDK — the fourth locally-verified implementation: 38/38 vectors pass (vetted primitives: sha2, ed25519-dalek)
- WebAssembly core — the Rust crate compiles unchanged to
wasm32(schemas embedded, no filesystem); 6/6 cross-checks in Node prove it byte-identical with the JS binding — one audited core for every host - TypeScript — hand-written strict typings over the verified JS binding (no logic duplication, no drift); tsc-verified locally
- Go SDK — zero dependencies (Go's standard library carries Ed25519 natively); verified by the conformance CI (no local Go toolchain)
- Contributed implementations welcome — the 38 vectors are the gate (C#, Ruby, PHP, Kotlin, ...)
- Wave two — C++, Zig, Julia, Kotlin/Native: four more conformant implementations, ALL verified on the authoring machine (C++ with a hand-built bignum, 361/361 cross-checks; Zig on its standard-library crypto; Julia in pure stdlib; Kotlin/Native hand-building JSON + SHA-2 + bignum + Ed25519 with no stdlib crypto at all, 38/38 on the binary's first run) — twenty implementations in twenty languages, twenty-one CI gates
- The nine-language wave — C#, Ruby, PHP, Dart, Elixir, Haskell, Perl, R, Lua: nine more conformant implementations in one wave (four verified on the authoring machine — including pure-Lua Ed25519 over a hand-built bignum layer — five gated in CI), taking the standard to sixteen implementations in sixteen languages, all passing the same 38 frozen vectors under seventeen CI gates
- The ceremony — specification 1.0.0: the vector freeze pinned concrete bytes into all 38 vectors (real identifiers, real keys, a real verifying signature); every manifest bumped to 1.0.0; tagged
v1.0.0with a GitHub Release carrying the built artifacts; SwiftPM and Go modules live via tags; and all seven distribution channels live the same day — crates.io, PyPI, npm, Maven Central, SwiftPM, Go modules, and the GitHub Release (PUBLISHING.md)
Governance
Semantic Versioning; the conformance suite versioned in lock-step; extending any closed enumeration is a MAJOR change; releases gated in CI on the vectors; an open change process with conformance impact statements. See GOVERNANCE.md.
Contributing
Before the public launch, contributions land through the change process in GOVERNANCE.md. The contribution model of the commons itself is stigmergic: ask the store for the most valuable gaps, close one, sign your work. Vocabulary discipline: resolve before you mint.
License
"The attribution always; no profit, no problem license." — one license for everything in this repository and its commons: the code, the data, the specification, and the architecture. It is the friendly name for the Apache License 2.0 text, the same license carried by PrologAI and Mentova: attribution (the NOTICE file) is always required, and use without profit is never a problem. The data license (DATA_LICENSE) carries the same terms, by the owner's decision of 2026-07-13.
Citation
D. R. Dison. Causalontology: AGI's Missing Link — the Standalone Standard and the Shared Commons, Version 11 (Release Edition), specification 1.0.0. AI University (AIU), 2026. github.com/ai-university-aiu/causalontology
Author
D. R. Dison — Founder of AIU (Artificial Intelligence University), Creator and Owner of PrologAI and Mentova. ORCID 0009-0001-9246-5758 · linkedin.com/in/d-r-dison
Related projects
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-07-14
