FLOW ALGEBRA — ARTIFICIAL INTELLIGENCE ENTITY ONTOLOGY
Semantic Library | Companion formalisation | Version 1.0 | 2026-10-28
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/foundations-of-ai-entities/artificial-intelligence-entity-ontology.html
Authors: Kireth Research; Sky — Recursive AI (companion formalisation)
Status: Conceptual specification; not a verbatim extraction or verified implementation.
1. PURPOSE
Represent AI systems as identifiable entities with capabilities, models, inputs, outputs, constraints, provenance, and state transitions. Enable bounded graph traversal and evidence-aware reasoning without conflating AI entities with people or asserting consciousness.
2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current entity identity, observations, context and inputs
R_t: typed relations and transition rules
B_t: operational, safety, provenance and resource boundaries
K_t: accumulated, versioned knowledge and evidence
Expand E_t = expand(I_t,R_t)
Validate V_t = {x in E_t | constraints(x,B_t) and supported(x,K_t)}
Select a_t = argmax[x in V_t] P(x | I_t,R_t,B_t,K_t)
Update I_(t+1) = transition(I_t,a_t); K_(t+1) = record(K_t,a_t,evidence)
If V_t is empty: abstain, request evidence, or return unresolved.
3. ENTITIES
AIEntity(id, name, type, version, provenance)
AIModel(id, architecture, training_context, limits)
AIAgent(id, goals, permissions, environment)
Dataset(id, origin, licence, quality)
Input(id, modality, timestamp, source)
Output(id, modality, timestamp, confidence)
Capability(id, task, benchmark, scope)
Constraint(id, category, predicate)
Observation(id, method, value, uncertainty)
Evidence(id, claim, source, method, date)
4. TYPED RELATIONS
instance_of(AIEntity, EntityClass)
uses_model(AIEntity, AIModel)
consumes(AIEntity, Input)
produces(AIEntity, Output)
trained_on(AIModel, Dataset) [only if evidenced]
has_capability(AIEntity, Capability)
bounded_by(AIEntity, Constraint)
observed_by(AIEntity, Observation)
supported_by(Claim, Evidence)
derived_from(Output, Input)
supersedes(VersionNew, VersionOld)
interacts_with(AIEntity, AIEntity)
5. PATHWAYS
P1 Identity: identifier -> type -> version -> provenance -> canonical entity.
P2 Function: input -> model/agent -> bounded inference -> output -> validation.
P3 Evidence: claim -> supporting observations -> provenance -> confidence -> status.
P4 Change: old state -> trigger -> transition -> new state -> audit trail.
P5 Composition: component entities -> typed links -> composite system; do not transfer capabilities without evidence.
6. RECURSIVE ENGINE
function traverse(entity, depth, visited):
if depth <= 0 or entity in visited: return []
visited.add(entity)
edges = validated_relations(entity)
return edges + union(traverse(edge.target, depth-1, visited) for edge in edges)
Termination requires finite depth, cycle detection, and resource budget.
7. INFERENCE RULES
R1 If uses_model(A,M) and verified_capability(M,C), infer candidate_capability(A,C), not proven_capability.
R2 If supported_by(claim,evidence) and evidence is independently validated, increase assessed support; do not assign a fabricated numerical probability.
R3 If provenance is absent, mark claim unverified and block canonical merge.
R4 If two names share a verified persistent identifier and version scope, resolve to one canonical record; otherwise retain ambiguity.
R5 If a constraint forbids an action, reject it regardless of candidate score.
R6 If a model version changes, invalidate dependent claims until rechecked.
8. TRI-MAPPING
Natural language: 'An AI agent uses a language model to answer a query.'
Entity graph: Agent --uses_model--> Model; Agent --consumes--> Query; Agent --produces--> Response.
Flow algebra: I_t=(agent,query); R_t=model use; B_t=permissions; K_t=grounded evidence; validate response then update.
9. DIAGRAM
[Input] -> [AI Entity] -> [Model/Rules] -> [Candidate Output]
| | |
[Identity] [Boundaries] [Validation]
| | |
+----------> [Evidence/Provenance]
|
[State Update] -> (repeat)
10. MAPPING TABLE
AI Entity | canonical graph node | AIEntity
Model | model component | AIModel
Agent | acting subsystem | AIAgent
Knowledge | supported assertions | K_t
Rules | permitted relations | R_t
Boundaries | constraints | B_t
Observations | measured evidence | Input/Evidence
11. VALIDATION
- Every entity has a stable identifier and declared type.
- Every edge has a defined predicate, domain and range.
- Evidence is linked to source, method, date and scope.
- Versioned claims preserve historical records.
- No identity equivalence inferred from names alone.
- No model performance, autonomy or sentience claims without evidence.
- Unknown, contested and missing information remain explicit.
- Recursive traversal terminates within declared limits.
12. CONDITIONAL EXECUTION GUARANTEE
For finite graphs, a fixed traversal-depth limit and a bounded evaluation budget, the reference traversal terminates. Semantic correctness depends on the supplied ontology, evidence, constraints and implementation. No universal correctness or scientific validation is claimed.
13. AI SEARCH FLOW
QUERY -> NORMALISE -> ENTITY CANDIDATES -> CANONICAL RESOLUTION ->
TYPED RELATION TRAVERSAL -> EVIDENCE FILTER -> BOUNDARY CHECK ->
RANK SUPPORTED ANSWERS -> RETURN WITH PROVENANCE / ABSTAIN.
14. UPDATE MODEL
On new evidence: append provenance record; recompute affected confidence and relations; increment version; retain audit history; never silently overwrite disputed assertions.
15. CITATION
Source ontology: Kireth Research, Artificial Intelligence Entity Ontology (URL above).
Companion Flow Algebra: Kireth Research / Sky — Recursive AI.
Download Code
Copy to Clipboard