Skip to main content

AI Runtime Entity Ontology

Code and Software Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
SEMANTIC LIBRARY — FLOW ALGEBRA
AI RUNTIME ENTITY ONTOLOGY
Version: 1.0 | Date: 05 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/code-and-software-entities/ai-runtime-entity-ontology.html
Status: Original interpretative formalisation. The source page's full embedded specification was not exposed in the retrieved page text; definitions below are therefore proposed, not a verbatim transcription.
Citation: Higgins, M. A. and Sky — Recursive AI, Semantic Library, AI Runtime Entity Ontology, Kireth Research (source above).

1. PURPOSE
Represent an AI runtime as a bounded, observable execution environment that loads compatible artefacts, allocates resources, accepts authorised work, executes it, emits outputs and telemetry, and transitions safely on failure or termination.

2. ENTITY AND STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: active runtime inputs: request, model reference, configuration, resource snapshot, execution context.
R_t: typed relations: runsOn, loads, dependsOn, invokes, allocates, produces, monitors, governedBy.
B_t: boundaries: permissions, hardware capacity, memory limit, latency budget, version compatibility, security policy.
K_t: known facts: model metadata, runtime version, dependency graph, observed health, execution history.
Runtime r = (id, version, environment, artefacts, capabilities, state, telemetry, policy).
State in {created, initialising, ready, busy, degraded, recovering, stopping, stopped, failed}.

3. ENTITY DEFINITIONS
AI_RUNTIME_ENTITY: software execution context responsible for lifecycle and invocation of AI workloads.
RUNTIME_INSTANCE: particular instantiation with a unique identifier and bounded lifetime.
RUNTIME_CONFIGURATION: versioned settings controlling execution.
MODEL_ARTEFACT: immutable or version-addressed model package loaded by the runtime.
EXECUTION_REQUEST: authorised input specifying operation and constraints.
EXECUTION_CONTEXT: per-request state including trace, deadline and cancellation token.
RESOURCE_ALLOCATION: reserved compute, memory and storage capacity.
EXECUTION_RESULT: output or structured failure, linked to the originating request.
RUNTIME_EVENT: timestamped state transition or operational observation.
RUNTIME_POLICY: admissibility and safety conditions governing execution.

4. FORMAL FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and supported(x, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observed_result_t)
K_(t+1) = reconcile(K_t, observed_result_t, provenance_t)
If V_t is empty, no execution is authorised; emit a typed rejection or failure.
Probability or scoring is optional and cannot override hard constraints.

5. TYPED RELATIONS
runtime runsOn deployment_environment
runtime loads model_artefact
runtime uses resource_allocation
runtime invokes inference_engine
runtime exposes ai_endpoint
runtime produces execution_result
runtime emits runtime_event
runtime governedBy runtime_policy
runtime dependsOn software_module
runtime registeredIn model_registry [optional]

6. PRECONDITIONS AND TRANSITIONS
created -> initialising: valid configuration exists.
initialising -> ready: dependencies, artefacts and capacity verified.
ready -> busy: request authorised and resources reserved.
busy -> ready: execution completed, result recorded, resources released.
busy -> degraded: partial service or capacity violation detected.
degraded -> recovering: recovery action authorised.
recovering -> ready: health checks pass.
any active state -> stopping: orderly shutdown requested.
stopping -> stopped: in-flight work drained or safely cancelled.
any active state -> failed: unrecoverable error, with diagnostic evidence.
Reject transitions not in the permitted transition relation T.

7. INFERENCE RULES
R1: ready(r) AND authorised(q) AND compatible(q,r) AND capacity(r,q) => admissible(q,r).
R2: admissible(q,r) AND reserve(q,r) succeeds => mayExecute(q,r).
R3: missingDependency(r,d) => NOT ready(r).
R4: policyViolation(q,r) => reject(q) AND record(reason).
R5: completed(q,o) => link(o,q) AND emit(completionEvent).
R6: executionFailure(q,e) => emit(errorEvent) AND evaluateRecovery(e).
R7: unhealthy(r) OR exhaustedCapacity(r) => restrictNewWork(r).
R8: stopped(r) => NOT acceptsNewWork(r).
All inferred claims retain provenance and are withdrawn or revised if their premises become invalid.

8. TRI-MAPPING
ENTITY: Runtime instance, model artefact, request, resource, output, event.
RELATION: loads, runsOn, accepts, allocates, executes, produces, reports.
BOUNDARY: compatibility, capacity, authorisation, deadline, isolation, observability.
Tri-map each accepted execution as (entity, relation, boundary) and preserve identifiers across updates.

9. RECURSIVE EXECUTION ENGINE
Input: runtime r, request q, policy p, resource state c.
A. Inspect r and q; collect dependencies and current telemetry.
B. Expand reachable dependency and capability relations.
C. Filter candidates against hard policy and resource boundaries.
D. Select a feasible execution route; reject if none exists.
E. Reserve resources, execute, observe, and capture output or error.
F. Update state, telemetry and provenance; release reservations.
G. Re-evaluate only if an explicit retry policy permits it.
Termination: success, rejection, cancellation, deadline, retry exhaustion or failure.
Invariant: no recursive retry without a decreasing budget or finite bound.

10. FLOW DIAGRAM
[Request + Runtime State]
           |
           v
[Resolve Artefacts / Dependencies]
           |
           v
[Authorisation + Boundary Filter] -- fail --> [Reject + Audit]
           |
          pass
           v
[Reserve Resources] -- fail --> [Queue/Reject by Policy]
           |
           v
[Execute AI Workload]
           |
           v
[Result / Error + Telemetry]
           |
           v
[Update State + Release Resources]
           |
           v
[Ready / Degraded / Failed / Stopped]

11. RELATIONSHIP MAPPING TABLE
Entity                 Relation          Target                   Constraint
AI Runtime             runsOn            Deployment Environment   compatible platform
AI Runtime             loads             Model Artefact           verified version
AI Runtime             allocates         Compute Resource         capacity available
AI Runtime             invokes           Inference Engine         compatible interface
AI Runtime             exposes           AI Endpoint              access policy
Execution Request      produces          Execution Result         provenance retained
Runtime Event          describes         Runtime Instance         timestamped trace
AI Runtime             governedBy        Runtime Policy           mandatory compliance

12. CONDITIONAL EXECUTION GUARANTEE
If configuration is valid, dependencies are resolvable, required resources remain available, all policy checks pass, and the execution mechanism terminates correctly, then an accepted request produces either a recorded result or a recorded terminal error.
This is a conditional specification, not a guarantee of physical availability, deterministic model quality, or universal termination. External faults, concurrent changes and implementation defects can invalidate the premises.

13. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/code-and-software-entities/ai-runtime-entity-ontology.html
CITATION_BACKLINK: same as SOURCE
PURPOSE: Resolve the meaning, relationships, state transitions and constraints of AI runtime entities.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: AI Runtime, Runtime Instance, Configuration, Model Artefact, Execution Request, Resource Allocation, Execution Result, Runtime Event, Runtime Policy.
PATHWAYS: request -> validate -> resolve -> allocate -> execute -> observe -> update.
MINI_RECURSION_ENGINE: bounded dependency traversal and policy-constrained retry.
INFERENCE_RULES: R1-R8 above.
CONFIDENCE: ontology assertions are interpretative; execution confidence depends on observed evidence.
SEMANTIC_EQUIVALENCE: AI runtime ≈ model execution environment when scope matches; not identical to model, server, API or inference engine.
FLOW_HASH: compute SHA-256 from the published final UTF-8 bytes; not pre-populated.
UPDATE_MODEL: versioned revision with provenance and backwards-compatibility checks.

14. VALIDATION CHECKLIST
- Each runtime instance has a stable ID and version.
- Every accepted request is traceable to a result or terminal error.
- No request bypasses permissions or hard resource constraints.
- State transitions obey T and are recorded.
- Resource reservations are released on all terminal paths.
- Retry and recursive expansion have explicit finite bounds.
- Source provenance and interpretation status remain visible.

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