Skip to main content

Recursive AI Entity Graph Ontology

AI Semantic Library Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
RECURSIVE AI ENTITY GRAPH — FLOW ALGEBRA
Semantic Library | AI Semantic Library Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Companion formalisation | 05 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-semantic-library-entities/recursive-ai-entity-graph-ontology.html
Status: Independent companion formalisation; page's embedded rules were not available in retrieved text.

01. PURPOSE
Represent a typed, provenance-aware AI entity graph that can recursively expand, validate, reconcile and update relationships while preserving identity and safety constraints.

02. ENTITY MODEL
G_t = (N_t, E_t, T, P_t, V_t)
N_t: canonical entity nodes; E_t: directed typed edges; T: ontology/type system.
P_t: provenance and evidence records; V_t: versioned validity and confidence metadata.
Each node n = (id, type, attributes, aliases, version, validity, evidence).
Each edge e = (source, predicate, target, context, evidence, validity).

03. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current graph facts and candidate observations.
R_t: inference, traversal, equivalence and update rules.
B_t: boundaries on scope, recursion, access and confidence.
K_t: knowledge, canonical identities, ontology and provenance.
Expand: E_t = expand(I_t, R_t).
Validate: V_t = {x in E_t | conforms(x, B_t, K_t)}.
Select: x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t).
Update: I_{t+1} = update(I_t, x*_t, evidence_t).
The argmax is a selection convention, not a claim that probabilities are inherently calibrated.

04. CORE RELATIONSHIPS
ENTITY --HAS_TYPE--> CLASS
ENTITY --HAS_ALIAS--> LABEL
ENTITY --RELATED_TO--> ENTITY
ENTITY --DERIVED_FROM--> SOURCE
ENTITY --OBSERVED_IN--> CONTEXT
ENTITY --HAS_VERSION--> VERSION
ENTITY --SUPPORTED_BY--> EVIDENCE
ENTITY --HAS_STATE--> STATE
EDGE --JUSTIFIED_BY--> INFERENCE_RULE
GRAPH_VERSION --SUPERSEDES--> GRAPH_VERSION

05. RECURSIVE GRAPH EXPANSION
Frontier_0 = seed_nodes(query, G_t).
Visited_0 = empty_set.
For depth d = 0 ... D_max:
  Candidates_d = neighbours(Frontier_d, permitted_predicates).
  Novel_d = Candidates_d minus Visited_d.
  Valid_d = validate_type_identity_evidence(Novel_d, B_t, K_t).
  Frontier_{d+1} = rank_and_limit(Valid_d, budget_d).
  Visited_{d+1} = Visited_d union Frontier_d.
Stop on empty frontier, fixed point, resource limit, conflict or policy boundary.
Never treat cycles as evidence of additional independent support.

06. CANONICAL RESOLUTION
resolve(a,b) requires compatible entity types, identity attributes, context and evidence.
Similarity alone does not establish identity.
If evidence insufficient: preserve separate nodes and add POSSIBLE_MATCH edge.
If identity verified: map aliases to canonical ID; retain source identifiers and history.
Conflicting identity evidence creates a review state rather than silent merging.

07. INFERENCE RULES
R1: Typed edge insertion requires domain and range compatibility.
R2: Every derived assertion records its input edges and rule identifier.
R3: Transitive closure applies only to predicates explicitly declared transitive.
R4: Symmetry and inverse rules apply only when specified in ontology T.
R5: A derived fact inherits applicable access and temporal restrictions.
R6: A contradiction blocks automatic promotion to verified status.
R7: New evidence may revise confidence and invalidate dependent conclusions.
R8: No assertion may claim certainty solely from recursive repetition.

08. TEMPORAL AND VERSION SEMANTICS
Each assertion may carry valid_from, valid_until and recorded_at.
Do not conflate historical validity with present validity.
Version transitions: draft -> validated -> published -> superseded/retired.
Updates append a traceable change record; destructive replacement is disallowed by default.
Rollback restores a prior graph version without erasing the intervening audit trail.

09. CONFIDENCE AND UNCERTAINTY
confidence(a) = calibrated_estimate(evidence, source_quality, conflict, context).
Unknown evidence quality => confidence remains uncalibrated.
Dependent sources must not be counted as independent corroboration.
Unresolved ambiguity produces multiple candidate mappings with explicit uncertainty.

10. TRI-MAPPING
Human description -> semantic entity and relation representation.
Semantic representation -> typed formal graph and inference constraints.
Formal graph -> human-readable explanation with sources and limitations.
Round-trip consistency is tested; semantic loss is reported rather than concealed.

11. EXECUTION PATHWAY
INPUT -> PARSE -> RESOLVE -> TYPE_CHECK -> EXPAND -> FILTER -> INFER
-> VALIDATE -> RECORD_PROVENANCE -> COMMIT_VERSION -> EXPLAIN -> OUTPUT
On failure: quarantine candidate -> record error -> request evidence or rollback.

12. VALIDATION INVARIANTS
INV-01: Every committed node has a stable canonical identifier.
INV-02: Every committed edge has known endpoints and a declared predicate.
INV-03: All accepted edges satisfy ontology domain/range constraints.
INV-04: Every derived assertion has a reproducible derivation record.
INV-05: Recursive traversal terminates within configured depth and budget.
INV-06: Access restrictions propagate through derived results.
INV-07: Superseded facts remain recoverable with their historical context.
INV-08: A rejected candidate does not silently mutate the graph.

13. MINI EXECUTION EXAMPLE
Input: A relates_to B; B relates_to C.
Check: relates_to is not declared transitive.
Result: do not infer A relates_to C automatically.
If ontology declares a specific transitive predicate P and both edges use P,
then infer P(A,C), recording rule, evidence lineage and temporal scope.

14. CONDITIONAL EXECUTION GUARANTEE
Given finite input, deterministic rule ordering, bounded recursion, valid schemas
and successful storage operations, execution terminates with either:
(a) a versioned graph delta and validation trace; or
(b) an explicit rejection/error record without committing invalid changes.
This is a design-level conditional guarantee, not proof of correctness of all inferences.

15. OUTPUT CONTRACT
Return canonical IDs, accepted and rejected edges, provenance, graph version,
confidence status, conflicts, recursion depth, validation results and explanation.

16. LICENCE AND ATTRIBUTION
Open research companion; retain author attribution and citation to the source URL.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ