Skip to main content

Semantic Execution Entity Ontology

Semantic AI Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
SEMANTIC EXECUTION ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Semantic AI Entities
Version: 1.0 | 05 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/semantic-ai-entities/semantic-execution-entity-ontology.html
Licence: Refer to the source's published Open Research Licence; citation required where applicable.

SCOPE AND INTERPRETATION
An original formalisation of semantic execution: the controlled application of semantic rules, mappings and actions to a bounded context, producing verifiable state transitions and traceable results. The publicly rendered page identifies the ontology but does not expose the underlying downloadable code in the retrieved text. Therefore the definitions below are an interpretative extension, not a transcription or verified reproduction of that code.

1. PURPOSE
Represent a semantic execution as an identifiable, constrained, auditable operation over semantic entities, relationships, rules and contexts. Separate proposed actions from authorised and completed actions. Preserve provenance, confidence, boundary conditions and failure states.

2. ENTITY DEFINITION
SemanticExecutionEntity := (id, input, context, rules, constraints, plan, executor, state, evidence, output, trace, time)
Inputs: semantic concepts, entity graph, mappings, observations and requests.
Context: scoped meanings, namespace, ontology versions and relevant knowledge.
Rules: executable semantic predicates and transformations.
Constraints: permissions, safety boundaries, resource limits and invariants.
Plan: ordered or partially ordered semantic operations.
Executor: identified process or agent permitted to apply operations.
State: proposed | validated | authorised | running | succeeded | failed | blocked | rolled_back.
Evidence: source references and validation records.
Output: semantic result, graph update or no-op.
Trace: ordered events with rule identifiers, timestamps and outcomes.

3. FORMAL STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current semantic input and graph state.
R_t = applicable semantic rules and relation mappings.
B_t = execution boundary, constraints and authorisations.
K_t = context, provenance and verified knowledge.

Candidate expansion:
E_t = expand(I_t, R_t)

Boundary filter:
V_t = {x in E_t | valid(x, B_t) AND supported(x, K_t)}

Selection:
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)

Transition:
I_(t+1) = apply(I_t, x*_t) only when authorised(x*_t) AND preconditions(x*_t).
If V_t is empty, transition to blocked/no-op with an explanatory trace.
Probability ranks candidates; it is not evidence of truth or authorisation.

4. EXECUTION ALGEBRA
Let G be a typed semantic graph; C its context; Q its request; R its rule set; B its boundary.
resolve(Q,C,G) -> candidate entities and meanings.
match(R,G,C) -> applicable rule bindings.
validate(bindings,B,C) -> permitted candidate operations.
select(candidates,K) -> chosen operation with evidence and uncertainty.
commit(G,operation) -> G' with an atomic recorded transition, if supported.
verify(G',postconditions) -> success or compensating recovery.
record(operation,G,G',evidence) -> immutable logical execution trace.

F_exec(G,Q,R,B,K) = (G', result, trace, status)

Composition: F2 o F1 applies F1 first, then F2, when F1's output satisfies F2's preconditions.
Identity: id(G) = G.
Partiality: an operation may be undefined outside its preconditions or boundaries.
Non-commutativity: F2 o F1 need not equal F1 o F2.
Idempotence: only declared idempotent operations satisfy F(F(G)) = F(G).

5. SEMANTIC RELATIONSHIPS
SemanticExecutionEntity --executes--> SemanticRuleEntity
SemanticExecutionEntity --operatesWithin--> SemanticContextEntity
SemanticExecutionEntity --subjectTo--> SemanticConstraintEntity
SemanticExecutionEntity --reads--> SemanticEntity
SemanticExecutionEntity --usesMapping--> SemanticMappingEntity
SemanticExecutionEntity --produces--> SemanticRepresentationEntity
SemanticExecutionEntity --records--> ExecutionTrace
SemanticExecutionEntity --mayProduce--> SemanticSearchResult
SemanticExecutionEntity --dependsOn--> SemanticReasoningEntity
SemanticExecutionEntity --changes--> GraphState

6. TRI-MAPPING
Conceptual: meaning and intent of the requested semantic operation.
Structural: typed graph entities, rules, relationships, constraints and provenance.
Operational: validated sequence of actions, transitions, outputs and audit events.

Conceptual intent -> structural bindings -> operational execution.
Operational evidence -> structural provenance -> conceptual interpretation.
A mapping is valid only if identity, scope and meaning remain consistent.

7. INFERENCE RULES
R1: IF rule matches context AND required evidence exists THEN propose an execution candidate.
R2: IF candidate violates a hard boundary THEN block it, regardless of ranking.
R3: IF required precondition is unknown THEN defer execution and request validation.
R4: IF two applicable rules conflict THEN use explicit precedence; otherwise mark unresolved.
R5: IF an authorised candidate satisfies all preconditions THEN permit transition to running.
R6: IF postconditions hold THEN mark succeeded and persist the trace.
R7: IF postconditions fail THEN mark failed and invoke defined recovery where safe.
R8: IF evidence changes THEN invalidate dependent cached conclusions and re-evaluate.
R9: IF a cycle is detected THEN enforce visited-state or iteration bounds.
R10: IF provenance cannot be established THEN label the result unverified.

8. RECURSIVE EXECUTION ENGINE
function SEMANTIC_EXECUTE(S, goal, depth):
    if depth > MAX_DEPTH: return BLOCKED("depth limit")
    candidates = EXPAND(S.input, S.rules, goal)
    admissible = FILTER(candidates, S.boundary, S.knowledge)
    if admissible is empty: return BLOCKED("no admissible transition")
    chosen = SELECT_WITH_EVIDENCE(admissible)
    if not AUTHORISED(chosen): return BLOCKED("authorisation")
    next_state = APPLY_TRANSACTIONALLY(S, chosen)
    if not VERIFY(next_state): return RECOVER_OR_FAIL(S, next_state)
    APPEND_TRACE(S, chosen, next_state)
    if GOAL_SATISFIED(next_state, goal): return SUCCESS(next_state)
    if REPEATED_STATE(next_state): return BLOCKED("cycle")
    return SEMANTIC_EXECUTE(next_state, goal, depth + 1)

The engine above specifies logical behaviour and requires an implementation to execute.

9. FLOW DIAGRAM
[Request / Semantic Input]
          |
          v
[Resolve Context and Entities]
          |
          v
[Expand Rules and Bindings]
          |
          v
[Check Constraints / Evidence]
          |
    +-----+------+
    |            |
  blocked      admissible
    |            |
[Trace No-op] [Select and Authorise]
                 |
                 v
          [Apply Transition]
                 |
                 v
          [Verify Postconditions]
                 |
          +------+------+
          |             |
        success       failure
          |             |
    [Persist Trace] [Recover / Escalate]
          |
    [Output / Recurse]

10. RELATIONSHIP MAPPING TABLE
Input entity -> semantic binding -> execution subject
Rule entity -> applicability check -> candidate transition
Constraint entity -> admissibility filter -> permitted or blocked
Context entity -> disambiguation -> scoped interpretation
Mapping entity -> transformation -> aligned representation
Reasoning entity -> candidate justification -> evidence-linked choice
Execution entity -> state transition -> traceable result
Output entity -> postcondition check -> verified semantic artefact

11. EXECUTION GUARANTEE — CONDITIONAL
Given finite candidate sets, bounded recursion, deterministic validation, explicit authorisation and atomic transitions, the process terminates with a recorded success, failure or blocked outcome. This is a conditional design property, not a universal guarantee of correctness, completeness, safe behaviour or runtime performance. Semantic correctness also depends on sound rules, accurate inputs and adequate evidence.

12. AI SEARCH FLOW
FLOW_ID: semantic-execution-entity-v1
FLOW_TYPE: ontology-flow-algebra
LANGUAGE: en-GB
ENTITY: SemanticExecutionEntity
CATEGORY: Semantic AI Entities
PURPOSE: resolve and execute permitted semantic transformations with traceability
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/semantic-ai-entities/semantic-execution-entity-ontology.html
CITATION_BACKLINK: same as SOURCE
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
STATE_MODEL: S=(I,R,B,K)
EXPANSION: E=expand(I,R)
VALIDATION: V={x in E | valid(x,B) and supported(x,K)}
SELECTION: argmax P(x|I,R,B,K) over V
UPDATE: I_next=apply(I,x*) subject to authorisation and preconditions
ENTITIES: execution, rule, constraint, context, mapping, representation, trace
PATHWAYS: request > resolve > expand > filter > authorise > execute > verify > record
MINI_RECURSION_ENGINE: bounded repeated state transition until goal or stop condition
INFERENCE_RULES: R1-R10
CONFIDENCE: derived from evidence quality; not automatically calibrated
SEMANTIC_EQUIVALENCE: requires matching meaning, scope, constraints and effects
FLOW_HASH: to be computed from canonical published file bytes; not preassigned
UPDATE_MODEL: versioned changes with provenance, validation and rollback plan
STATUS: original interpretative formalisation

13. IMPLEMENTATION NOTES
Use stable entity IDs, ontology-version pins, schema validation, access controls and explicit error states. For external side effects, require appropriate permissions and idempotency keys. Capture evidence and human oversight for consequential actions. Preserve provenance when exporting to JSON-LD, RDF or another graph format.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ