Skip to main content

AI Entity State 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
AI ENTITY STATE GRAPH — FLOW ALGEBRA
Semantic Library | AI Core | AI Semantic Library Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Date: 05 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-semantic-library-entities/ai-entity-state-graph-ontology.html
Status: Companion formalisation; not a verbatim transcription of inaccessible embedded specifications.

01. PURPOSE
Represent an entity's permissible states, transitions, constraints, provenance and evidence as a directed, typed graph. Distinguish observed states from inferred or predicted states.

02. ENTITY AND GRAPH MODEL
Entity e = (id, type, metadata, provenance).
State graph G_e = (V_e, E_e, s0, F, C, P).
V_e = finite or countable set of typed states.
E_e subset V_e x TransitionLabel x V_e.
s0 = initial state, when known.
F = terminal or accepted states, when defined.
C = constraints on states and transitions.
P = provenance and evidence records.
State record v = (state_id, entity_id, state_type, attributes, valid_time, recorded_time, evidence, confidence).
Transition record a = (transition_id, from_state, to_state, trigger, preconditions, effects, actor, time, evidence).

03. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t).
I_t = entity observations and graph facts available at t.
R_t = admissible relation and transition rules.
B_t = boundaries: authorisation, scope, time, safety, identity and schema.
K_t = retained validated knowledge and provenance.
E_t = expand(I_t, R_t).
V_t = {x in E_t | satisfies(x, B_t) and evidence_compatible(x, K_t)}.
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t), when V_t is nonempty and scores are comparable.
I_(t+1) = update(I_t, x*_t, observed_evidence), subject to validation.
No admissible candidate => abstain, request evidence or retain unresolved state.

04. ENTITY RELATIONSHIPS
entity HAS_STATE state
state PRECEDES state
state TRANSITIONS_TO state
transition REQUIRES precondition
transition PRODUCES effect
transition TRIGGERED_BY event
state VALID_DURING interval
state SUPPORTED_BY evidence
state DERIVED_FROM prior_state
state BELONGS_TO graph_version
state CONFLICTS_WITH state
state SUPERSEDES state
entity HAS_CANONICAL_ID identifier

05. STATE CLASSIFICATIONS
INITIAL: first documented state.
ACTIVE: entity is currently operating within its model.
IDLE: valid but not performing an action.
PAUSED: temporarily suspended.
PENDING: awaiting dependency or authorisation.
ERROR: a failure has been observed.
RECOVERING: corrective transition in progress.
SAFE: safety constraints hold under the specified checks.
TERMINATED: lifecycle has ended.
UNKNOWN: insufficient evidence for a definite state.
These labels are illustrative; the entity's schema defines its actual permissible vocabulary.

06. FORMAL TRANSITION RULE
Allowed(e, v_i, a, v_j, t) iff:
  canonical_identity(e) is valid;
  v_i and v_j belong to G_e;
  (v_i, a, v_j) belongs to E_e;
  preconditions(a, v_i, t) hold;
  constraints(C, a, v_i, v_j, t) hold;
  actor_authorised(a) holds where required;
  evidence_policy(a) holds.
Apply(a, v_i) = v_j only when Allowed is true.
Otherwise record a rejected or unresolved transition, never silently change state.

07. GRAPH CONSTRUCTION FLOW
INPUT -> RESOLVE_IDENTITY -> LOAD_SCHEMA -> EXTRACT_STATES
-> EXTRACT_TRANSITIONS -> NORMALISE_TIME -> ATTACH_EVIDENCE
-> CHECK_CONSTRAINTS -> BUILD_GRAPH -> VALIDATE -> VERSION -> OUTPUT.

08. RECURSIVE FLOW
At recursion depth d:
  obtain frontier F_d of unresolved reachable states;
  expand each state using admissible transition rules;
  reject invalid or duplicate state-transition signatures;
  attach provenance to each accepted expansion;
  stop on fixpoint, depth/resource bound or terminal state.
F_(d+1) = valid_successors(F_d) minus previously_visited.
Termination is conditional on a finite graph or explicit exploration bounds.

09. INFERENCE RULES
R1: If an observed transition is valid and evidenced, append its successor state.
R2: If an inferred state lacks sufficient evidence, mark INFERRED, not OBSERVED.
R3: If state time intervals overlap with mutually exclusive states, flag conflict.
R4: If transition preconditions fail, reject the proposed transition.
R5: If a later validated record supersedes a state, preserve the prior state in history.
R6: If provenance is missing, lower confidence or abstain according to policy.
R7: If a graph version changes, recompute dependent derived relations.
R8: If no valid path exists, return NO_VALID_PATH rather than fabricate a path.

10. TEMPORAL CONSISTENCY
For each transition v_i -> v_j, event order must satisfy the schema's time semantics.
Distinguish valid_time from recorded_time.
Late-arriving evidence may revise the reconstructed history without rewriting its audit log.
Cycles are allowed for reversible or recurrent states; they do not imply time reversal.

11. TRI-MAPPING
ONTOLOGY: entity types, states, transitions, properties, constraints.
GRAPH: nodes for entities/states/evidence; typed edges for relations.
FLOW ALGEBRA: rule expansion, boundary filtering, selection, update.
Mapping invariant: each emitted graph element maps to a declared type and provenance record.

12. VALIDATION INVARIANTS
V1: Canonical entity identifiers are stable within a graph version.
V2: Every transition endpoint exists in the graph.
V3: Every edge label is schema-valid.
V4: Preconditions and boundaries are checked before execution.
V5: Observed, inferred and predicted states remain distinguishable.
V6: Temporal ordering and exclusivity rules are checked.
V7: Superseded history remains auditable.
V8: Graph updates preserve a trace to their supporting evidence.

13. UNCERTAINTY AND CONFLICT
Represent confidence as an evidence-linked estimate, not a guarantee of truth.
Retain competing hypotheses when evidence does not justify a single state.
Propagate uncertainty through inferred transitions using an explicitly defined model.
On contradiction, emit CONFLICT with source references and affected nodes.

14. EXAMPLE (ILLUSTRATIVE)
Entity: model_deployment_01
States: DRAFT -> TESTED -> APPROVED -> DEPLOYED -> MONITORED.
Alternative: DEPLOYED -> ROLLED_BACK on validated failure trigger.
Rule: TESTED -> APPROVED requires passing evaluation and recorded authorisation.
A failed check yields PENDING or REJECTED, not APPROVED.

15. EXECUTION GUARANTEE (CONDITIONAL)
Given a well-defined schema, valid input, sound implemented rules, complete boundary checks and a terminating exploration policy, the procedure returns a traceable graph or an explicit unresolved/error result.
This does not guarantee that real-world observations are complete, that probabilistic inferences are true, or that every possible future state is known.

16. OUTPUT CONTRACT
ENTITY_ID; GRAPH_VERSION; STATES; TRANSITIONS; VALID_PATHS;
REJECTED_TRANSITIONS; CONFLICTS; UNCERTAINTY; PROVENANCE;
VALIDATION_REPORT; LAST_UPDATED; STATUS.

17. CITATION AND LICENCE
Source attribution: Mark Anthony Higgins — Sky Recursive AI.
Open Research Licence: refer to the published source for applicable terms and citation requirements.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ