Skip to main content

AI State Entity Ontology

Foundations of AI Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 28 October 2026
Audio Overview
AI STATE ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | Companion formalisation v1.0 | 2026-10-28
Authors: Mark Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/foundations-of-ai-entities/ai-state-entity-ontology.html
Status: Original companion model; not a verified transcription of the linked page.

1. PURPOSE
Represent the state of an AI entity at a particular time, distinguish observed from inferred state, and specify valid, auditable transitions across inputs, rules, boundaries and knowledge.

2. ENTITY MODEL
AIStateEntity = (state_id, owner_id, timestamp, variables, mode, provenance, confidence, version)
StateVariable = (name, type, value, unit?, validity_interval?, evidence?)
StateTransition = (source_id, event, guard, operation, target_id, justification)
Entity classes: AI system, model, agent, component, process, memory, environment, state, transition, observation, constraint, policy.
Relationships: hasState, precedes, transitionsTo, observedBy, derivedFrom, constrainedBy, ownedBy, supersedes.

3. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: inputs, observations and environmental context.
R_t: permitted transformation and inference rules.
B_t: operational, safety, resource and epistemic boundaries.
K_t: versioned knowledge, memory and provenance.
E_t = expand(I_t, R_t)
V_t = {x in E_t : satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
S_(t+1) = update(S_t, x*_t, observed_event, evidence)
If V_t is empty, emit a no-valid-transition state and retain S_t; never manufacture a valid result.

4. TRANSITION ALGEBRA
T: State × Event × Rules × Boundaries -> State | Rejection
T(S,e,R,B) = S' only if guard(e,S) and invariants(S') and policyAllows(e,B).
Transition categories: initialise, observe, infer, update, suspend, resume, terminate, rollback.
Maintain immutable event history; a mutable current-state pointer may reference the latest validated state.

5. INVARIANTS
- state_id and owner_id are nonempty; versions are ordered.
- Every transition links to an existing source state.
- Each changed variable has a declared operation and provenance.
- Type, unit, scope and validity interval are checked before comparison.
- Inferred states must not be labelled directly observed.
- Conflicting evidence is preserved and flagged, not silently overwritten.
- Security and policy boundaries remain enforced through recursion.

6. RECURSIVE ENGINE
function ResolveState(state, event, depth, visited):
  if depth >= max_depth: return STOP_DEPTH
  if (state.id, event.id) in visited: return STOP_CYCLE
  candidates = apply_rules(state, event)
  valid = filter(candidates, boundary_and_invariant_checks)
  if valid is empty: return REJECT_WITH_REASON
  chosen = rank(valid, evidence_quality, confidence, cost)
  append_transition_record(state, event, chosen)
  return chosen

7. INFERENCE RULES
R1: Observed event with verified provenance may create an observed state update.
R2: Derived variable requires its dependency chain and derivation rule.
R3: Incompatible variable values trigger a conflict state pending resolution.
R4: A newer valid version supersedes, but does not erase, the earlier version.
R5: A failed boundary check prevents transition execution.
R6: A missing observation cannot be promoted to a measured value.
R7: Recursive traversal terminates on visited-state repetition or depth limit.

8. TRI-MAPPING
Semantic: AIStateEntity -> state of a named AI entity with typed properties.
Structural: node(State) + edge(transition/provenance/constraint).
Operational: input event -> guard -> transformation -> validation -> committed version.

9. DIAGRAM
[AI Entity] --hasState--> [S_t]
                           |
                      [Input/Event]
                           v
                    [Rules + Guards]
                           v
                    [Boundary Check]
                       /       \
                    reject    accept
                      |          |
                  [Audit]     [S_t+1]
                                  |
                           [Provenance Log]

10. MAPPING TABLE
Concept | Semantic identity | Graph representation | Execution action
State | Snapshot of entity properties | State node | read/validate
Event | Trigger or observation | Event node | dispatch
Rule | Permitted transformation | Rule node | evaluate
Boundary | Constraint or policy | Constraint edge | enforce
Transition | Versioned state change | Directed edge | commit/reject
Evidence | Support for assertion | Provenance node | verify

11. VALIDATION
Check schema completeness, type integrity, unique IDs, version monotonicity,
transition referential integrity, provenance chain, constraint satisfaction,
cycle/depth bounds, and reproducibility of deterministic rule applications.
Uncertainty must be carried explicitly rather than represented as certainty.

12. CONDITIONAL EXECUTION GUARANTEE
For finite candidate sets, bounded recursion, total validation predicates and
available provenance records, the engine terminates with a validated successor
or a reasoned rejection. This is a specification-level conditional property,
not a proof of correctness for an arbitrary implementation or AI model.

13. AI SEARCH FLOW
QUERY -> IDENTIFY_ENTITY -> RESOLVE_STATE_VERSION -> RETRIEVE_EVIDENCE
-> EXPAND_TYPED_RELATIONSHIPS -> APPLY_RULES -> FILTER_BOUNDARIES
-> RANK_SUPPORTED_CANDIDATES -> RETURN_STATE_AND_PROVENANCE.
Return: canonical state ID, owner, version, timestamp, observed/inferred status,
confidence basis, source evidence, relevant transitions and unresolved conflicts.

14. UPDATE MODEL
Any ontology revision increments schema_version; migration rules map old
variables to new variables without destroying historical snapshots. Record
change author, timestamp, reason, and impacted state identifiers.

15. CITATION
Higgins, Mark; Sky — Recursive AI. AI State Entity Ontology — Flow Algebra,
Semantic Library companion formalisation, 2026.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ