causalontology-py
The second implementation of the Causalontology standard — the proof of language independence. (The first is the PrologAI reference implementation.)
Zero dependencies — Python standard library only:
| Module | Implements |
|---|---|
causalontology.canonical |
RFC 8785 (JSON Canonicalization Scheme) serialization, identity-bearing field filtering, Secure Hash Algorithm 256-bit (SHA-256) content-addressed identify() |
causalontology.ed25519 |
pure-Python Ed25519 (RFC 8032), verified against the RFC's known-answer test |
causalontology.signing |
record-level sign_record() / verify_record() over canonical identity-bearing bytes |
causalontology.schema |
validation against the twenty-one JSON Schemas in spec/schema/ |
causalontology.semantics |
the 25 semantic rules: temporal admissibility (fixed constants), formal conflict, refinement validity, bridged reachability, stratal classification, the skip decision, enrichment field/shape rules, and the token-tier coherence checks |
causalontology.store |
an in-memory conformant store: idempotent immutable puts, signed add-only records, materialized enrichment views with contributors, retraction and succession lineage, the resolve minimum, the deterministic cycle-breaking view rule, and the stigmergy gaps() read |
Conformance
$ python3 tests/run_conformance.py
...
137/137 vectors passed
causalontology-py is CONFORMANT to the suite (vectors frozen at specification 4.0.0).
The vectors are frozen at specification 4.0.0 (2026-07-22; 137 vectors, V01–V137): they carry concrete identifiers, real keys, and a real verifying signature. The harness's old normalization now simply passes frozen values through.
Thirty-second taste
from causalontology import identify, InMemoryStore, keypair_from_seed, sign_record
import hashlib
store = InMemoryStore()
press = store.put({"type": "occurrent", "label": "press_button", "category": "action"})
light = store.put({"type": "occurrent", "label": "light_on", "category": "state_change"})
claim = store.put({"type": "causal_relation_object", "causes": [press], "effects": [light]})
print(store.gaps("missing_field")) # the degenerate claim is a visible invitation
sk, source = keypair_from_seed(hashlib.sha256(b"alice").digest())
store.put_record(sign_record({"type": "assertion", "about": claim,
"source": source, "evidence_type": "imported",
"confidence": 0.5,
"timestamp": "2026-07-13T00:00:00Z"}, sk))
License: "The attribution always; no profit, no problem license." — see the
repository LICENSE and NOTICE.
Metadata
Release files for causalontology 4.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| causalontology-4.0.0-1-py3-none-any.whl | Python 3 | none | any | Details for causalontology-4.0.0-1-py3-none-any.whl |
Release files / causalontology-4.0.0-1-py3-none-any.whl
| Download URL | causalontology-4.0.0-1-py3-none-any.whl |
|---|---|
| Size | 45.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45ff75018efba09ea8f86316b16b8beb1a12ed33695b86b5208ede17943e790d
|
|
BLAKE2b-256 checksum How to use checksums |
8bf7542d5deddab1a42cd4b90f500b339700f1539ff9afb677f8ae1573030ed5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for causalontology 4.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.